public Alquiler() { InitializeComponent(); alquiler = new ClsAlquiler(); combo = new ClsCombos(); cargarCombos(); }
public Vehiculo() { InitializeComponent(); combo = new ClsCombos(); vehiculo = new ClsVehiculo(); cargarLista(); }
public Usuario() { InitializeComponent(); usuario = new ClsUsuario(); combos = new ClsCombos(); ciudades = new LinkedList <string>(); generos = new LinkedList <string>(); tiposDoc = new LinkedList <string>(); combos = new ClsCombos(); cargarCombos(); }
void confCombo(DropDownList combo, string tabla, string condicion = "", Boolean seleccione = true, string dataField = "id", string textField = "nombre") { ClsCombos cbo = new ClsCombos(); try { combo.DataSource = cbo.fill(tabla, condicion, seleccione); combo.DataValueField = dataField; combo.DataTextField = textField; combo.DataBind(); } catch (Exception ex) { throw ex; } }
void confChk(RadioButtonList rbl, string tabla, string condicion = "", Boolean seleccione = true, string dataField = "id", string textField = "nombre") { ClsCombos cbo = new ClsCombos(); try { rbl.DataSource = cbo.fill(tabla, condicion, seleccione); rbl.DataValueField = dataField; rbl.DataTextField = textField; rbl.DataBind(); } catch (Exception ex) { throw ex; } }