aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/MachineStudio.Dispensers/Views/MainView.xaml
blob: 4062f8b7419cbbe48c6e33a3a6d5e1211fd549ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<UserControl x:Class="Tango.MachineStudio.Dispensers.Views.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:observables="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
             xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
             xmlns:vm="clr-namespace:Tango.MachineStudio.Dispensers.ViewModels"
             xmlns:global="clr-namespace:Tango.MachineStudio.Dispensers"
             xmlns:local="clr-namespace:Tango.MachineStudio.Dispensers.Views"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             mc:Ignorable="d" 
             d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
    <Grid>
        <controls:NavigationControl x:Name="navigationControl" TransitionType="Slide">
            <local:DispensersView />
            <local:DispenserView/>
        </controls:NavigationControl>
    </Grid>
</UserControl>
n> System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; using Tango.Logging; using Tango.Settings; namespace Tango.PPC.Common { /// <summary> /// Represents the main PPC settings. /// </summary> /// <seealso cref="Tango.Settings.SettingsBase" /> public class PPCSettings : SettingsBase { /// <summary> /// Gets or sets the machine serial number. /// </summary> public String MachineSerialNumber { get; set; } /// <summary> /// Gets or sets the logging categories. /// </summary> public List<LogCategory> LoggingCategories { get; set; } /// <summary> /// Gets or sets the state of the application. /// </summary> public ApplicationStates ApplicationState { get; set; } /// <summary> /// Gets the update service address. /// </summary> public String UpdateServiceAddress { get; internal set; } /// <summary> /// Gets or sets the machine service address. /// </summary> public String MachineServiceAddress { get; set; } /// <summary> /// Gets or sets the machine scanning timeout seconds. /// </summary> public int MachineScanningTimeoutSeconds { get; set; } /// <summary> /// Gets or sets the name of the name of a WiFi network to automatically connect to when the application starts. /// </summary> public String AutoConnectWiFiName { get; set; } /// <summary> /// Gets or sets a value indicating whether the application is in demo mode. /// </summary> public bool DemoMode { get; set; } /// <summary> /// Gets or sets the embedded COM port if not specified will use auto scanning. /// </summary> public String EmbeddedComPort { get; set; } /// <summary> /// Gets or sets a value indicating whether [enable external bridge]. /// </summary> public bool EnableExternalBridge { get; set; } /// <summary> /// Gets or sets the external bridge password. /// </summary> public String ExternalBridgePassword { get; set; } /// <summary> /// Gets or sets a value indicating whether [enable hot spot]. /// </summary> public bool EnableHotSpot { get; set; } /// <summary> /// Gets or sets the hot spot password. /// </summary> public String HotSpotPassword { get; set; } /// <summary> /// Gets or sets a value indicating whether to enable team viewer service. /// </summary> public bool EnableRemoteAssistance { get; set; } /// <summary> /// Initializes a new instance of the <see cref="PPCSettings"/> class. /// </summary> public PPCSettings() { MachineScanningTimeoutSeconds = 20; LoggingCategories = new List<LogCategory>(); MachineSerialNumber = "1111"; UpdateServiceAddress = "http://twine01/PPCUpdateService/PPCUpdateService.svc"; MachineServiceAddress = "http://twine01/MachineService"; EmbeddedComPort = null; ExternalBridgePassword = "Aa123456"; HotSpotPassword = "Aa123456"; } } }