diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-16 18:22:47 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-16 18:22:47 +0300 |
| commit | b9ff3e2b899b22090b5d206c1f95189aa7fd7ecb (patch) | |
| tree | 2e2851d21fbf8304ff2ada7e3089c342547dd95d /Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings | |
| parent | 62600b93f932aa2751d6f0c00f4699a7eb2d7c7b (diff) | |
| download | Tango-b9ff3e2b899b22090b5d206c1f95189aa7fd7ecb.tar.gz Tango-b9ff3e2b899b22090b5d206c1f95189aa7fd7ecb.zip | |
New Settings Library.
Diffstat (limited to 'Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings')
5 files changed, 184 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/DeveloperModule.cs b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/DeveloperModule.cs new file mode 100644 index 000000000..837dfcc2e --- /dev/null +++ b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/DeveloperModule.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Settings.MachineStudioSettings +{ + public class DeveloperModule + { + public String LastSelectedMachineGuid { get; set; } + + public String LastSelectedJobGuid { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/MachineStudio.cs b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/MachineStudio.cs new file mode 100644 index 000000000..6895f30a1 --- /dev/null +++ b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/MachineStudio.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core.Cryptography; +using Tango.Logging; + +namespace Tango.Settings.MachineStudioSettings +{ + /// <summary> + /// Represents the machine studio settings. + /// </summary> + public class MachineStudio + { + /// <summary> + /// Gets or sets the last login email. + /// </summary> + public String LastLoginEmail { get; set; } + + /// <summary> + /// Gets or sets the last login password. + /// </summary> + public String LastLoginPassword { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether to save the user credentials. + /// </summary> + public bool RememberMe { get; set; } + + /// <summary> + /// Gets or sets the last virtual machine serial number. + /// </summary> + public String LastVirtualMachineSerialNumber { get; set; } + + /// <summary> + /// Gets or sets the update service address. + /// </summary> + public String UpdateServiceAddress { get; set; } + + /// <summary> + /// Gets or sets the logging categories. + /// </summary> + public List<LogCategory> LoggingCategories { get; set; } + + /// <summary> + /// Gets or sets the synchronization module settings. + /// </summary> + public SynchronizationModule SynchronizationModule { get; set; } + + /// <summary> + /// Gets or sets the stubs module settings. + /// </summary> + public StubsModule StubsModule { get; set; } + + /// <summary> + /// Gets or sets the technician module settings. + /// </summary> + public TechnicianModule TechnicianModule { get; set; } + + /// <summary> + /// Gets or sets the developer module settings. + /// </summary> + public DeveloperModule DeveloperModule { get; set; } + + /// <summary> + /// Initializes a new instance of the <see cref="MachineStudio"/> class. + /// </summary> + public MachineStudio() + { + LoggingCategories = new List<LogCategory>(); + + //LoggingCategories.Add(LogCategory.Critical); + //LoggingCategories.Add(LogCategory.Error); + //LoggingCategories.Add(LogCategory.General); + //LoggingCategories.Add(LogCategory.Warning); + + SynchronizationModule = new SynchronizationModule(); + StubsModule = new StubsModule(); + TechnicianModule = new TechnicianModule(); + DeveloperModule = new DeveloperModule(); + UpdateServiceAddress = "http://twine01/MachineStudioUpdateService/MachineStudioUpdateService.svc"; + } + } +} diff --git a/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/StubsModule.cs b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/StubsModule.cs new file mode 100644 index 000000000..b9263237a --- /dev/null +++ b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/StubsModule.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Settings.MachineStudioSettings +{ + /// <summary> + /// Represents the machine studio stubs module settings. + /// </summary> + public class StubsModule + { + /// <summary> + /// Gets or sets the last selected port. + /// </summary> + public String SelectedPort { get; set; } + + /// <summary> + /// Gets or sets the last tabs. + /// </summary> + public List<String> LastTabs { get; set; } + + /// <summary> + /// Initializes a new instance of the <see cref="StubsModule"/> class. + /// </summary> + public StubsModule() + { + LastTabs = new List<string>(); + } + } +} diff --git a/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/SynchronizationModule.cs b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/SynchronizationModule.cs new file mode 100644 index 000000000..c487fdd42 --- /dev/null +++ b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/SynchronizationModule.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Settings.MachineStudioSettings +{ + /// <summary> + /// Represents the machine studio synchronization module settings. + /// </summary> + public class SynchronizationModule + { + /// <summary> + /// Gets or sets the local master database file. + /// </summary> + public String LocalMasterDBFile { get; set; } + + /// <summary> + /// Gets or sets the local slave database file. + /// </summary> + public String LocalSlaveDBFile { get; set; } + + /// <summary> + /// Gets or sets the remote SQLite file. + /// </summary> + public String RemoteSQLiteFile { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/TechnicianModule.cs b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/TechnicianModule.cs new file mode 100644 index 000000000..4f3ced8d7 --- /dev/null +++ b/Software/Visual_Studio/Tango.Settings/OLD/MachineStudioSettings/TechnicianModule.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Settings.MachineStudioSettings +{ + public class TechnicianModule + { + public int GraphsDuration { get; set; } + + public int GraphsPullingInterval { get; set; } + + public String LasTechProjectFile { get; set; } + + public TechnicianModule() + { + GraphsDuration = 10; + GraphsPullingInterval = 30; + } + } +} |
