| | |
| | | btnShouHouFchk.ItemClick += BtnShouHouFchk_ItemClick; |
| | | btnHb.ItemClick += BtnHb_ItemClick; |
| | | btnChbg.ItemClick += BtnChbg_ItemClick; |
| | | btnBaoGao.ItemClick += BtnBaoGao_ItemClick; |
| | | var lst = new List<string>(); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | |
| | | lst.Add(btnShouHouFchk.Name); |
| | | lst.Add(btnHb.Name); |
| | | lst.Add(btnChbg.Name); |
| | | lst.Add(btnBaoGao.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "esc"; |
| | | if (btnEscClick != null) btnEscClick(this, e); |
| | |
| | | lst.Add(btnEdit.Name); |
| | | lst.Add(btnHb.Name); |
| | | lst.Add(btnChbg.Name); |
| | | lst.Add(btnBaoGao.Name); |
| | | _enabledBtn(lst); |
| | | } |
| | | |
| | |
| | | lst.Add(btnFont.Name); |
| | | lst.Add(btnFont.Name); |
| | | lst.Add(btnLog.Name); |
| | | lst.Add(btnBaoGao.Name); |
| | | _enabledBtn(lst); |
| | | this.currentAction = "edit"; |
| | | if (btnEdtClick != null) btnEdtClick(this, e); |
| | |
| | | if (btnChbgClick != null) btnChbgClick(this, e); |
| | | } |
| | | |
| | | |
| | | private void BtnBaoGao_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnBaoGaoClick != null) |
| | | btnBaoGaoClick(this, e); |
| | | } |
| | | private void _enabledBtn(List<string> lstBtn) |
| | | { |
| | | foreach (BarItem item in barManager1.Items) |
| | |
| | | /// </summary> |
| | | public event EventHandler btnChbgClick; |
| | | |
| | | /// <summary> |
| | | /// 生成报告 |
| | | /// </summary> |
| | | public event EventHandler btnBaoGaoClick; |
| | | |
| | | #endregion |
| | | |
| | | #region 公共属性 |