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; }
private frmGridViewLayout(GridView gv) { InitializeComponent(); bll = new bllGridViewLayout(); _View = gv; }