예제 #1
0
 /// <summary>
 /// Add a cellobject to the collection
 /// </summary>
 /// <param name="cell">Cellobject</param>
 public void addCell(AbstractCellData cell)
 {
     if (!this.checkCellExists(cell))
     {
         this.cells.Add(cell);
     }
 }
예제 #2
0
 /// <summary>
 /// method checks if a cell exists or not
 /// </summary>
 /// <param name="cell"></param>
 /// <returns>true if the cell exists and false if not</returns>
 public bool checkCellExists(AbstractCellData cell)
 {
     foreach (var var in this.cells)
     {
         if (var.Col == cell.Col)
         {
             return(true);
         }
     }
     return(false);
 }