Esempio n. 1
0
        public IStackVM AddChoice(Action <ChoiceVM> onPopulate, Action <ChoiceElementVM> onNewCurrent)
        {
            var choiceVM = new ChoiceVM(onNewCurrent);

            StackElementVMs.Add(choiceVM);
            onPopulate(choiceVM);
            return(this);
        }
Esempio n. 2
0
 public ChoiceElementVM(ChoiceVM parent, string text, object id)
 {
     _parent = parent;
     _text   = text;
     _id     = id;
 }