public void NavigateToCustomer(Customer customer) { var screen = IoC.Get<CustomerViewModel>(); screen.Customer = customer; NavigateToScreen(screen); }
public void NavigateToCashHome(Customer cashCustomer) { var screen = IoC.Get<CashHomeViewModel>(); screen.CashCustomer = cashCustomer; NavigateToScreen(screen, true); }
public void NavigateToCustomer(Customer customer, bool cardSession = false) { var screen = IoC.Get<CustomerViewModel>(); screen.Customer = customer; screen.CardSession = cardSession; NavigateToScreen(screen, true); }
public void AddCustomer(Customer customer) { if (customer.Id == Guid.Empty) { customer.Id = Guid.NewGuid(); } customer.Insert(); }
public void Write(Customer customer) { var card = CardWriteService.Write(); if (!String.IsNullOrEmpty(card)) { var current = CustomerService.GetCustomer(customer.Id); customer.Number = card; CustomerService.UpdateCustomer(customer); } }
public void NavigateToPinEntry(Customer customer) { var screen = IoC.Get<PinEntryViewModel>(); screen.Customer = customer; NavigateToScreen(screen, true); }
public void Save() { var customer = new Customer { Name = Name, Number = Number }; CustomerService.AddCustomer(customer); Close(); }
public void UpdateCustomer(Customer customer) { customer.Update(); }
public void UpdateCustomer(Customer customer) { Manager.UpdateCustomer(customer); }
public void AddCustomer(Customer customer) { Manager.AddCustomer(customer); }
public CustomerTransactionModel(CustomerTransaction customerTransaction, Customer customer) { CustomerTransaction = customerTransaction; Customer = customer; }