コード例 #1
0
        private void Filter(MethodView view)
        {
            view.BeginUpdate();
            view.Update(run, view.functions);
            List <TreeNode> remove = new List <TreeNode>();

            foreach (TreeNode node in view.Nodes)
            {
                TreeNodeCollection nodes = Nodes;
                foreach (string s in ((Function)node.Tag).Signature.Namespace.Split('.'))
                {
                    if (nodes[s] != null && nodes[s].Checked)
                    {
                        nodes = nodes[s].Nodes;
                    }
                    else
                    {
                        nodes = null;
                        break;
                    }
                }
                if (nodes == null && ((Function)node.Tag).Signature.Namespace != "")
                {
                    remove.Add(node);
                }
            }
            foreach (TreeNode node in remove)
            {
                node.Remove();
            }
            view.EndUpdate();
        }
コード例 #2
0
 public void ShowRun(Run run)
 {
     callees.Update(run, run.functions);
     callers.Update(run, run.callers);
 }