Ejemplo n.º 1
0
        public RsCollectionFolder AddSubFolder(string aName)
        {
            CReportFolder lFolder = new CReportFolder(aName);
            lFolder.Parent = this.ReportFolder;
            ReportFolder.Collection.QuickSave();

            return new RsCollectionFolder(lFolder);
        }
Ejemplo n.º 2
0
        public RsCollectionFolder AddSubFolder(string aName)
        {
            CReportFolder lFolder = new CReportFolder(aName);

            lFolder.Parent = this.ReportFolder;
            ReportFolder.Collection.QuickSave();

            return(new RsCollectionFolder(lFolder));
        }
Ejemplo n.º 3
0
        // public const string XMLNODE_LINK = "link"; // Later version"s will support link collections

        public static CReportItem CreateItemFromXMLNode(XmlNode aXmlNode)
        {
            CReportItem lResult = null;

            if (aXmlNode.Name == XMLNODE_FOLDER)
            {
                lResult = new CReportFolder(aXmlNode.Attributes["name"].Value);
            }
            else
            if (aXmlNode.Name == XMLNODE_REPORT)
            {
                lResult = new CReportFile(aXmlNode.Attributes["name"].Value, aXmlNode.Attributes["path"].Value);
            }
            else
            {
                lResult = new CReportItem(aXmlNode.Attributes["name"].Value);
            }

            return(lResult);
        }
Ejemplo n.º 4
0
 public void Orphanize(CReportFolder aNewParent)
 {
     setParentDirectly(aNewParent);
 }
Ejemplo n.º 5
0
 public RsCollectionFolder(CReportFolder aFolder) : base(aFolder)
 {
 }
Ejemplo n.º 6
0
        // public const string XMLNODE_LINK = "link"; // Later version"s will support link collections
        public static CReportItem CreateItemFromXMLNode(XmlNode aXmlNode)
        {
            CReportItem lResult = null;

                    if (aXmlNode.Name == XMLNODE_FOLDER) {
                            lResult = new CReportFolder(aXmlNode.Attributes["name"].Value);
                        } else
                    if (aXmlNode.Name == XMLNODE_REPORT) {
                            lResult = new CReportFile(aXmlNode.Attributes["name"].Value, aXmlNode.Attributes["path"].Value);
                        } else
                    lResult = new CReportItem(aXmlNode.Attributes["name"].Value);

                    return lResult;
        }
Ejemplo n.º 7
0
        public void DoAddFolder()
        {
            XmlNode lThisData = RsViewEngine.Locale.GetFormData(LOCALE_ALIAS);

            RsReportCollection lCurrColl = getSelectedCollection();
            if (getSelectedItem() == null)
                CRSMessageBox.ShowBox(
                            XmlTools.getXmlNodeByAttrVal("name", NOCOLLECTION_FOLDER, lThisData).InnerText,
                            RsViewEngine.Locale.GetTagText("error"),
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Exclamation
                        );
            else
            {
                if (lCurrColl is CFavoritesCollection)
                    _dlgAddFolder.CollectionName = RsViewEngine.Locale.GetTagText(RsLocalization.TAG_FAVORITES);
                else
                    _dlgAddFolder.CollectionName = lCurrColl.CollectionName;

                _dlgAddFolder.FolderName = "";
                DialogResult lDlgRes = _dlgAddFolder.ShowDialog();
                if (lDlgRes == DialogResult.OK)
                {
                    CReportFolder lParent = getCurrentParent();
                    CReportFolder lNewFolder = new CReportFolder(_dlgAddFolder.FolderName);
                    lNewFolder.Parent = lParent;
                    lParent.Collection.ApplyToGUI();
                    lParent.Collection.QuickSave();
                }
            }
        }
Ejemplo n.º 8
0
 public void Orphanize(CReportFolder aNewParent)
 {
     setParentDirectly(aNewParent);
 }
Ejemplo n.º 9
0
 public RsCollectionFolder(CReportFolder aFolder)
     : base(aFolder)
 {
 }