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