Beispiel #1
0
 private void assignIdRegimen()
 {
     if (comboBoxRegimen.SelectedItem == null)
     {
         Generar_Modificar_Reserva.RegimensForHotel frm = new RegimensForHotel(this);
         frm.textBoxId.Text   = Convert.ToString(this.id_hotel);
         frm.textBoxName.Text = this.comboBoxHotel.Text;
         frm.Show();
     }
     else
     {
         String    descr = comboBoxRegimen.Text;
         DataTable dt    = rh.getRegimenIdFromDescr(descr).Tables[0];
         id_regimen = Convert.ToInt32(dt.Rows[0][0].ToString());
     }
 }
 private void assignIdRegimen() {
     if (comboBoxRegimen.SelectedItem == null)
     {
         Generar_Modificar_Reserva.RegimensForHotel frm = new RegimensForHotel(this);
         frm.textBoxId.Text = Convert.ToString(this.id_hotel);
         frm.textBoxName.Text = this.comboBoxHotel.Text;
         frm.Show();
     }
     else {
         String descr = comboBoxRegimen.Text;
         DataTable dt = rh.getRegimenIdFromDescr(descr).Tables[0];
         id_regimen = Convert.ToInt32(dt.Rows[0][0].ToString());
     }
 }