aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-03-25 14:35:30 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-03-25 14:35:30 +0200
commitcbb5066b1997bb430e33a89e742fd0b5c440a388 (patch)
tree3b45ad87006780a11f0323a5716cdd0a85d30d30 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels
parent0a3f882fe4d388d7387a165349595208cf96a3ae (diff)
parentdf1a05d5586fbce72e9aa2cb05cd64f74d1b98e9 (diff)
downloadTango-cbb5066b1997bb430e33a89e742fd0b5c440a388.tar.gz
Tango-cbb5066b1997bb430e33a89e742fd0b5c440a388.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs11
1 files changed, 6 insertions, 5 deletions
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 04d2fae4b..02431fd98 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
@@ -742,7 +742,7 @@ namespace Tango.MachineStudio.Developer.ViewModels
SaveJobCommand = new RelayCommand(SaveActiveJob, () => SelectedMachine != null && CanWork);
DiscardJobCommand = new RelayCommand(BackToJobs, () => SelectedMachine != null && CanWork);
StartJobCommand = new RelayCommand(() => StartJob(), () => ActiveJob != null && CanWork && !IsJobRunning && MachineOperator != null);
- StartJobAndRecordCommand = new RelayCommand(StartJobAndRecord, () => _dataCaptureVM != null && !_dataCaptureVM.Recorder.IsRecording && !_dataCaptureVM.Player.IsPlaying && ActiveJob != null && !IsJobRunning && MachineOperator != null);
+ StartJobAndRecordCommand = new RelayCommand(StartJobAndRecord, () => _dataCaptureVM != null && !_dataCaptureVM.Recorder.IsRecording && !_dataCaptureVM.Player.IsPlaying && ActiveJob != null && !IsJobRunning && MachineOperator != null && CanWork);
StopJobCommand = new RelayCommand(StopJob, () => IsJobRunning && CanWork);
CloseJobCompletionStatusCommand = new RelayCommand(CloseJobCompletionStatusBar);
LoadJobCommand = new RelayCommand(() => LoadSelectedJob(), () => SelectedMachineJob != null && CanWork);
@@ -1332,16 +1332,16 @@ namespace Tango.MachineStudio.Developer.ViewModels
_preparingTaskItem = item;
JobHandler = await MachineOperator.Print(ActiveJob, SelectedProcessParametersTable);
}
-
- _navigation.NavigateTo(DeveloperNavigationView.RunningJobView);
- IsJobRunning = true;
- ShowJobStatus = true;
}
else
{
JobHandler = resumeFunc(ActiveJob);
}
+ _navigation.NavigateTo(DeveloperNavigationView.RunningJobView);
+ IsJobRunning = true;
+ ShowJobStatus = true;
+
_eventLogger.Log(String.Format("Job '{0}' started...", ActiveJob.Name));
JobHandler.StatusChanged += (x, status) =>
@@ -2179,6 +2179,7 @@ namespace Tango.MachineStudio.Developer.ViewModels
{
var cloned = stop.Clone();
cloned.StopIndex = SelectedSegment.BrushStops.Max(x => x.StopIndex) + 1;
+ cloned.SetLiquidVolumes(ActiveJob.Machine.Configuration, SelectedRML, SelectedProcessParametersTable);
SelectedSegment.BrushStops.Add(cloned);
}