duheng
2024-08-22 eebace752efad7088eb91e034cf898a6373c9911
WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysPropManageMainPanel.cs
@@ -7,6 +7,9 @@
            InitializeComponent();
            this.gridView1.SetNormalView();
            this.gridView1.RegistCustomDrawRowIndicator();
            this.PageTitle.Caption = "属性管理";
            this.PageTitle.HeaderSvgImage = this.svgImage32[0];
            this.PageTitle.SvgImageSize = new Size(24, 24);
            this.propGroupTreeListCtrl1.FocusedChangedEvent += ModuleTreeListCtrl1_FocusedChangedEvent;
        }
@@ -33,7 +36,7 @@
            this.propViewModelBindingSource.ResetBindings(false);
        }
        private async void SetBindingData()
        private void SetBindingData()
        {
            _bll = new Yw.BLL.SysProp();
        }
@@ -111,5 +114,21 @@
                return;
            }
        }
        //属性选项
        private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            if (_allBindingList == null || _allBindingList.Count < 1)
                return;
            var row = this.gridView1.GetCurrentViewModel(_allBindingList);
            if (row == null)
                return;
            if (e.Column == this.ColPropEdit)
            {
                var dlg = new SetSysPropChoiceDlg();
                dlg.SetBindingData(row.ID);
                dlg.ShowDialog();
            }
        }
    }
}