public int GetCellIndex(Cell cell) { if (cell != null && this.Cells != null) { for(int i=0; i<this.Cells.Count; i++) if (this.Cells[i].Equals(cell)) return i; } return -1; }