基本信息
源码名称:自定义表单设计器演示版源码
源码大小:0.72M
文件格式:.rar
开发语言:C#
更新时间:2018-11-22
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 10 元 
   源码介绍

 自定义表单设计器演示版源码

private Dictionary<string, ModelDesign> _modelHandlers = null;   //所有模板列表
        private ModelDesign _curModelDesign = null;                      //当前显示模板

        private void Form_ModelDesign_Load(object sender, EventArgs e)
        {
            try
            {
                _modelHandlers = new Dictionary<string, ModelDesign>();

                InitForm();

                //设置控件树点击事件
                this.ctl_ControlTree1.NodeMouseClickEvent =new ctl_ControlTree.ClickHandler(ctl_ControlTree1_NodeMouseClickEvent);

                //设置选项卡事件
                this.ctl_TabMenu1.TabChangedEvent = new ctl_TabMenu.ClickHandler(ctl_TabMenu1_TabChangedEvent);

                SingleList.Instance.MessageEvent = new SingleList.messageHandler(Instance_MessageEvent);

                ////设置模板列表显示
                this.ctl_ModelTree1.Parent = this.splitContainer1.Panel2;
                this.ctl_ModelTree1.BringToFront();
                this.ctl_ModelTree1.Visible = false;

                if (_curModelDesign == null) return;

                //设置属性编辑器
                this.ctl_PropertyGrid1.DesignEvent = new ctl_PropertyGrid.DesignHandler(ctl_PropertyGrid1_DesignEvent);
                this.ctl_PropertyGrid1.Parent = this.splitContainer1.Panel2;
                this.ctl_PropertyGrid1.BringToFront();
                this.ctl_PropertyGrid1.Visible = false;

            }
            catch (Exception ex)
            {
                TryCustomException.TransactException(ex);
            }
        }