public static async Task<List<Supplier>> GetSuppliersForThisMaterial(Material material) { List<Supplier> suppliers = await GetSuppliers(); IEnumerable<Supplier> query = from S in suppliers where S.Materials.Contains(material) select S; return query.ToList(); }
private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { m = lstmateriales.SelectedItem as Material; if (m != null) { p = m.Suppliers; NavigationService.Navigate(new Uri("/Views/Proveedor.xaml", UriKind.Relative)); } }
public void cargardoDedatosFeo(Material a) { TextNombreComercial.Text = tmpMaterial.CommercialName; TextColorMaterial.Text = tmpMaterial.Color.ToString(); TextTipoUnidad.Text = tmpMaterial.Unit; TextCostoUnidadMaterial.Text = tmpMaterial.UnitPrice.ToString(); }