private void ShowFormRoom() { var formRoom = new FormRoom(houseId); formRoom.houseId = houseId; formRoom.ShowDialog(); }
private void itemRoom_Click(object sender, EventArgs e) { FormRoom formRoom = new FormRoom(); formRoom.MdiParent = this; formRoom.Show(); }
private void roomToolStripMenuItem_Click(object sender, EventArgs e) { var form = new FormRoom(); ShowForm(form); }