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; }
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); }