diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-02-14 22:52:00 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-02-14 22:52:00 +0200 |
| commit | d5018576f325fb85983c4ad34c169d4b4e8d1a55 (patch) | |
| tree | 57e83d678e2221083b73a5289b506773868e1c63 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels | |
| parent | b934b152eea671fa06678baa0cdf7f8811e6d2d9 (diff) | |
| parent | b7b277736c7e3ec9258915cdd5a54e7b33ba1123 (diff) | |
| download | Tango-d5018576f325fb85983c4ad34c169d4b4e8d1a55.tar.gz Tango-d5018576f325fb85983c4ad34c169d4b4e8d1a55.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_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.cs | 7 |
1 files changed, 1 insertions, 6 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 f9ec5b063..148e4375c 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 @@ -460,11 +460,6 @@ namespace Tango.MachineStudio.Developer.ViewModels public RelayCommand MediaTogglePlayPauseCommand { get; set; } /// <summary> - /// Gets or sets the media load file command. - /// </summary> - public RelayCommand MediaLoadFileCommand { get; set; } - - /// <summary> /// Gets or sets the media play pause command. /// </summary> public RelayCommand MediaPlayPauseCommand { get; set; } @@ -916,7 +911,7 @@ namespace Tango.MachineStudio.Developer.ViewModels private void UpdateEstimatedDuration() { - if (SelectedJob != null && SelectedProcessParametersTable != null) + if (SelectedJob != null && SelectedProcessParametersTable != null && SelectedProcessParametersTable.DyeingSpeed > 0) { EstimatedDuration = TimeSpan.FromSeconds(SelectedJob.Length / (SelectedProcessParametersTable.DyeingSpeed / 100d)); } |
