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