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

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