private void mnuTransactionCustomer_Click(object sender, EventArgs e) { if (frmCustomerList.CurrentInstance != null) { frmCustomerList.CurrentInstance.Close(); frmCustomerList.CurrentInstance.Dispose(); } frmCustomerList ofrm = frmCustomerList.CurrentInstance; ofrm.MdiParent = this; ofrm.Show(); }
public frmCustomerList() { InitializeComponent(); m_CurrentInstance = this; }