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