//Передача данных в bindingSource1 public void vvod(string name3, int spirt3, string sort3, int price3) { alco nn = new alco(); nn.Name = name3; nn.Spirt = spirt3; nn.Sort = sort3; nn.Price = price3; nn.Kol = 0; nn.Scholarship = false; bindingSource1.Add(nn); }
private int CompareByPrice(alco a, alco b) { return(a.Price - b.Price); }
private int CompareBySort(alco a, alco b) { return(a.Sort.CompareTo(b.Sort)); }
private int CompareByName(alco a, alco b) { return(a.Name.CompareTo(b.Name)); }