diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-10 11:35:30 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-04-10 11:35:30 +0300 |
| commit | 66c66e69217493357d03b1986b7a38933944c1c3 (patch) | |
| tree | 7db8839a71f088900572c686bdc2a2f6e1de75aa /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels | |
| parent | 4ceac5cdb37cb95dc89f212f543bb0561e8b07ac (diff) | |
| download | Tango-66c66e69217493357d03b1986b7a38933944c1c3.tar.gz Tango-66c66e69217493357d03b1986b7a38933944c1c3.zip | |
Added event resolvable / requires user.
Added HTML Templates..
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."); + } } } } |
