private void OnNavigate(string destination) { switch (destination) { case "orderPrep": this.CurrentViewModel = this.orderPrepViewModel; break; case "orders": this.CurrentViewModel = this.orderViewModel; break; case "customers": this.CurrentViewModel = this.customerListViewModel; break; default: this.CurrentViewModel = this.customerListViewModel; break; } }
private void NavigateToCustomerList() { this.CurrentViewModel = this.customerListViewModel; }
private void NavigateToAddCustomer(Customer customer) { this.addEditViewModel.EditMode = false; this.addEditViewModel.SetCustomer(customer); this.CurrentViewModel = this.addEditViewModel; }
private void NavigateToOrder(Guid customerId) { this.orderViewModel.CustomerId = customerId; this.CurrentViewModel = this.orderViewModel; }