From b5692b2f28929e7473ec73be0a1b5124149b8e2e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 25 Dec 2018 14:32:42 +0200 Subject: Some work on PPC and database! --- .../Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs index 7c6bed928..7896367ec 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs @@ -44,6 +44,13 @@ namespace Tango.PPC.MachineSettings.ViewModels set { _selectedJobTypes = value; RaisePropertyChangedAuto(); } } + private SelectedObjectCollection _selectedColorSpaces; + public SelectedObjectCollection SelectedColorSpaces + { + get { return _selectedColorSpaces; } + set { _selectedColorSpaces = value; RaisePropertyChangedAuto(); } + } + private bool _enableHotSpot; public bool EnableHotSpot { @@ -111,6 +118,7 @@ namespace Tango.PPC.MachineSettings.ViewModels if (Validate()) { Machine.SupportedJobTypes = SelectedJobTypes.SynchedSource.ToList(); + Machine.SupportedColorSpaces = SelectedColorSpaces.SynchedSource.ToList(); Machine.ShallowCopyTo(MachineProvider.Machine); Settings.EnableHotSpot = EnableHotSpot; @@ -160,6 +168,7 @@ namespace Tango.PPC.MachineSettings.ViewModels SelectedJobTypes = new SelectedObjectCollection(Enum.GetValues(typeof(JobTypes)).Cast().ToObservableCollection(), Machine.SupportedJobTypes.ToObservableCollection()); + SelectedColorSpaces = new SelectedObjectCollection(Enum.GetValues(typeof(ColorSpaces)).Cast().Where(x => x.IsUserSpace()).ToObservableCollection(), Machine.SupportedColorSpaces.ToObservableCollection()); } private async void OnEnableRemoteAssistanceChanged() -- cgit v1.3.1