public BaseRol() { InitializeComponent(); this.db = new DbComunicator(); this.validator = new Commons.Validator(); this.enabledButtons = new Commons.EnabledButtons(); }
public BaseRuta() { InitializeComponent(); this.db = new DbComunicator(); this.validator = new Commons.Validator(); this.validator2 = new Commons.Validator(); this.validator3 = new Commons.Validator(); this.enabledButtons = new Commons.EnabledButtons(); TB_precio_kg.KeyPress += this.InputNumField_KeyPress2; TB_precio_pasaje.KeyPress += this.InputNumField_KeyPress3; TB_codigo_unico.KeyPress += this.InputNumField_KeyPress; }
public BaseAeronave() { InitializeComponent(); this.db = new DbComunicator(); this.validator = new Commons.Validator(); this.enabledButtons = new Commons.EnabledButtons(); TB_butacas_pasillo.KeyPress += this.InputNumField_KeyPress; TB_butacas_ventanilla.KeyPress += this.InputNumField_KeyPress; TB_kg_disponibles.KeyPress += this.InputNumField_KeyPress; TB_numero.KeyPress += this.InputNumField_KeyPress; string QueryServicio = "SELECT TipoSer_Nombre Nombre FROM [GD2C2015].[TS].[Tipo_Servicio]"; Dictionary<object, object> Servicios = this.db.GetQueryDictionary(QueryServicio, "Nombre", "Nombre"); CB_servicio.DataSource = new BindingSource(Servicios, null); CB_servicio.DisplayMember = "Value"; CB_servicio.ValueMember = "Key"; }