Пример #1
0
 public ViewModel()
 {
     Fields = new ViewField[8, 8];
     for (int i = 0; i < 8; i++)
     {
         for (int j = 0; j < 8; j++)
         {
             Fields[i, j] = new ViewField();
         }
     }
 }
Пример #2
0
        public ViewField this[string stringPosition]
        {
            get
            {
                Position  position = new Position(stringPosition);
                ViewField temp     = Fields[position.X, position.Y];
                return(temp);
            }

            set
            {
                Position position = new Position(stringPosition);
                Fields[position.X, position.Y] = value;
            }
        }