public BookingConfirmation(CreateBooking frmBack)
        {
            this.frm = frmBack;
            InitializeComponent();
           

        }
 private void buttonUpdate_Click(object sender, EventArgs e)
 {
     setIdBooking();
     CreateBooking frm = new CreateBooking();
     frm.setParamsForUpdate(id_booking);
     frm.Show();
     this.Hide();
 }
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            setIdBooking();
            CreateBooking frm = new CreateBooking();

            frm.setParamsForUpdate(id_booking);
            frm.Show();
            this.Hide();
        }
        public RegimensForHotel(Generar_Modificar_Reserva.CreateBooking frmBack)
        {
            this.frm = frmBack;
            InitializeComponent();
            id_hotel = Int32.Parse(textBoxId.Text);
            DataTable results = rh.getRegimensForHotel(id_hotel).Tables[0];
            BindingSource bs = new BindingSource();
            bs.DataSource = results;
            dataGridViewReg.DataSource = bs;

        }
示例#5
0
        public RegimensForHotel(Generar_Modificar_Reserva.CreateBooking frmBack)
        {
            this.frm = frmBack;
            InitializeComponent();
            id_hotel = Int32.Parse(textBoxId.Text);
            DataTable     results = rh.getRegimensForHotel(id_hotel).Tables[0];
            BindingSource bs      = new BindingSource();

            bs.DataSource = results;
            dataGridViewReg.DataSource = bs;
        }
示例#6
0
 public BookingConfirmation(CreateBooking frmBack)
 {
     this.frm = frmBack;
     InitializeComponent();
 }