public DocumentTabContent Deserialize(Guid guid, ISettingsSection section, DocumentTreeNodeData[] nodes) {
			var context = new DocumentTabContentFactoryContext(nodes);
			foreach (var factory in tabContentFactories) {
				var content = factory.Value.Deserialize(guid, section, context);
				if (content != null)
					return content;
			}
			return null;
		}
		public DocumentTabContent CreateTabContent(DocumentTreeNodeData[] nodes) {
			var context = new DocumentTabContentFactoryContext(nodes);
			foreach (var factory in tabContentFactories) {
				var tabContent = factory.Value.Create(context);
				if (tabContent != null)
					return tabContent;
			}
			return null;
		}
		public Guid? Serialize(DocumentTabContent content, ISettingsSection section) {
			var nodes = content.Nodes.ToArray();
			var context = new DocumentTabContentFactoryContext(nodes);
			foreach (var factory in tabContentFactories) {
				var guid = factory.Value.Serialize(content, section);
				if (guid != null)
					return guid;
			}
			return null;
		}
예제 #4
0
        public DocumentTabContent Deserialize(Guid guid, ISettingsSection section, DocumentTreeNodeData[] nodes)
        {
            var context = new DocumentTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var content = factory.Value.Deserialize(guid, section, context);
                if (content != null)
                {
                    return(content);
                }
            }
            return(null);
        }
예제 #5
0
        public DocumentTabContent CreateTabContent(DocumentTreeNodeData[] nodes)
        {
            var context = new DocumentTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var tabContent = factory.Value.Create(context);
                if (tabContent != null)
                {
                    return(tabContent);
                }
            }
            return(null);
        }
예제 #6
0
        public Guid?Serialize(DocumentTabContent content, ISettingsSection section)
        {
            var nodes   = content.Nodes.ToArray();
            var context = new DocumentTabContentFactoryContext(nodes);

            foreach (var factory in tabContentFactories)
            {
                var guid = factory.Value.Serialize(content, section);
                if (guid != null)
                {
                    return(guid);
                }
            }
            return(null);
        }