private static void buildTree(TreeView tree, ContainerDetail container) { TreeNode sourcesRoot = buildConfigurationSources(tree, container); TreeNode pluginTypesRoot = buildPluginTypes(tree, container); pluginTypesRoot.Expand(); sourcesRoot.Expand(); }
private static TreeNode buildPluginTypes(TreeView tree, ContainerDetail container) { TreeNode pluginTypesRoot = tree.Nodes.Add("PluginTypes"); foreach (PluginTypeDetail pluginType in container.PluginTypes.OrderBy(t => t.Type.Name)) { addPluginType(pluginTypesRoot, pluginType); } return pluginTypesRoot; }
private static TreeNode buildConfigurationSources(TreeView tree, ContainerDetail container) { TreeNode sourcesRoot = tree.Nodes.Add("Configuration Sources"); foreach (string source in container.Sources.OrderBy(s => s)) { addSource(sourcesRoot, source); } return sourcesRoot; }
private static TreeNode buildConfigurationSources(TreeView tree, ContainerDetail container) { TreeNode sourcesRoot = tree.Nodes.Add("Configuration Sources"); foreach (string source in container.Sources.OrderBy(s => s)) { addSource(sourcesRoot, source); } return(sourcesRoot); }
private static TreeNode buildPluginTypes(TreeView tree, ContainerDetail container) { TreeNode pluginTypesRoot = tree.Nodes.Add("PluginTypes"); foreach (PluginTypeDetail pluginType in container.PluginTypes.OrderBy(t => t.Type.Name)) { addPluginType(pluginTypesRoot, pluginType); } return(pluginTypesRoot); }
public override void GetData(object target, Stream outgoingData) { var container = target as Container; if (container == null) { throw new InvalidOperationException("This visualizer does not support Type: " + target.GetType().Name); } ContainerDetail details = BuildContainerDetails(container); Serialize(outgoingData, details); }
public ContainerForm(ContainerDetail containerDetail) { InitializeComponent(); buildTree(BrowserTree, containerDetail); }