Example #1
0
        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;
            }
        }
Example #2
0
 private void NavigateToCustomerList()
 {
     this.CurrentViewModel = this.customerListViewModel;
 }
Example #3
0
 private void NavigateToAddCustomer(Customer customer)
 {
     this.addEditViewModel.EditMode = false;
     this.addEditViewModel.SetCustomer(customer);
     this.CurrentViewModel = this.addEditViewModel;
 }
Example #4
0
 private void NavigateToOrder(Guid customerId)
 {
     this.orderViewModel.CustomerId = customerId;
     this.CurrentViewModel          = this.orderViewModel;
 }