Пример #1
0
 private void Board_OnNewPieceInserted(object sender, PieceInsertedEventArgs e)
 {
     if (e.PieceInserted.Equals(this))
     {
         BoardPosition   = e.DestinationCell;
         InitialPosition = e.DestinationCell;
     }
 }
Пример #2
0
 private void Board_OnNewPieceInserted(object sender, PieceInsertedEventArgs e)
 {
     if (e.PieceInserted != null && this.Equals(e.PieceInserted.Player))
     {
         if (!this.MyPiecesInBoard.Contains(e.PieceInserted))
         {
             this.MyPiecesInBoard.Add(e.PieceInserted);
         }
     }
 }