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