コード例 #1
0
        public AltaxoDocument()
        {
            _dataTables = new Altaxo.Data.DataTableCollection(this);
            var commonDictionaryForGraphs = new SortedDictionary <string, IProjectItem>();

            _graphs        = new Graph.Gdi.GraphDocumentCollection(this, commonDictionaryForGraphs);
            _graphs3D      = new Graph.Graph3D.GraphDocumentCollection(this, commonDictionaryForGraphs);
            _textDocuments = new Text.TextDocumentCollection(this);

            _projectFolderProperties = new Main.Properties.ProjectFolderPropertyDocumentCollection(this);
            _tableLayouts            = new Altaxo.Worksheet.WorksheetLayoutCollection(this);
            _fitFunctionScripts      = new Altaxo.Scripting.FitFunctionScriptCollection(this);
            _projectFolders          = new ProjectFolders(this);
        }
コード例 #2
0
        protected override IEnumerable <Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName()
        {
            if (null != _dataTables)
            {
                yield return(new Main.DocumentNodeAndName(_dataTables, () => _dataTables = null, "Tables"));
            }

            if (null != _graphs)
            {
                yield return(new Main.DocumentNodeAndName(_graphs, () => _graphs = null, "Graphs"));
            }

            if (null != _graphs3D)
            {
                yield return(new Main.DocumentNodeAndName(_graphs3D, () => _graphs3D = null, "Graphs3D"));
            }

            if (null != _textDocuments)
            {
                yield return(new Main.DocumentNodeAndName(_textDocuments, () => _textDocuments = null, "Text"));
            }

            if (null != _tableLayouts)
            {
                yield return(new Main.DocumentNodeAndName(_tableLayouts, () => _tableLayouts = null, "TableLayouts"));
            }

            if (null != _fitFunctionScripts)
            {
                yield return(new Main.DocumentNodeAndName(_fitFunctionScripts, () => _fitFunctionScripts = null, "FitFunctionScripts"));
            }

            if (null != _projectFolderProperties)
            {
                yield return(new Main.DocumentNodeAndName(_projectFolderProperties, () => _projectFolderProperties = null, "FolderProperties"));
            }

            if (null != _projectFolders)
            {
                yield return(new Main.DocumentNodeAndName(_projectFolders, () => _projectFolders = null, "ProjectFolders"));
            }
        }