Esempio n. 1
0
 /// <summary>
 /// Singleton object creation method
 /// </summary>
 /// <returns>object of a frmM_Supplier</returns>
 public static PumpStatus getSingleton()
 {
     if (objSingleObject == null || objSingleObject.IsDisposed)
     {
         objSingleObject = new PumpStatus();
     }
     return(objSingleObject);
 }
Esempio n. 2
0
        private void A2001_Click(object sender, EventArgs e)
        {
            PumpStatus objSupp = PumpStatus.getSingleton();

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