Example #1
0
        //Передача данных в 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);
        }
Example #2
0
 private int CompareByPrice(alco a, alco b)
 {
     return(a.Price - b.Price);
 }
Example #3
0
 private int CompareBySort(alco a, alco b)
 {
     return(a.Sort.CompareTo(b.Sort));
 }
Example #4
0
 private int CompareByName(alco a, alco b)
 {
     return(a.Name.CompareTo(b.Name));
 }