Пример #1
0
        void ConfigureCustomReturnEffect()
        {
            CustomReturnEffect.SetReturnType(Player1Entry, ReturnType.Next);
            CustomReturnEffect.SetReturnCommand(Player1Entry, new Command(() => Player2Entry.Focus()));

            CustomReturnEffect.SetReturnType(Player2Entry, ReturnType.Go);
            CustomReturnEffect.SetReturnCommand(Player2Entry, new Command(() => HandleStartGameButtonClicked(StartGameButton, EventArgs.Empty)));
        }
Пример #2
0
 void ExecutePlayer1EntryReturnCommand(object sender, EventArgs e)
 {
     Player2Entry.Focus();
 }
Пример #3
0
 void HandlePlayer1EntryCompleted(object sender, EventArgs e)
 {
     Player2Entry.Focus();
 }