private void WorkerJobStatus_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (camj == null) { camj = new CheckAllMyJob((List <EmployeeJobAssign>)e.Result); camj.MdiParent = this; camj.FormClosed += camj_FormClosed; camj.Show(); toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Job Information Load Done"; } else { toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Job Information Load Done"; camj.Activate(); } }
void camj_FormClosed(object sender, FormClosedEventArgs e) { camj = null; }