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))); }
void ExecutePlayer1EntryReturnCommand(object sender, EventArgs e) { Player2Entry.Focus(); }
void HandlePlayer1EntryCompleted(object sender, EventArgs e) { Player2Entry.Focus(); }