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