コード例 #1
0
        public static Control NewControl(Model model, object o)
        {
            IHasCoordinate ihc = (IHasCoordinate)o;
            TreeView       tv  = new TreeView();

            tv.HideSelection = false;
            CodeDomTreeView cdtv = new CodeDomTreeView(model, tv);

            if (ihc is AST)
            {
                cdtv.init((AST)ihc);
            }
            tv.MouseUp += new MouseEventHandler(cdtv.UserAfterSelect);
            cdtv.ObjectChanged();
            return(tv);
        }
コード例 #2
0
 private void addCodeDomTreeBrowser_Click(object sender, System.EventArgs e)
 {
     addBrowser(CodeDomTreeView.NewBrowser(this.model));
 }