コード例 #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);
        }
コード例 #2
0
 private int CompareByPrice(alco a, alco b)
 {
     return(a.Price - b.Price);
 }
コード例 #3
0
 private int CompareBySort(alco a, alco b)
 {
     return(a.Sort.CompareTo(b.Sort));
 }
コード例 #4
0
 private int CompareByName(alco a, alco b)
 {
     return(a.Name.CompareTo(b.Name));
 }