コード例 #1
0
 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();
 }
コード例 #2
0
 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));
     }
 }
コード例 #3
0
 public void cargardoDedatosFeo(Material a)
 {
     TextNombreComercial.Text = tmpMaterial.CommercialName;
     TextColorMaterial.Text = tmpMaterial.Color.ToString();
     TextTipoUnidad.Text = tmpMaterial.Unit;
     TextCostoUnidadMaterial.Text = tmpMaterial.UnitPrice.ToString();
 }