private void button1_Click(object sender, EventArgs e)
        {
            frmAddNewWorker obj = frmAddNewWorker.getInstance();

            obj.Show();
            obj.BringToFront();
        }
Example #2
0
 public static frmAddNewWorker getInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new frmAddNewWorker();
     }
     return(instance);
 }