protected override void ExecuteQuery() { var result = Ui.Shell.ShowMessageBox( title: "Decide who will start the game", message: "You won the toss, do you want to start the game?", buttons: MessageBoxButton.YesNo); if (result == MessageBoxResult.Yes) { Result = new ChosenPlayer(D.Controller); return; } Result = new ChosenPlayer(D.Controller.Opponent); }
protected override void ExecuteQuery() { Result = new ChosenPlayer(D.Controller); }
public MachineHandler() { Result = new ChosenPlayer(null); }