Esempio n. 1
0
        public WorkbookPackage(FilePath pendingOpenPath = default(FilePath))
        {
            logicalPath = pendingOpenPath;

            var children = new Collections.AggregateObservableCollection <TreeNode> ();

            children.AddSource(new [] { nugetPackagesNode });
            children.AddSource(filesystem);

            TreeNode = new WorkbookTitledNode(this)
            {
                IsExpanded  = true,
                IsRenamable = false,
                IconName    = "solution",
                Children    = children
            };
        }
Esempio n. 2
0
        public WorkbookPage(WorkbookPackage workbook, params AgentType [] platformTargets)
        {
            if (workbook == null)
            {
                throw new ArgumentNullException(nameof(workbook));
            }

            Workbook = workbook;
            Manifest.PlatformTargets = platformTargets.ToImmutableArray();
            Contents = new WorkbookDocument();

            TableOfContents = new TableOfContentsNode();

            TreeNode = new WorkbookTitledNode(this)
            {
                FileName     = ".workbook",
                Children     = TableOfContents.Children,
                IsSelectable = true
            };
        }