public IStackVM AddChoice(Action <ChoiceVM> onPopulate, Action <ChoiceElementVM> onNewCurrent) { var choiceVM = new ChoiceVM(onNewCurrent); StackElementVMs.Add(choiceVM); onPopulate(choiceVM); return(this); }
public ChoiceElementVM(ChoiceVM parent, string text, object id) { _parent = parent; _text = text; _id = id; }