public void GetKernel(string kernel) { Jewelry[] selection = JewelryType.Where(i => i.Kernel.Material.Name == kernel).ToArray <Jewelry>(); JewelryType.Clear(); foreach (Jewelry j in selection) { JewelryType.Add(j); } }
public void GetCombine() { Jewelry[] selection = JewelryType.Where(i => i.Basis.Material.Name == "комбинированный").ToArray <Jewelry>(); JewelryType.Clear(); foreach (Jewelry j in selection) { JewelryType.Add(j); } }
public void GetBrand(string brand) { Jewelry[] selection = JewelryType.Where(i => i.Brand == brand).ToArray <Jewelry>(); JewelryType.Clear(); foreach (Jewelry j in selection) { JewelryType.Add(j); } }
public void GetGold() { Jewelry[] selection = JewelryType.Where(i => i.Basis.Material.Name == "золото").ToArray <Jewelry>(); JewelryType.Clear(); foreach (Jewelry j in selection) { JewelryType.Add(j); } }