Exemplo n.º 1
0
 private void NavToAddCustomer(Customer cust)
 {
     _addEditViewModel.EditMode = false;
     _addEditViewModel.SetCustomer(cust);
     CurrentViewModel = _addEditViewModel;
 }
Exemplo n.º 2
0
 private void _customerListViewModel_EditCustomerRequested(Zza.Data.Customer cust)
 {
     _addEditCustomerViewModel.EditMode = true;
     _addEditCustomerViewModel.SetCustomer(cust);
     CurrentViewModel = _addEditCustomerViewModel;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handles the AddEditCustomer message.
 /// Navigate to AddEditCustomerView.
 /// </summary>
 /// <param name="message">The message.</param>
 public void Handle(AddEditCustomerMessage message)
 {
     _addEditCustomerVM.EditMode = message.IsEditMode;
     _addEditCustomerVM.SetCustomer(message.Customer);
     ActivateItem(_addEditCustomerVM);
 }
Exemplo n.º 4
0
 private void NavigateToAddCustomer(SimpleCustomer customerToAdd)
 {
     _addEditCustomerViewModel.EditMode = false;
     _addEditCustomerViewModel.SetCustomer(customerToAdd);
     CurrentViewModel = _addEditCustomerViewModel;
 }
 private void NavToEditCustomer(Customer customer)
 {
     _addEditViewModel.EditMode = true;
     _addEditViewModel.SetCustomer(customer);
     CurrentViewModel = _addEditViewModel;
 }