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