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

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