private void buttonEditRoom_Click(object sender, EventArgs e) { updateRoomForm = new AddRoomForm( int.Parse((string)dataGridViewRooms.SelectedRows[0].Cells[0].Value), int.Parse((string)dataGridViewRooms.SelectedRows[0].Cells[1].Value), dataGridViewRooms.SelectedRows[0].Cells[2].Value.ToString() ); updateRoomForm.ShowDialog(this); }
private void buttonAddRoom_Click(object sender, EventArgs e) { addRoomForm = new AddRoomForm(); addRoomForm.ShowDialog(this); }