Пример #1
0
 private void ShowReportAllEmployee()
 {
     if (allEmployee == null)
     {
         allEmployee             = new AllEmployeeDetails();
         allEmployee.MdiParent   = this;
         allEmployee.FormClosed += AllEmployee_FormClosed;
         allEmployee.Show();
     }
     else
     {
         allEmployee.Activate();
     }
 }
Пример #2
0
 // Set form instance to null on form close
 private void AllEmployee_FormClosed(object sender, FormClosedEventArgs e)
 {
     allEmployee = null;
 }