Ejemplo n.º 1
0
    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]));
    }
Ejemplo n.º 2
0
    public void ChooseOption(ChoiceRequiredResult choiceResult, Action <ChoiceOption> onChoosed)
    {
        var option = choiceResult.Options.First();

        onChoosed(option);
    }