public static List <InfoShipping> GetAll() { InfoShipping info = new InfoShipping { shipTo = "" }; var data = repository.GetAll().ToList(); data.Insert(0, info); return(data); }
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(""); } }
private void CboDireccion_SelectedValueChanged(object sender, EventArgs e) { direccion = (InfoShipping)cboDireccion.SelectedItem; }