public void OnConfirm(object sender, ConfirmedTextEventArgs e) { foreach (ChoiceForChoiceQuestion choice in Model.Choices) { if (choice.Text == e.Text) { ProcessChoice(choice); return; } } }
public void OnPasswordRecieved(object sender, ConfirmedTextEventArgs e) { if (Model.Passwords != null) { foreach (GamePassword password in Model.Passwords) { if (Correspond(password, e.Text)) { PasswordCompleted?.Invoke(this, EventArgs.Empty); PasswordViewModel.IsDone = true; return; } } } }
public void OnConfirm(object sender, ConfirmedTextEventArgs e) { if (Model.Choices != null) { foreach (ChoiceForTextQuestion choice in Model.Choices) { if (Correspond(choice, e.Text)) { ProcessChoice(choice); return; } } } if (Model.DefaultChoice != null) { ProcessChoice(Model.DefaultChoice); } }