private void reportDamageToHotelRoomButton_Click(object sender, EventArgs e) { ReportDamageToHotelRoom r = new ReportDamageToHotelRoom(Model); // All forms get passed the formContainer and a reference to the model object. r.Dock = DockStyle.Fill; r.MdiParent = this.MdiParent; r.Show(); r.WindowState = FormWindowState.Maximized; }
private void reportDamageButton_Click_1(object sender, EventArgs e) { ReportDamageToHotelRoom form = new ReportDamageToHotelRoom(Model); form.Dock = DockStyle.Fill; form.MdiParent = this.MdiParent; form.Show(); form.WindowState = FormWindowState.Maximized; }