Exemplo n.º 1
0
        private void GetSelectedMethod()
        {
            _selectedMethod = TreeViewHandler.SelectedMethod;
            _selectedPath   = null;
            if (_selectedMethod != null)
            {
                string   path = null;
                TreeNode node = TreeViewHandler.SelectedNode;
                path = TreeViewHandler.GetTreeNodeText(node);
                int i = path.IndexOf("(");
                if (i > 0)
                {
                    path = path.Substring(0, i);
                }

                while (node.Level > 2)
                {
                    node = node.Parent;
                    path = String.Format("{0}.{1}", TreeViewHandler.GetTreeNodeText(node), path);
                }
                if (path.StartsWith("."))
                {
                    path = path.Substring(1);
                }
                _selectedPath = path;
            }
        }