| | |
| | | var lst = new List<string>(); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | | if (!string.IsNullOrEmpty(item.Caption)) |
| | | if (!string.IsNullOrEmpty(item.Caption) && item.Caption != "保存" && item.Caption != "刷新") |
| | | lst.Add(item.Caption); |
| | | actions = lst; |
| | | } |
| | |
| | | lst.Add(btnDesign.Name); |
| | | lst.Add(btnChk.Name); |
| | | lst.Add(btnFchk.Name); |
| | | lst.Add(btnLoad.Name); |
| | | lst.Add(btnJianYan.Name); |
| | | lst.Add(btnFjianYan.Name); |
| | | lst.Add(btnOut.Name); |
| | | lst.Add(btnIn.Name); |
| | | lst.Add(btnLog.Name); |
| | | lst.Add(btnPiZhun.Name); |
| | | _enabledBtn(lst); |
| | | if (btnEscClick != null) btnEscClick(this, e); |
| | | } |
| | |
| | | } |
| | | |
| | | //默认启用的按钮 |
| | | // _enabledList.Add(btnDesign.Name); |
| | | _enabledList.Add(btnLoad.Name); |
| | | _enabledBtn(_enabledList); |
| | | } |
| | | catch (Exception ex) |