Example #1
0
 public AltaCliente(SQLConnector conec,Generar_Modificar_Reserva.Generar genForm)
 {
     InitializeComponent();
     inicializar();
     conexion = conec;
     geneF = genForm;
 }
        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;

        }