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(); } } }
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(); } } }