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