private void WorkerEmployee_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (cae == null) { cae = new CheckAllEmployee(e.Result); cae.MdiParent = this; cae.FormClosed += cae_FormClosed; cae.Show(); toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Employee Information Load Done"; } else { toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Employee Information Load Done"; cae.Activate(); } }
void cae_FormClosed(object sender, FormClosedEventArgs e) { cae = null; }