/// <summary> /// Singleton object creation method /// </summary> /// <returns>object of a frmM_Supplier</returns> public static frmcustomers getSingleton() { if (objSingleObject == null || objSingleObject.IsDisposed) { objSingleObject = new frmcustomers(); } return(objSingleObject); }
private void A0007_Click(object sender, EventArgs e) { frmcustomers objSupp = frmcustomers.getSingleton(); objSupp.MdiParent = this; objSupp.Activate(); objSupp.Show(); }