aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-09 13:52:40 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-09 13:52:40 +0300
commitb2db361984b7f6833d24eb4c574ec3513d8b7633 (patch)
tree1696a76a81582ab43cae0e01c01c3ff1c2d799e1 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels
parenta5f9c99d51f7e096ff612da6605ab4d4f5067009 (diff)
downloadTango-b2db361984b7f6833d24eb4c574ec3513d8b7633.tar.gz
Tango-b2db361984b7f6833d24eb4c574ec3513d8b7633.zip
Removed APPLICATION_VERSIONS & EMBEDDED_SOFTWARE_VERSIONS TABLES.
Added TANGO_VERSIONS. Working on PPC machine setup.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs38
1 files changed, 3 insertions, 35 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
index 0bd8f8133..1f410d49c 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs
@@ -205,12 +205,10 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
List<ICollectionView> collections = new List<ICollectionView>();
+ collections.Add(Adapter.ApplicationFirmwareVersionsViewSource);
collections.Add(Adapter.ApplicationDisplayPanelVersionsViewSource);
- collections.Add(Adapter.ApplicationVersionsViewSource);
- collections.Add(Adapter.EmbeddedSoftwareVersionsViewSource);
- collections.Add(Adapter.EmbeddedFirmwareVersionsViewSource);
collections.Add(Adapter.ApplicationOsVersionsViewSource);
- collections.Add(Adapter.ApplicationVersionsViewSource);
+ collections.Add(Adapter.EmbeddedFirmwareVersionsViewSource);
collections.Add(Adapter.DispenserTypesViewSource);
collections.Add(Adapter.CartridgeTypesViewSource);
collections.Add(Adapter.LiquidTypesViewSource);
@@ -274,16 +272,6 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
}
/// <summary>
- /// Drops the application version.
- /// </summary>
- /// <param name="applicationVersion">The application version.</param>
- public void DropApplicationVersion(ApplicationVersion applicationVersion)
- {
- Configuration.ApplicationVersion = applicationVersion;
- Configuration.ApplicationVersionGuid = applicationVersion.Guid;
- }
-
- /// <summary>
/// Drops the hardware version.
/// </summary>
/// <param name="hardwareVersion">The hardware version.</param>
@@ -304,23 +292,13 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
}
/// <summary>
- /// Drops the embedded software.
- /// </summary>
- /// <param name="embeddedSoftwareVersion">The embedded software version.</param>
- public void DropEmbeddedSoftware(EmbeddedSoftwareVersion embeddedSoftwareVersion)
- {
- Configuration.EmbeddedSoftwareVersion = embeddedSoftwareVersion;
- Configuration.EmbeddedSoftwareVersionGuid = embeddedSoftwareVersion.Guid;
- }
-
- /// <summary>
/// Drops the application os version.
/// </summary>
/// <param name="applicationOsVersion">The application os version.</param>
public void DropApplicationOsVersion(ApplicationOsVersion applicationOsVersion)
{
Configuration.ApplicationOsVersion = applicationOsVersion;
- Configuration.ApplicationVersionGuid = applicationOsVersion.Guid;
+ Configuration.ApplicationOsVersionGuid = applicationOsVersion.Guid;
}
/// <summary>
@@ -457,21 +435,11 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels
errors.Add("Application operation system is required.");
}
- if (Configuration.ApplicationVersion == null)
- {
- errors.Add("Application version is required.");
- }
-
if (Configuration.EmbeddedFirmwareVersion == null)
{
errors.Add("Embedded firmware is required.");
}
- if (Configuration.EmbeddedSoftwareVersion == null)
- {
- errors.Add("Embedded software is required.");
- }
-
if (Configuration.HardwareVersion == null)
{
errors.Add("Hardware version is required.");