aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-16 15:59:12 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-16 15:59:12 +0300
commit04fd2234090e23ff2e648d997a1cc753c9354941 (patch)
tree5624cfac25a0439ad6dfaae64132fbe5b62a50a0 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs
parent9dbb8f8eb3d07ee07cf7ce1beab72df056e157c6 (diff)
downloadTango-04fd2234090e23ff2e648d997a1cc753c9354941.tar.gz
Tango-04fd2234090e23ff2e648d997a1cc753c9354941.zip
Implemented full machine setup with connectivity and communication testing!
Fixed an issue with auto reset event on transport and logging :/
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs
index a2c20ecc2..aee809e9c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml.cs
@@ -12,6 +12,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using Tango.PPC.UI.ViewModels;
using Tango.PPC.UI.ViewsContracts;
namespace Tango.PPC.UI.Views
@@ -35,5 +36,17 @@ namespace Tango.PPC.UI.Views
txtLog.SelectionStart = txtLog.Text.Length;
txtLog.ScrollToEnd();
}
+
+ public Task NavigateTo(MachineSetupViewVM.MachineSetupView view)
+ {
+ TaskCompletionSource<object> source = new TaskCompletionSource<object>();
+
+ navigationControl.NavigateTo(view.ToString(),() =>
+ {
+ source.SetResult(new object());
+ });
+
+ return source.Task;
+ }
}
}