| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | this.propViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | private async void SetBindingData() |
| | | private void SetBindingData() |
| | | { |
| | | _bll = new Yw.BLL.SysProp(); |
| | | } |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | } |
| | | } |