Esempio n. 1
0
        private void WorkerTraining_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {

            if (cata == null)
            {
                cata = new CheckAllTrainingAdmin((List<Training>)e.Result);
                cata.MdiParent = this;
                cata.FormClosed += cata_FormClosed;
                cata.Show();
                toolStripProgressBar1.Visible = false;
                toolStripStatusLabel1.Text = "All Training Information Load Done";
            }
            else
            {
                toolStripProgressBar1.Visible = false;
                toolStripStatusLabel1.Text = "All Training Information Load Done";
                cata.Activate();
            }
        }
Esempio n. 2
0
 void cata_FormClosed(object sender, FormClosedEventArgs e)
 {
     cata = null;
 }