public void Save(Customer instance) { if (!customersData.Contains(instance)) { customersData.Add(instance); } }
public NewCustomerView(Customer customer) { InitializeComponent(); DataContext = this; CurrentCustomer = customer; }
public NewCustomerView(Customer customer, SaveCustomerCommand saveCommand, DeleteAllCommand deleteCommand) { InitializeComponent(); DataContext = this; CurrentCustomer = customer; SaveCommand = saveCommand; }