示例#1
0
        public void AddCond(CondVM cond)
        {
            CondVM newCond = CondVM.CreateDefault(this);

            Conds.Add(newCond);
            OnCondsOrderChanged();
        }
示例#2
0
        public static CondGroupVM CreateDefault(BranchVM parent)
        {
            CondGroupVM condGroup = new CondGroupVM()
            {
                Parent = parent
            };
            CondVM cond = CondVM.CreateDefault(condGroup);

            condGroup.Conds.Add(cond);
            return(condGroup);
        }