public FormModificarConsumicion()
 {
     InitializeComponent();
     comboBox1.DataSource    = ConsumicionDAL.TraerConsumicionesNombreyPrecio();
     comboBox1.DisplayMember = "Consumicion";
     comboBox1.ValueMember   = "id";
 }
Example #2
0
 public FormAgregarConsumicionPorHabitacion()
 {
     InitializeComponent();
     datePickerConsumcion.Format       = DateTimePickerFormat.Custom;
     datePickerConsumcion.CustomFormat = "yyyy-MM-dd";
     cboboxConsumicion.DataSource      = ConsumicionDAL.TraerConsumicionesNombreyPrecio();
     cboboxConsumicion.DisplayMember   = "Consumicion";
     cboboxConsumicion.ValueMember     = "id";
     cboboxHabitacion.DataSource       = HabitacionDAL.TraeHabitaciones();
     cboboxHabitacion.DisplayMember    = "num_habitacion";
     cboboxHabitacion.ValueMember      = "id";
 }