示例#1
0
 private void ParentForm_Load(object sender, EventArgs e)
 {
     EmpHome f = new EmpHome(emp);
     f.MdiParent = this;
     f.Dock = DockStyle.Fill;
     f.Show();
 }
示例#2
0
 private void back_Click(object sender, EventArgs e)
 {
     EmpHome m = new EmpHome(emp);
     m.MdiParent = this.MdiParent;
     m.Dock = DockStyle.Fill;
     this.Close();
     m.Show();
 }
示例#3
0
 //
 //Navigates to Admin home or Employee home as per the emp type
 //
 private void back_Click(object sender, EventArgs e)
 {
     if (emp.type == 2)
     {
         EmpHome fm4 = new EmpHome(emp);
         fm4.MdiParent = this.MdiParent;
         fm4.Dock = DockStyle.Fill;
         this.Close();
         fm4.Show();
     }
     else
         this.Close();
 }