Пример #1
0
 private void btn_regimen_Click(object sender, EventArgs e)
 {
     if (txt_hotel.Text != "")
     {
         if (hotel == 0)
         {
             hotel = hotelID;
         }
         // se abre un prompt para que se elija el régimen
         using (PromptRegimenes formPromptRegimen01 = new PromptRegimenes(hotel))
         {
             formPromptRegimen01.ShowDialog();
             if (formPromptRegimen01.TextBox1.Text != "")
             {
                 regimenID        = Convert.ToDecimal(formPromptRegimen01.TextBox1.Text);
                 txt_regimen.Text = formPromptRegimen01.TextBox2.Text;
             }
             formPromptRegimen01.Close();
         }
         this.Show();
     }
     else
     {
         MessageBox.Show("Debe seleccionar un hotel primero para poder ofrecerle los regímenes", "FOUR SIZONS - FRBA Hoteles", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #2
0
 private void btn_regimen_Click(object sender, EventArgs e)
 {
     using (PromptRegimenes formPromptRegimen01 = new PromptRegimenes(hotelID))
     {
         formPromptRegimen01.ShowDialog();
         if (formPromptRegimen01.TextBox1.Text != "")
         {
             regimenID        = Convert.ToDecimal(formPromptRegimen01.TextBox1.Text);
             txt_regimen.Text = formPromptRegimen01.TextBox2.Text;
         }
         formPromptRegimen01.Close();
     }
     this.Show();
 }