public void Navigate(NavigationPoint point) { if (point.Name == "Exit") { //Application.Current.Shutdown(); _userService.Logout(); } }
public void Navigate(NavigationPoint point) { var contentRegion = _regionManager.Regions["ContentRegion"]; if (point.Name == "Maintance" && point.Category == "Administration") { var view = _container.Resolve<MaintanceView_Administrator>(); contentRegion.Add(view); contentRegion.Activate(view); } }
public void Navigate(NavigationPoint point) { var contentRegion = _regionManager.Regions["ContentRegion"]; if (point.Name == "Edit Sales") { var view = _container.Resolve<EditSalesView_Main>(); contentRegion.Add(view); contentRegion.Activate(view); } if (point.Name == "Sales" && point.Category == "Main") { var view = _container.Resolve<SalesView_Main>(); contentRegion.Add(view); contentRegion.Activate(view); } if (point.Name == "Sales" && point.Category == "Administration") { var view = _container.Resolve<SalesView_Administrator>(); contentRegion.Add(view); contentRegion.Activate(view); } if (point.Name == "Close Cash" && point.Category == "Main") { var view = _container.Resolve<CloseCashView_Main>(); contentRegion.Add(view); contentRegion.Activate(view); } }
public void RegisterNavigationPoint(NavigationPoint point) { _navigationPoints.Add(point); }
void Navigate(NavigationPoint point) { Console.WriteLine("Publish: " + point.Name + " [" + point.Category + "]"); _eventAggregator.GetEvent<NavigateEvent>().Publish(point); }