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);
        }
 private void addCodeDomTreeBrowser_Click(object sender, System.EventArgs e)
 {
     addBrowser(CodeDomTreeView.NewBrowser(this.model));
 }