private bool IsDuplicateOfExisting(Customer newCustomer) { Customer duplicateCustomer = m_customerDao.GetByName(newCustomer.ContactName); return duplicateCustomer != null; }
public void Save(Customer p_customer) { m_CustomersDataSet.CustomersDataTable.AddCustomersDataTableRow( p_customer.ContactName, p_customer.CompanyName); m_CustomersDataSet.WriteXml(m_fileName); }
private void raiseCustomerSaved(Customer p_customer) { if (CustomerSaved != null) { CustomerSaved(this, new CustomerSavedEventArgs(p_customer)); } }
public void Save(Customer p_customer) { CustomerDataMapper dataMapper = new CustomerDataMapper(FILE_NAME); dataMapper.Save(p_customer); }
public void AddCustomerToList(Customer p_customer) { ListViewItem item = new ListViewItem(p_customer.ContactName); item.SubItems.Add(p_customer.CompanyName); listView1.Items.Add(item); }
public void AddCustomerToList(Customer p_customer) { ListBox1.Items.Add(p_customer.ContactName); }
public CustomerSavedEventArgs(Customer p_customer) { m_customer = p_customer; }
public void Save(Customer p_customer) { m_dataMapper.Save(p_customer); raiseCustomerSaved(p_customer); }