示例#1
0
        public CReportRootFolder(string aName, CReportCollection aCollection) : base(aName)
        {
            GUINode.ImageIndex         = 3;
            GUINode.SelectedImageIndex = 3;

            SetCollection(aCollection);
        }
示例#2
0
 protected override void SetCollection(CReportCollection aCollection)
 {
     base.SetCollection(aCollection);
     foreach (object iItem in _SubItems)
     {
         ((CReportItem)iItem).SetCollection();
     }
 }
示例#3
0
        protected virtual void SetCollection(CReportCollection aCollection)
        {
            CReportCollection lLastCollection = _Collection;

            _Collection = aCollection;
            edit();
            if (lLastCollection != null)
            {
                lLastCollection.setModified(true);
            }
        }
示例#4
0
 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]);
         }
     }
 }