public void AddCellMap(CellMap map) { // if data is already there, do nothing if (cellMaps.Contains(map)) { return; } cellMaps.Add(map); }
/// <summary> /// Returns a CellMap list rather than an observable collection /// </summary> /// <param name="observableList"></param> /// <returns></returns> public CellMap[] GetCellMapping(ObservableCollection <CellMap> observableList) { int count = observableList.Count; CellMap[] tmpArray = new CellMap[count]; for (int i = 0; i < count; i++) { tmpArray[i] = observableList[i]; } return(tmpArray); }
public void RemoveCellMap(CellMap map) { cellMaps.Remove(map); }