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