private void btn_promptUsu_Click(object sender, EventArgs e)
        {
            using (PromptHoteles prompt = new PromptHoteles())
            {
                prompt.ShowDialog();

                hotel = Convert.ToDecimal(prompt.TextBox1.Text);
                txt_nombre_hotel.Text = prompt.TextBox2.Text;

                prompt.Close();
            }
            this.Show();
        }
Пример #2
0
 private void btn_hotel_Click(object sender, EventArgs e)
 {
     using (PromptHoteles formPromptHotel01 = new PromptHoteles())
     {
         formPromptHotel01.ShowDialog();
         if (formPromptHotel01.TextBox1.Text != "")
         {
             hotelID        = Convert.ToDecimal(formPromptHotel01.TextBox1.Text);
             txt_hotel.Text = formPromptHotel01.TextBox2.Text;
         }
         formPromptHotel01.Close();
     }
     this.Show();
 }
        private void btn_promptHotel_Click(object sender, EventArgs e)
        {
            using (PromptHoteles prompt = new PromptHoteles())
            {
                prompt.ShowDialog();

                if (prompt.TextBox1.Text != "")
                {
                    hotel           = Convert.ToDecimal(prompt.TextBox1.Text);
                    txt_codigo.Text = prompt.TextBox2.Text;
                }
                prompt.Close();
            }
            this.Show();
        }