예제 #1
0
        private static void buildTree(TreeView tree, ContainerDetail container)
        {
            TreeNode sourcesRoot     = buildConfigurationSources(tree, container);
            TreeNode pluginTypesRoot = buildPluginTypes(tree, container);

            pluginTypesRoot.Expand();
            sourcesRoot.Expand();
        }
예제 #2
0
        private static void buildTree(TreeView tree, ContainerDetail container)
        {
            TreeNode sourcesRoot = buildConfigurationSources(tree, container);
            TreeNode pluginTypesRoot = buildPluginTypes(tree, container);

            pluginTypesRoot.Expand();
            sourcesRoot.Expand();
        }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        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);
        }
예제 #8
0
 public ContainerForm(ContainerDetail containerDetail)
 {
     InitializeComponent();
     buildTree(BrowserTree, containerDetail);
 }
예제 #9
0
 public ContainerForm(ContainerDetail containerDetail)
 {
     InitializeComponent();
     buildTree(BrowserTree, containerDetail);
 }