aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-29 00:52:48 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-29 00:52:48 +0300
commit330c34d62c8dfe8ce03041c82b41f51e13ecefed (patch)
treed0fdf3bae352ad57a63a34760b8616de42d7c5a4 /Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs
parent233e2ec157a443170f873934e0fa8083cf543ede (diff)
downloadTango-330c34d62c8dfe8ce03041c82b41f51e13ecefed.tar.gz
Tango-330c34d62c8dfe8ce03041c82b41f51e13ecefed.zip
Home navigation, start events view..
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs
index 3564f9b7b..a55e6cf64 100644
--- a/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs
+++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs
@@ -10,6 +10,7 @@ using Tango.FSE.Common;
using Tango.FSE.Common.Navigation;
using Tango.FSE.Common.Notifications;
using Tango.FSE.UI.Panes;
+using Tango.FSE.UI.Views;
using Tango.Integration.ExternalBridge;
using Tango.SharedUI.Helpers;
using Tango.Transport;
@@ -126,6 +127,16 @@ namespace Tango.FSE.UI.ViewModels
/// </summary>
public RelayCommand ReportIssueCommand { get; set; }
+ /// <summary>
+ /// Navigates to the events view.
+ /// </summary>
+ public RelayCommand NavigateToEventsCommand { get; set; }
+
+ /// <summary>
+ /// Navigates to the home view.
+ /// </summary>
+ public RelayCommand NavigateHomeCommand { get; set; }
+
#endregion
#region Constructors
@@ -150,6 +161,9 @@ namespace Tango.FSE.UI.ViewModels
_transportInActionTimer = new ActionTimer(TimeSpan.FromMilliseconds(50));
ReportIssueCommand = new RelayCommand(OpenBugReportDialog);
+
+ NavigateToEventsCommand = new RelayCommand(NavigateToEvents);
+ NavigateHomeCommand = new RelayCommand(NavigateHome);
}
#endregion
@@ -292,6 +306,16 @@ namespace Tango.FSE.UI.ViewModels
BugReporter.ShowBugReportDialog();
}
+ private void NavigateToEvents()
+ {
+ NavigationManager.NavigateTo<InternalModule>(nameof(EventsView));
+ }
+
+ private void NavigateHome()
+ {
+ NavigationManager.NavigateTo(NavigationView.Home);
+ }
+
#endregion
//Not used