| | |
| | | private void listBoxControl1_SelectedIndexChanged(object sender, EventArgs e) |
| | | { |
| | | var currentID = this.GetCurrentID(); |
| | | if (currentID == null) |
| | | if (currentID <= 0) |
| | | { |
| | | MessageBoxHelper.ShowWarning("请选择数据行!"); |
| | | return; |
| | | } |
| | | FocusedChangedEvent.Invoke(currentID); |
| | |
| | | //检索 |
| | | private void barCkSearch_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | /* if (this.barCkSearch.Checked) |
| | | this.listBoxControl1.ShowFindPanel(); |
| | | else |
| | | this.listBoxControl1.HideFindPanel();*/ |
| | | if (this.barCkSearch.Checked) |
| | | layoutControlItemSearch.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | else |
| | | layoutControlItemSearch.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | } |
| | | |
| | | #endregion 菜单事件 |