public int getPos(WriteoffDetailsHelper wod_helper) { if (_collection.Contains(wod_helper)) { return(_collection.IndexOf(wod_helper) + 1); } return(-1); }
public void remove(WriteoffDetailsHelper wod_helper) { if (_collection.Contains(wod_helper)) { _collection.Remove(wod_helper); _collection.All(x => { x.RowIndex = 1; return(true); }); updateLastRow(); } }
public void add(WriteoffDetailsHelper wod_helper) { _collection.Add(wod_helper); updateLastRow(); }