diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-04-11 11:20:26 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-04-11 11:20:26 +0300 |
| commit | 588f2ed42de677c7e22b1c34c61568fe10098282 (patch) | |
| tree | 043587200f23c861b8430ab903dfaf8176320a6c /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels | |
| parent | f4a6e8584e0e863515398ddb57fcfc545e425c87 (diff) | |
| parent | f052b13f288eec8f403536d40ed4cb4a4a38f5f9 (diff) | |
| download | Tango-588f2ed42de677c7e22b1c34c61568fe10098282.tar.gz Tango-588f2ed42de677c7e22b1c34c61568fe10098282.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index a18d0c6c6..f9bffae29 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -575,13 +575,20 @@ namespace Tango.MachineStudio.UI.ViewModels /// <param name="machineEvent">The HTML page.</param> private async void ResolveMachineEvent(MachinesEvent machineEvent) { - if (_htmlPresenter.DisplayHtml(machineEvent.EventType.HtmlPage)) + if (machineEvent.EventType.HtmlPage != null) { - if (ApplicationManager.ConnectedMachine != null) + if (_htmlPresenter.DisplayHtml(machineEvent.EventType.HtmlPage)) { - await ApplicationManager.ConnectedMachine.ResolveEvent((PMR.Diagnostics.EventType)machineEvent.Type); + if (ApplicationManager.ConnectedMachine != null && machineEvent.EventType.Resolvable) + { + await ApplicationManager.ConnectedMachine.ResolveEvent((PMR.Diagnostics.EventType)machineEvent.Type); + } } } + else + { + _notificationProvider.ShowWarning("Could not locate guidance content for the specified event."); + } } } } |
