Exemple #1
0
 private void TransportesForm_Load(object sender, EventArgs e)
 {
     this.misDatos = DatosTransporte.AbrirDatosTransporte();
     this.editarLinkLabel.Enabled      = false;
     this.inhabilitarLinkLabel.Enabled = false;
     this.habilitarCheckBox.Visible    = false;
     this.tipoComboBox.DataSource      = misDatos.ObtenerTiposDeTransporte();
     this.tipoComboBox.DisplayMember   = "descripcion";
     this.tipoComboBox.ValueMember     = "id_tipotransporte";
     this.tipoComboBox.SelectedIndex   = 0;
     this.CargaListaEnGrillaDeDatos();
     this.estadoGrabacion = TipoGrabacion.None;
     this.ActivarListado();
 }
Exemple #2
0
        private void DestinosForm_Load(object sender, EventArgs e)
        {
            DatosTransporte datosTransporte = DatosTransporte.AbrirDatosTransporte();

            this.transporteComboBox.DataSource    = datosTransporte.ObtenerListadoDeTransporte();
            this.transporteComboBox.DisplayMember = "Transporte";
            this.transporteComboBox.ValueMember   = "ID";
            this.misDatos = DatosDestino.AbrirDatosDestino();
            this.editarLinkLabel.Enabled      = false;
            this.inhabilitarLinkLabel.Enabled = false;
            this.habilitarCheckBox.Visible    = false;
            this.CargaListaEnGrillaDeDatos();
            this.estadoGrabacion = TipoGrabacion.None;
            this.ActivarListado();
        }