diff options
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.cs | 24 |
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 |
