public CReportRootFolder(string aName, CReportCollection aCollection) : base(aName) { GUINode.ImageIndex = 3; GUINode.SelectedImageIndex = 3; SetCollection(aCollection); }
protected override void SetCollection(CReportCollection aCollection) { base.SetCollection(aCollection); foreach (object iItem in _SubItems) { ((CReportItem)iItem).SetCollection(); } }
protected virtual void SetCollection(CReportCollection aCollection) { CReportCollection lLastCollection = _Collection; _Collection = aCollection; edit(); if (lLastCollection != null) { lLastCollection.setModified(true); } }
public void BuildFromXML(XmlNode aSource) { this.ItemName = aSource.Attributes["name"].Value; for (int i = 0; i < aSource.ChildNodes.Count; i++) { CReportItem lNewItem = CReportCollection.CreateItemFromXMLNode(aSource.ChildNodes[i]); lNewItem.Parent = this; if (lNewItem is CReportFolder) { ((CReportFolder)lNewItem).BuildFromXML(aSource.ChildNodes[i]); } } }