コード例 #1
0
 private void dataGridViewClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 11)
     {
         this.Hide();
         HotelForm hotel_form = new HotelForm();
         hotel_form.hotel_id      = lista_codigos_hotel[e.RowIndex].ToString();
         hotel_form.StartPosition = FormStartPosition.CenterScreen;
         hotel_form.ShowDialog();
     }
 }
コード例 #2
0
ファイル: Hotel.cs プロジェクト: Ale1391/GH2014
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBoxHotel.Text.Length == 0)
     {
         MessageBox.Show("Primero debes elegir una opción.");
     }
     else if (comboBoxHotel.Text == "Crear Hotel Nuevo")
     {
         this.Hide();
         HotelForm Hotel_form = new HotelForm();
         Hotel_form.hotel_id      = "";
         Hotel_form.StartPosition = FormStartPosition.CenterScreen;
         Hotel_form.ShowDialog();
     }
     else if (comboBoxHotel.Text == "Editar Hotel Existente")
     {
         this.Hide();
         HotelBusqueda busqueda_hotel = new HotelBusqueda();
         busqueda_hotel.StartPosition = FormStartPosition.CenterScreen;
         busqueda_hotel.ShowDialog();
     }
 }