Beispiel #1
0
 // VERY nightly, such sad function
 private void buttonEditHotel_Click(object sender, EventArgs e)
 {
     updateHotelForm = new AddHotelForm(
         int.Parse((string)dataGridViewHotels.SelectedRows[0].Cells[0].Value),
         dataGridViewHotels.SelectedRows[0].Cells[1].Value.ToString(),
         dataGridViewHotels.SelectedRows[0].Cells[2].Value.ToString(),
         dataGridViewHotels.SelectedRows[0].Cells[3].Value.ToString(),
         dataGridViewHotels.SelectedRows[0].Cells[4].Value.ToString(),
         int.Parse(dataGridViewHotels.SelectedRows[0].Cells[5].Value.ToString()),
         dataGridViewHotels.SelectedRows[0].Cells[6].Value.ToString(),
         dataGridViewHotels.SelectedRows[0].Cells[7].Value.ToString());
     updateHotelForm.ShowDialog(this);
 }
Beispiel #2
0
 private void buttonAddHotel_Click(object sender, EventArgs e)
 {
     addHotelForm = new AddHotelForm();
     addHotelForm.ShowDialog(this);
 }