示例#1
0
        public Unit(int id, string name, Unit parent, ProgramList programList)
            : this(id, name,
                   parent == null ? UnitInfo.NoParentUnitId : parent.Info.Id,
                   programList == null ? UnitInfo.NoProgramListId : programList.Id)
        {
            if (parent != null)
            {
                //this.Parent = parent; // collection takes care of this
                parent.Children.Add(this);
            }

            ProgramList = programList;
        }
示例#2
0
 public RootUnit(string name, ProgramList programList)
     : base(UnitInfo.RootUnitId, name, null, programList)
 {
 }
示例#3
0
 public virtual void WritePrograms(ProgramList programs)
 {
     throw new NotImplementedException();
 }