From dc11398ba5728af943256ca99eba8c9d66e1b6e2 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 25 Jan 2018 14:12:56 +0200 Subject: Refactored ObservableEntity: Observables comparison is now done by GUID. Implemented != == Equals overrides. Save and load are now done only on decorated properties so properties on partial class are allowed! Implemented dynamic graph sizes on developer module. --- .../Images/video-frame.png | Bin 0 -> 107600 bytes .../Tango.MachineStudio.Developer.csproj | 3 + .../ViewModels/MainViewVM.cs | 17 +- .../Views/MainView.xaml | 246 ++++++++++++++------- 4 files changed, 174 insertions(+), 92 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/video-frame.png (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/video-frame.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/video-frame.png new file mode 100644 index 000000000..a052b62cf Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/video-frame.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 276dd6c54..970556986 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 @@ -185,5 +185,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 dc3ba0ec5..0742ca752 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 @@ -239,13 +239,8 @@ namespace Tango.MachineStudio.Developer.ViewModels { using (_notification.PushTaskItem("Saving Liquid Factors...")) { - String machineGuid = SelectedMachine.Guid; - String rmlGuid = SelectedRML.Guid; - await SelectedRML.SaveAsync(); - - SelectedMachine = Adapter.Machines.SingleOrDefault(x => x.Guid == machineGuid); - SelectedRML = Adapter.Rmls.SingleOrDefault(x => x.Guid == rmlGuid); + InvalidateLiquidFactorsAndProcessTables(); } } } @@ -298,14 +293,16 @@ namespace Tango.MachineStudio.Developer.ViewModels g.Active = false; } - String machineGuid = SelectedMachine.Guid; - String rmlGuid = SelectedRML.Guid; + //String machineGuid = SelectedMachine.Guid; + //String rmlGuid = SelectedRML.Guid; SelectedRML.ProcessParametersTablesGroups.Add(group); await SelectedRML.SaveAsync(); - SelectedMachine = Adapter.Machines.SingleOrDefault(x => x.Guid == machineGuid); - SelectedRML = Adapter.Rmls.SingleOrDefault(x => x.Guid == rmlGuid); + //SelectedMachine = Adapter.Machines.SingleOrDefault(x => x.Guid == machineGuid); + //SelectedRML = Adapter.Rmls.SingleOrDefault(x => x.Guid == rmlGuid); + + InvalidateLiquidFactorsAndProcessTables(); } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml index 40babfc74..a18e4145e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml @@ -28,6 +28,8 @@ + + @@ -77,6 +79,24 @@ + + @@ -171,127 +191,149 @@ - + + + + + + + + + + + - + Dyeing Speed: - + - + Min Ink Uptake: - + - + Mixer Temp: - + - + Head Zone1 Temp: - + - + Head Zone2 Temp: - + - + Head Zone3 Temp: - + - + Head Air Flow: - + - + Feeder Tension: - + - + Puller Tension: - + - + Dryer Buffer Length: - + - + Dryer Zone1 Temp: - + - + Dryer Zone2 Temp: - + - + Dryer Zone3 Temp: - + - + Dryer Air Flow: - + - + Winder Tension: - + @@ -351,7 +393,7 @@ - MACHINE JOBS + MACHINE JOBS @@ -397,43 +439,50 @@ - - - - Name + + + + + Name + + - - + - - - - Winding Method + + + + + Winding Method + + - - + - - - - Inter Segment + + + + + Inter Segment + + + + + - - - - - + - - - - Lubrication + + + + + Lubrication + + + + - - - Enable - - + @@ -484,36 +533,36 @@ USB CAMERAS - + - + - - + - + - - + - + - @@ -569,7 +618,40 @@ - + + + + + @@ -766,7 +848,7 @@