private void button1_Click(object sender, EventArgs e) { frmAddNewWorker obj = frmAddNewWorker.getInstance(); obj.Show(); obj.BringToFront(); }
public static frmAddNewWorker getInstance() { if (instance == null || instance.IsDisposed) { instance = new frmAddNewWorker(); } return(instance); }