public void AddCond(CondVM cond) { CondVM newCond = CondVM.CreateDefault(this); Conds.Add(newCond); OnCondsOrderChanged(); }
public static CondGroupVM CreateDefault(BranchVM parent) { CondGroupVM condGroup = new CondGroupVM() { Parent = parent }; CondVM cond = CondVM.CreateDefault(condGroup); condGroup.Conds.Add(cond); return(condGroup); }