Esempio n. 1
0
        public void SetViewPopMenu(GridView gv)
        {
            if (CheckDesingModel.IsDesingMode)
            {
                return;
            }

            var AutoWidth = new GridViewAddPopupMenuBase(gv, "自动调整列宽", LoadUIImage.LoadImage("View_16x16.png"));

            AutoWidth.DoEvent += AutoWidth_DoEvent;
            new ViewLayout(gv);
        }
Esempio n. 2
0
        public ViewLayout(GridView gv)
        {
            View = gv;
            Form frm = gv.GridControl.FindForm();

            ViewCode  = string.Format("{0}.{1}", frm.GetType().FullName, gv.Name);
            bll       = new bllGridViewLayout();
            frm.Load += frm_Load;

            var Layout        = new GridViewAddPopupMenuBase(gv, "布局管理", LoadUIImage.LoadImage("LayoutOptions_16x16.png"));
            var LayoutRefresh = new GridViewAddPopupMenuBase(gv, "刷新布局", LoadUIImage.LoadImage("Refresh_16x16.png"));

            Layout.DoEvent        += Layout_DoEvent;
            LayoutRefresh.DoEvent += LayoutRefresh_DoEvent;
        }