duheng
2024-08-28 6b728cd400122e160805caec5851fca70e4d8f9a
WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs
@@ -50,9 +50,8 @@
        private void listBoxControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            var currentID = this.GetCurrentID();
            if (currentID == null)
            if (currentID <= 0)
            {
                MessageBoxHelper.ShowWarning("请选择数据行!");
                return;
            }
            FocusedChangedEvent.Invoke(currentID);
@@ -63,10 +62,10 @@
        //检索
        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 菜单事件