Ejemplo n.º 1
0
        private void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            TreeNodeCat nc = e.Node as TreeNodeCat;

            if (nc != null)
            {
                nc.LoadNextLevel();
            }
        }
Ejemplo n.º 2
0
            public override void LoadNextLevel(TreeNodeCat parent)
            {
                TreeNodeAppConfig ta = (TreeNodeAppConfig)parent;

                foreach (ConfigCategory cat in ta._list.Categories)
                {
                    TreeNodeCategory tc = new TreeNodeCategory(cat, parent.IsDataOnly);
                    parent.Nodes.Add(tc);
                }
            }
Ejemplo n.º 3
0
            public override void LoadNextLevel(TreeNodeCat parent)
            {
                TreeNodeCategory tc = (TreeNodeCategory)parent;

                foreach (ConfigProperty p in tc._cat.Properties.Properties)
                {
                    TreeNodeConfigProperty tp = new TreeNodeConfigProperty(p, parent.IsDataOnly);
                    parent.Nodes.Add(tp);
                }
            }
Ejemplo n.º 4
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNodeCat nc = e.Node as TreeNodeCat;

            if (nc != null)
            {
                propertyGrid1.SelectedObject = nc.Data;
            }
            else
            {
                propertyGrid1.SelectedObject = null;
            }
        }
Ejemplo n.º 5
0
 public abstract void LoadNextLevel(TreeNodeCat parent);