| | |
| | | |
| | | private List<PipeLineMatchingViewModel> _allBindingList = null; |
| | | |
| | | /// <summary> |
| | | /// 点击事件 |
| | | /// </summary> |
| | | public event Action<string> RowClickEvent; |
| | | |
| | | public void SetBindingData(List<PipeLineMatchingViewModel> pipeLineMatchingViewModels) |
| | | { |
| | | if (_allBindingList != null) |
| | |
| | | this.pipeLineMatchingViewModelBindingSource.ResetBindings(false); |
| | | return finishList; |
| | | } |
| | | |
| | | //行点击事件 |
| | | private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) |
| | | { |
| | | var row = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (row == null) |
| | | { |
| | | return; |
| | | } |
| | | this.RowClickEvent?.Invoke(row.Code); |
| | | } |
| | | } |
| | | } |