private void cmbHotel_SelectedIndexChanged(object sender, EventArgs e)
        {
            Hotel hotel = (Hotel)cmbHotel.SelectedItem;

            if (!(hotel is null))
            {
                cmbHabitacion.Enabled    = true;
                cmbHabitacion.DataSource = HabitacionServicio.TraerHabitacionesPorId(hotel.Id);
                cmbHabitacion.Show();
            }
        }
Пример #2
0
        private void ListarHabitacionPorHotel()
        {
            Hotel hotel = (Hotel)cmbHotel.SelectedValue;

            if (!(hotel is null))
            {
                dataClientes.DataSource = HabitacionServicio.TraerHabitacionesPorId(hotel.Id);
                dataClientes.Columns["Hotel"].Visible   = false;
                dataClientes.Columns["idHotel"].Visible = false;
            }
        }