private void button2_Click(object sender, EventArgs e) { ManageBreakfast manageBreakfast = new ManageBreakfast(Model); manageBreakfast.Dock = DockStyle.Fill; manageBreakfast.MdiParent = this.MdiParent; manageBreakfast.Show(); manageBreakfast.WindowState = FormWindowState.Maximized; }
private void manageBreakfastButton_Click(object sender, EventArgs e) { ManageBreakfast form = new ManageBreakfast(Model); form.Dock = DockStyle.Fill; form.MdiParent = this.MdiParent; form.Show(); form.WindowState = FormWindowState.Maximized; }