private void NavToAddCustomer(Customer cust) { _addEditViewModel.EditMode = false; _addEditViewModel.SetCustomer(cust); CurrentViewModel = _addEditViewModel; }
private void _customerListViewModel_EditCustomerRequested(Zza.Data.Customer cust) { _addEditCustomerViewModel.EditMode = true; _addEditCustomerViewModel.SetCustomer(cust); CurrentViewModel = _addEditCustomerViewModel; }
/// <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); }
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; }