private void ViewAllItems() { //var navigationParameters = new NavigationParameters(); //navigationParameters.Add(NavParameters.User, _user); CustomerFrame.Navigate(new ViewAllItemsView()); //_regionManager.RequestNavigate(Regions.CustomerRegion, Pages.ViewAllItemsView, navigationParameters); }
private void ReturnedItems() { //var navigationParameters = new NavigationParameters(); //navigationParameters.Add(NavParameters.User, _user); CustomerFrame.Navigate(new HistoryOfRentedItemsView()); //_regionManager.RequestNavigate(Regions.CustomerRegion, new Uri("CurrentBorrowedItemView", UriKind.Relative), navigationParameters); }
public CustomerMainViewModel(IRegionManager regionManager) { _regionManager = regionManager; ViewAllItemsCommand = new DelegateCommand(ViewAllItems); CurrentBrrowedCommand = new DelegateCommand(CurrentBrrowedItems); ReturnedBrrowedCommand = new DelegateCommand(ReturnedItems); SignoutCommand = new DelegateCommand(Signout); _user = Application.Current.Properties[NavParameters.User] as User; CustomerFrame.Navigate(new ViewAllItemsView()); }