From 9823b433c62ed173671923c32ccccadc1d06c0bd Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 28 Feb 2018 16:29:45 +0200 Subject: Lots of work !!! --- .../Images/thread.png | Bin 0 -> 2540 bytes .../Tango.MachineStudio.Developer.csproj | 3 +++ .../ViewModels/MainViewVM.cs | 13 +++++++++ .../Views/JobView.xaml | 29 ++++++++++++++++++++- 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/thread.png (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/thread.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/thread.png new file mode 100644 index 000000000..aa5a46140 Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/thread.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj index 2d20b789c..2efcabb4b 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj @@ -310,5 +310,8 @@ + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index 500f847ed..58d8de558 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -87,6 +87,17 @@ namespace Tango.MachineStudio.Developer.ViewModels set { _windingMethods = value; RaisePropertyChangedAuto(); } } + private ObservableCollection _spoolTypes; + /// + /// Gets or sets the spool types. + /// + public ObservableCollection SpoolTypes + { + get { return _spoolTypes; } + set { _spoolTypes = value; RaisePropertyChangedAuto(); } + } + + /// /// Gets or sets the application manager. /// @@ -1127,6 +1138,7 @@ namespace Tango.MachineStudio.Developer.ViewModels ColorSpaces = _activeJobDbContext.ColorSpaces.ToObservableCollection(); Rmls = _activeJobDbContext.Rmls.ToObservableCollection(); WindingMethods = _activeJobDbContext.WindingMethods.ToObservableCollection(); + SpoolTypes = _activeJobDbContext.SpoolTypes.ToObservableCollection(); LogManager.Log("Setting active job..."); _activeJob = _activeJobDbContext.Jobs.SingleOrDefault(x => x.Guid == SelectedMachineJob.Guid); @@ -1387,6 +1399,7 @@ namespace Tango.MachineStudio.Developer.ViewModels newJob.User = _authentication.CurrentUser; newJob.Rml = _machineDbContext.Rmls.FirstOrDefault(); newJob.WindingMethod = _machineDbContext.WindingMethods.FirstOrDefault(); + newJob.SpoolType = _machineDbContext.SpoolTypes.FirstOrDefault(); newJob.Machine = SelectedMachine; SelectedMachine.Jobs.Add(newJob); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml index e9867d202..6a5c8ddb8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml @@ -347,7 +347,7 @@ - + @@ -368,6 +368,33 @@ + + + + + Spool + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.3.1