public void ChooseOption(ChoiceRequiredResult choiceResult, Action <ChoiceOption> onChoosed) { var options = choiceResult.Options .Select(o => new OptionViewModel(o.Text, o.IsAvailable)) .ToArray(); choiceView.Show(choiceResult.Text, options, i => onChoosed(choiceResult.Options[i])); }
public void ChooseOption(ChoiceRequiredResult choiceResult, Action <ChoiceOption> onChoosed) { var option = choiceResult.Options.First(); onChoosed(option); }