コード例 #1
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     ManageRooms r = new ManageRooms(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;
 }
コード例 #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     ManageRooms newForm = new ManageRooms(Model);
     newForm.MdiParent = this.MdiParent;
     newForm.Show();
 }