示例#1
0
 public Table(int size)
 {
     _data = Enumerable.Range(0, size).Select(x => new InformationCell[size]).ToArray();
     for (int i = 0; i < size; ++i)
     {
         for (int j = i; j < size; ++j)
         {
             _data[i][j] = new InformationCell(i, j);
             if (i != j)
             {
                 _data[j][i] = _data[i][j];
             }
         }
     }
 }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (InformationCell != null)
            {
                InformationCell.Dispose();
                InformationCell = null;
            }

            if (OpenHoursCell != null)
            {
                OpenHoursCell.Dispose();
                OpenHoursCell = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }
        }
示例#3
0
 void SetInformation()
 {
     InformationCell.PopulateWithData();
 }
示例#4
0
 public CellAccess(InformationCell cell, int i, int j)
 {
     _cell = cell;
     _i    = i;
     _j    = j;
 }
示例#5
0
 public Ser(InformationCell inf)
 {
     this.info = inf;
 }