Ejemplo n.º 1
0
        public static List <InfoShipping> GetAll()
        {
            InfoShipping info = new InfoShipping
            {
                shipTo = ""
            };

            var data = repository.GetAll().ToList();

            data.Insert(0, info);
            return(data);
        }
Ejemplo n.º 2
0
 private void CboShipTo_SelectedValueChanged(object sender, EventArgs e)
 {
     if (cboShipTo.SelectedItem != null)
     {
         shipTo = (InfoShipping)cboShipTo.SelectedItem;
         if (shipTo.Id > 0)
         {
             LlenaComboDireccion(shipTo.shipTo);
         }
         else
         {
             LlenaComboDireccion("");
         }
     }
     else
     {
         LlenaComboDireccion("");
     }
 }
Ejemplo n.º 3
0
 private void CboDireccion_SelectedValueChanged(object sender, EventArgs e)
 {
     direccion = (InfoShipping)cboDireccion.SelectedItem;
 }