Beispiel #1
0
 private void employeeRecordsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (mEmployee == null)
     {
         mEmployee             = new ManageEmployee();
         mEmployee.MdiParent   = this;
         mEmployee.FormClosed += MEmployee_FormClosed;
         mEmployee.WindowState = FormWindowState.Maximized;
         mEmployee.Show();
     }
     else
     {
         mEmployee.Activate();
     }
 }
Beispiel #2
0
 //manage employee
 private void button2_Click(object sender, EventArgs e)
 {
     if (mEmployee == null)
     {
         mEmployee             = new ManageEmployee();
         mEmployee.MdiParent   = this.MdiParent;
         mEmployee.WindowState = FormWindowState.Maximized;
         mEmployee.FormClosed += MEmployee_FormClosed;
         mEmployee.Show();
         //advanceBookSearchToolStripMenuItem.Enabled = true;
         //idShortcut = mbooks.delBookID;
     }
     else
     {
         mEmployee.Activate();
     }
 }
Beispiel #3
0
 private void MEmployee_FormClosed(object sender, FormClosedEventArgs e)
 {
     mEmployee = null;
     //throw new NotImplementedException();
 }