Exemplo n.º 1
0
        void m_TreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            NodeSource s = e.Node.Tag as NodeSource;

            if (s.Type == NodeSourceType.eFeatureClass)
            {
                if (null != OnClickFeatureClass)
                {
                    OnClickFeatureClass(s.FeatureClass);
                }
            }
        }
Exemplo n.º 2
0
        void UpdateNode(TreeNode vNode, NodeSource source)
        {
            List <NodeSource> list = new List <NodeSource>();

            NodeSource[] sub = source.Sub;
            if (null != sub && sub.Length > 0)
            {
                list.AddRange(sub);
            }

            System.IO.DirectoryInfo folder = source.Folder;
            if (null != folder)
            {
                sub = FileDataSource(folder);
                if (null != sub && sub.Length > 0)
                {
                    list.AddRange(sub);
                }
            }
            AppendTo(vNode, list.ToArray());
        }