Ejemplo n.º 1
0
        public void AddCellMap(CellMap map)
        {
            // if data is already there, do nothing
            if (cellMaps.Contains(map))
            {
                return;
            }

            cellMaps.Add(map);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 public void RemoveCellMap(CellMap map)
 {
     cellMaps.Remove(map);
 }