Пример #1
0
 /// <summary>
 /// Singleton object creation method
 /// </summary>
 /// <returns>object of a frmM_Supplier</returns>
 public static frm_shifts getSingleton()
 {
     if (objSingleObject == null || objSingleObject.IsDisposed)
     {
         objSingleObject = new frm_shifts();
     }
     return(objSingleObject);
 }
Пример #2
0
        private void A0003_Click(object sender, EventArgs e)
        {
            frm_shifts objSupp = frm_shifts.getSingleton();

            objSupp.MdiParent = this;
            objSupp.Activate();
            objSupp.Show();
        }