private void WorkerAdmin_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { //List<Admin> dataReceived = (List<Admin>) e.Result; if (caa == null) { caa = new CheckAllAdmin(e.Result); caa.MdiParent = this; caa.FormClosed += caa_FormClosed; caa.Show(); toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Admin Information Load Done"; } else { toolStripProgressBar1.Visible = false; toolStripStatusLabel1.Text = "All Admin Information Load Done"; caa.Activate(); } }
void caa_FormClosed(object sender, FormClosedEventArgs e) { caa = null; }