Example #1
0
        public void CellCastling(Position pos)
        {
            Button btn = buttons[pos.GetX0(), pos.GetY0()];

            btn.FlatAppearance.BorderSize  = 2;
            btn.FlatAppearance.BorderColor = Color.Yellow;
        }
Example #2
0
        public void CellMove(Position pos)
        {
            Button btn = buttons[pos.GetX0(), pos.GetY0()];

            btn.FlatAppearance.BorderSize  = 2;
            btn.FlatAppearance.BorderColor = Color.Green;
        }
Example #3
0
        public void CellDefault(Position pos)
        {
            Button btn = buttons[pos.GetX0(), pos.GetY0()];

            btn.FlatAppearance.BorderSize  = 0;
            btn.FlatAppearance.BorderColor = Color.White;
        }
Example #4
0
        public void CellAttack(Position pos)
        {
            Button btn = buttons[pos.GetX0(), pos.GetY0()];

            btn.FlatAppearance.BorderSize  = 2;
            btn.FlatAppearance.BorderColor = Color.Red;
        }
Example #5
0
 /// <summary>
 ///  Установить фигуру позиции pos
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="fig"></param>
 private void SetFigureAt(Position pos, Figure fig)
 {
     try
     {
         field[pos.GetX0(), pos.GetY0()] = fig;
     }
     catch
     {
         return;
     }
 }
Example #6
0
 /// <summary>
 ///  Установить фигуру позиции pos
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="fig"></param>
 private void SetFigureAt(Position pos, Figure fig)
 {
     try
     {
         field[pos.GetX0(), pos.GetY0()] = fig;
     }
     catch
     {
         return;
     }
 }
Example #7
0
 public void CellMove(Position pos)
 {
     Button btn = buttons[pos.GetX0(), pos.GetY0()];
     btn.FlatAppearance.BorderSize = 2;
     btn.FlatAppearance.BorderColor = Color.Green;
 }
Example #8
0
 public void CellDefault(Position pos)
 {
     Button btn = buttons[pos.GetX0(), pos.GetY0()];
     btn.FlatAppearance.BorderSize = 0;
     btn.FlatAppearance.BorderColor = Color.White;
 }
Example #9
0
 public void CellCastling(Position pos)
 {
     Button btn = buttons[pos.GetX0(), pos.GetY0()];
     btn.FlatAppearance.BorderSize = 2;
     btn.FlatAppearance.BorderColor = Color.Yellow;
 }
Example #10
0
 public void CellAttack(Position pos)
 {
     Button btn = buttons[pos.GetX0(), pos.GetY0()];
     btn.FlatAppearance.BorderSize = 2;
     btn.FlatAppearance.BorderColor = Color.Red;
 }