From 6ed849ee54a2f30315a622242f38dce92a309991 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 7 Jan 2018 13:33:24 +0200 Subject: Added Application Firmware Versions To Machine Designer. --- .../Images/application-firmware.png | Bin 0 -> 953 bytes .../Tango.MachineStudio.MachineDesigner.csproj | 3 ++ .../ViewModels/MainViewVM.cs | 7 ++- .../Views/MainView.xaml | 55 +++++++++++++++++---- .../Views/MainView.xaml.cs | 4 ++ 5 files changed, 59 insertions(+), 10 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/application-firmware.png (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/application-firmware.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/application-firmware.png new file mode 100644 index 000000000..110ae36aa Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/application-firmware.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj index 1a2564e0c..a2c955d30 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj @@ -204,5 +204,8 @@ + + + \ No newline at end of file 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 be28f92b5..457be98b2 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 @@ -113,7 +113,6 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels Configuration.Name = "Untitled"; Machine = new Machine(); Machine.Configuration = Configuration; - Configuration.ApplicationFirmwareVersions = Adapter.ApplicationFirmwareVersions.First(); SaveCommand = new RelayCommand(Save, (x) => !_isSaving); AddIdsCommand = new RelayCommand(AddIds, (x) => !_isSaving && Configuration.IdsPacks.Count < 8); @@ -153,6 +152,12 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels Configuration.ApplicationDisplayPanelVersionGuid = applicationDisplayPanelVersion.Guid; } + public void DropApplicationFirmwareVersion(ApplicationFirmwareVersion applicationFirmwareVersion) + { + Configuration.ApplicationFirmwareVersions = applicationFirmwareVersion; + Configuration.ApplicationFirmwareVersionGuid = applicationFirmwareVersion.Guid; + } + public void DropApplicationVersion(ApplicationVersion applicationVersion) { Configuration.ApplicationVersions = applicationVersion; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml index 68c772c0c..26a98a802 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml @@ -350,11 +350,12 @@ + - + @@ -362,15 +363,24 @@ - + + + + + + + + + + - + @@ -629,7 +639,7 @@ - + + + + + + + + + + v + + + + + + + + + + +