Exemple #1
0
 void ChessGame_DoubleClick(object sender, EventArgs e)
 {
     if (b1 != null)
     {
         b1 = b2 = null;
         Board.Controls.Clear();
         OppBoard.Controls.Clear();
         OppKilled.Controls.Clear();
         MyKilled.Controls.Clear();
     }
     else
     {
         b1 = new Board(Board, OppKilled, MyKilled, false);
         b2 = new Board(OppBoard, null, null, true);
         b1.SetOtherBoard(b2);
         b2.SetOtherBoard(b1);
     }
 }
Exemple #2
0
 public void SetOtherBoard(Board board)
 {
     (otherBoard = board).PieceMove += new EventHandler<PieceEventArgs>(piece_Move);
 }