private void cbAddCustomer_Click(Object eventSender, EventArgs eventArgs) { frmCustAdd custAdd = frmCustAdd.CreateInstance(); custAdd.ShowDialog(); if (custAdd.SavedCustomer) { // Saves the current customer ID and updates its info on the sales screen m_CurrentCustomer = (custAdd.SavedCustomerID) ? -1 : 0; LoadCustomerInfo(m_CurrentCustomer); } }
public static frmCustAdd CreateInstance() { frmCustAdd theInstance = new frmCustAdd(); return(theInstance); }