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

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