aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-07-23 11:37:09 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-07-23 11:37:09 +0300
commit8a84d33ab8d8a44b1036bb8c5707858d7a25b123 (patch)
tree26658a7d67adade1389a4d71ded4d9a56c0e7e04 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
parent81dd84b2749ee06fa592ac64075c0d8195972aa5 (diff)
parent87444d2a16e63e9b992c25a9e9fbaf3bb5b91025 (diff)
downloadTango-8a84d33ab8d8a44b1036bb8c5707858d7a25b123.tar.gz
Tango-8a84d33ab8d8a44b1036bb8c5707858d7a25b123.zip
merge
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs19
1 files changed, 19 insertions, 0 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 a7762a5e6..278926de9 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
@@ -545,6 +545,25 @@ namespace Tango.MachineStudio.UI.ViewModels
}
}
}
+ else if (x.Result == ConnectedMachineViewVM.ConnectedMachineVMResult.Reset)
+ {
+ if (NotificationProvider.ShowQuestion("This will reset the embedded device. Are you sure?"))
+ {
+ using (NotificationProvider.PushTaskItem("Uploading hardware configuration..."))
+ {
+ try
+ {
+ await ApplicationManager.ConnectedMachine.Reset();
+ NotificationProvider.ShowInfo("Embedded device has been restarted.");
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, "Error resetting embedded device.");
+ NotificationProvider.ShowError("Error resetting embedded device." + Environment.NewLine + ex.Message);
+ }
+ }
+ }
+ }
});
}