Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
 protected override void ExecuteQuery()
 {
     Result = new ChosenPlayer(D.Controller);
 }
Exemplo n.º 3
0
 public MachineHandler()
 {
     Result = new ChosenPlayer(null);
 }