Пример #1
0
 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);
 }
Пример #2
0
 private void buttonAddRoom_Click(object sender, EventArgs e)
 {
     addRoomForm = new AddRoomForm();
     addRoomForm.ShowDialog(this);
 }