public WDBCell RemoveCellByIndex(int index) { if (index >= 0 && index < cells.Count) { WDBCell cell = cells[index]; cells.RemoveAt(index); return(cell); } return(null); }
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); }
public void AddCell(int col, string value) { WDBCell cell = new WDBCell(row, col, value); cells.Add(cell); }