private void addButton_Click(object sender, EventArgs e) { addStaff r = new addStaff(Model); // All forms get passed the formContainer and a reference to the model object. this.Text = this.Text + "-Staff"; r.Dock = DockStyle.Fill; r.MdiParent = this.MdiParent; r.Show(); r.WindowState = FormWindowState.Maximized; }
private void button4_Click(object sender, EventArgs e) { addStaff form1 = new addStaff(Model); // All forms get passed the formContainer and a reference to the model object. form1.MdiParent = this.MdiParent; form1.Show(); }