Esempio n. 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;
        }
Esempio n. 2
0
 public RootUnit(string name, ProgramList programList)
     : base(UnitInfo.RootUnitId, name, null, programList)
 {
 }
Esempio n. 3
0
 public virtual void WritePrograms(ProgramList programs)
 {
     throw new NotImplementedException();
 }