Exemple #1
0
 public WDBCell RemoveCellByIndex(int index)
 {
     if (index >= 0 && index < cells.Count)
     {
         WDBCell cell = cells[index];
         cells.RemoveAt(index);
         return(cell);
     }
     return(null);
 }
Exemple #2
0
 public WDBCell RemoveCellByCol(int c)
 {
     for (int i = 0; i < cells.Count; ++i)
     {
         if (cells[i].Col == c)
         {
             WDBCell cell = cells[i];
             cells.RemoveAt(i);
             return(cell);
         }
     }
     return(null);
 }
Exemple #3
0
        public void AddCell(int col, string value)
        {
            WDBCell cell = new WDBCell(row, col, value);

            cells.Add(cell);
        }