private void ParentForm_Load(object sender, EventArgs e) { EmpHome f = new EmpHome(emp); f.MdiParent = this; f.Dock = DockStyle.Fill; f.Show(); }
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(); }
// //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(); }