public FrmEditarTransporte(Transporte owner)
        {
            _owner = owner;
            InitializeComponent();

            this.Id_Transportista = Convert.ToInt32(_owner.ObtenerSeleccion().Cells["ID"].Value);
            this.textBoxNombre.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["NOMBRE"].Value);
            this.textBoxDireccion.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["DIRECCIÓN"].Value);
            this.textBoxCiudad.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["CIUDAD"].Value);
            this.textBoxRegion.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["REGIÓN"].Value);
            this.textBoxPais.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["PAÍS"].Value);
            this.textBoxTelefono.Text = Convert.ToString(_owner.ObtenerSeleccion().Cells["TELÉFONO"].Value);
        }
 private void buttonTransporte_Click(object sender, EventArgs e)
 {
     if (transporte == null)
     {
         transporte = new Transporte();
         this.panelContenedor.Controls.Clear();
         this.panelContenedor.Controls.Add(transporte);
     }
     else
     {
         this.panelContenedor.Controls.Clear();
         this.panelContenedor.Controls.Add(transporte);
     }
 }
Esempio n. 3
0
        //Comprobante controlCompro;
        //     Producto _cat;
        public FrmInicio()
        {
            InitializeComponent();
            controlPedidio  = new Pedido();
            controlProducto = new Producto();
            controlCateg    = new Categoria();
            controlClient   = new Cliente();
            controlEmpl     = new Empleado();
            controlProv     = new Proveedor();
            controlTrans    = new Transporte();
            // controlCompro = new Comprobante();

            //this.borrarpanel();
            //Categoria ver = new Categoria();

            //ver.mostrar();


            //new Categoria().mostrar();
        }
 public FrmAgregarNuevoTransporte(Transporte owner)
 {
     _owner = owner;
     InitializeComponent();
 }
 private void buttonTransporte_Click(object sender, EventArgs e)
 {
     if (transporte == null)
     {
         transporte = new Transporte();
         this.panelContenedor.Controls.Clear();
         this.panelContenedor.Controls.Add(transporte);
     }
     else
     {
         this.panelContenedor.Controls.Clear();
         this.panelContenedor.Controls.Add(transporte);
     }
 }
 private void buttonTransporte_Click(object sender, EventArgs e)
 {
     Transporte controlTransporte = new Transporte();
     this.panelContainer.Controls.Clear();
     this.panelContainer.Controls.Add(controlTransporte);
 }
Esempio n. 7
0
 public FrmIngresarTransporte(Transporte owner)
 {
     _owner = owner;
     InitializeComponent();
 }
 public frmAgregarNuevoTransporte(Transporte owner)
 {
     _owner = owner;
     InitializeComponent();
 }