Пример #1
0
 void cadi_FormClosed(object sender, FormClosedEventArgs e)
 {
     cadi = null;
 }
Пример #2
0
        private void WorkerDepartment_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {

            if (cadi == null)
            {
                cadi = new CheckAllDepartmentInfo((List<Department>) e.Result);
                cadi.MdiParent = this;
                cadi.FormClosed += cadi_FormClosed;
                cadi.Show();
                toolStripProgressBar1.Visible = false;
                toolStripStatusLabel1.Text = "All Department Information Load Done";
                
            }
            else
            {
                toolStripProgressBar1.Visible = false;
                toolStripStatusLabel1.Text = "All Department Information Load Done";
                cadi.CheckAllDepartmentInfo_Load(sender, e);
                cadi.Activate();
                
            }
        }