示例#1
0
 private void changeCellSource(int columnIndex, int rowIndex, cellSource csource)
 {
     bool found = false;
     while (!found)
     {
         for (int i = 0; i < cellsInfo.Count; i++)
         {
             if (cellsInfo[i].ColumnIndex == columnIndex && cellsInfo[i].RowIndex == rowIndex)
             {
                 cellsInfo[i].Source = csource;
                 found = true;
             }
         }
     }
 }
示例#2
0
 public CellInfo(int columnIndex, int rowIndex, cellSource cs)
 {
     this.ColumnIndex = columnIndex;
     this.RowIndex = rowIndex;
     this.Source = cs;
 }