| | |
| | | using System.Net; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraBars.Commands; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.DevFrm.Rpt; |
| | | using Gs.DevApp.DevFrm.Sys; |
| | |
| | | if (parentForm != null) |
| | | { |
| | | PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); |
| | | if (specificControl== null) |
| | | if (specificControl == null) |
| | | return false; |
| | | if (specificControl.Tag == null) |
| | | return false; |
| | |
| | | |
| | | private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | var _formNamespace = ""; |
| | | Control parentControl = this; |
| | | while (parentControl.Parent != null) |
| | | { |
| | | if (parentControl.Parent is Form parentForm) |
| | | { |
| | | var formType = parentForm.GetType(); |
| | | _formNamespace = formType.FullName; |
| | | break; |
| | | } |
| | | parentControl = parentControl.Parent; |
| | | } |
| | | Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace); |
| | | DevFrm.ShowDialog(); |
| | | if (btnLayoutClick != null) btnLayoutClick(this, e); |
| | | } |
| | | private void _enabledBtn(List<string> lstBtn) |
| | | { |
| | |
| | | //默认启用的按钮 |
| | | _enabledList.Add(btnLoad.Name); |
| | | _enabledList.Add(btnHelp.Name); |
| | | _enabledList.Add(btnLayout.Name); |
| | | _enabledBtn(_enabledList); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | public event EventHandler btnWgClick; |
| | | |
| | | |
| | | public event EventHandler btnLayoutClick; |
| | | |
| | | #endregion |
| | | |
| | | #region 公共属性 |