コード例 #1
0
 public int getPos(SupplyDetailsHelper sd_helper)
 {
     if (_collection.Contains(sd_helper))
     {
         return(_collection.IndexOf(sd_helper) + 1);
     }
     return(-1);
 }
コード例 #2
0
 public void remove(SupplyDetailsHelper sd_helper)
 {
     if (_collection.Contains(sd_helper))
     {
         _collection.Remove(sd_helper);
         _collection.All(x => { x.RowIndex = 1; return(true); });
         updateLastRow();
     }
 }
コード例 #3
0
 public void add(SupplyDetailsHelper sd_helper)
 {
     _collection.Add(sd_helper);
     updateLastRow();
 }