Пример #1
0
 private void MoveEnterNotation()
 {
     using (var dlg = new EnterMoveForm(_game))
     {
         if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             ProcessMove(move: dlg.ValidatedMove, notation: dlg.ValidatedNotation);
             PrepareTurn();
         }
     }
 }
Пример #2
0
 private void MoveEnterNotation()
 {
     using (var dlg = new EnterMoveForm(_game))
     {
         if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             var move = dlg.ValidatedMove;
             move.MakeMove(_game);
             _movesOfNotation[dlg.ValidatedNotation] = move;
             _boardView.InvalidateRender();
             _game.Ply++;
             PrepareTurn();
         }
     }
 }