aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.UsersAndRoles/Views/AddressView.xaml.cs
blob: e5d6446264bee354165f999e58fac97a12d781c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.MachineStudio.UsersAndRoles.Views
{
    /// <summary>
    /// Interaction logic for AddressView.xaml
    /// </summary>
    public partial class AddressView : UserControl
    {
        public AddressView()
        {
            InitializeComponent();
        }
    }
}
ghlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using Tango.Logging;
using Tango.PMR.Printing;
using Tango.Settings;
using Tango.Web;

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 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 or sets the machine scanning timeout seconds.
        /// </summary>
        public int MachineScanningTimeoutSeconds { get; set; }

        /// <summary>
        /// Gets or sets the name of the WiFi network to automatically connect to when the application starts.
        /// </summary>
        public String AutoConnectWiFiName { get; set; }

        /// <summary>
        /// Gets or sets the password of the WiFi network to automatically connect to when the application starts.
        /// </summary>
        public String AutoConnectWiFiPassword { 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 the embedded device scanning hint.
        /// </summary>
        public String EmbeddedDeviceHint { 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>
        /// Gets or sets the deployment slot.
        /// </summary>
        public DeploymentSlot DeploymentSlot { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to enable the watch dog process.
        /// </summary>
        public bool EnableWatchDog { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to enable the technician mode when the application starts.
        /// </summary>
        public bool EnableTechnicianModeByDefault { get; set; }

        /// <summary>
        /// Gets or sets the job upload strategy.
        /// </summary>
        public JobUploadStrategy JobUploadStrategy { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to enable gradient generation.
        /// </summary>
        public bool EnableGradientGeneration { get; set; }

        /// <summary>
        /// Gets or sets the gradient generation resolution.
        /// </summary>
        public int GradientGenerationResolution { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to enable the application lock screen.
        /// </summary>
        public bool EnableLockScreen { get; set; }

        /// <summary>
        /// Gets or sets the lock screen timeout.
        /// </summary>
        public TimeSpan LockScreenTimeout { get; set; }

        /// <summary>
        /// Gets or sets the lock screen password.
        /// </summary>
        public String LockScreenPassword { get; set; }

        /// <summary>
        /// Gets or sets the enable emergency notifications.
        /// </summary>
        public bool EnableEmergencyNotifications { get; set; }

        /// <summary>
        /// Gets or sets the emergency COM port.
        /// </summary>
        public String EmergencyComPort { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to enable the job liquid quantity validation.
        /// </summary>
        public bool EnableJobLiquidQuantityValidation { get; set; }

        /// <summary>
        /// Gets the machine service address.
        /// </summary>
        /// <returns></returns>
        public String GetMachineServiceAddress()
        {
            return DeploymentSlot.ToAddress();
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PPCSettings"/> class.
        /// </summary>
        public PPCSettings()
        {
            JobUploadStrategy = JobUploadStrategy.JobDescriptionFile;
            EnableGradientGeneration = true;
            GradientGenerationResolution = 20;
            MachineScanningTimeoutSeconds = 20;
            LoggingCategories = new List<LogCategory>();
            EmbeddedComPort = "COM10";
            EmbeddedDeviceHint = "Tango USB Serial Port";
            ExternalBridgePassword = "Aa123456";
            HotSpotPassword = "Aa123456";
            LockScreenTimeout = TimeSpan.FromMinutes(10);
            LockScreenPassword = "1111";
            DeploymentSlot = DeploymentSlot.TEST;
            EnableWatchDog = true;
            EnableEmergencyNotifications = true;
            EmergencyComPort = "COM2";
            EnableJobLiquidQuantityValidation = true;
        }
    }
}