| | |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalEditView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | this.colRelation.OptionsColumn.AllowEdit = false; |
| | | this.colVisualName.OptionsColumn.AllowEdit = false; |
| | | this.colPropName.OptionsColumn.AllowEdit = false; |
| | | this.colUnitName.OptionsColumn.AllowEdit = false; |
| | | this.colDescription.OptionsColumn.AllowEdit = false; |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(List<HydroMonitorValueViewModel> allValueList) |
| | | public void SetBindingData(List<HydroMonitorValueViewModel> allMonitorValueList) |
| | | { |
| | | _allBindingList = new BindingList<HydroMonitorValueViewModel>(); |
| | | allValueList?.OrderBy(x => x.SortCode).ForEach(x => _allBindingList.Add(x)); |
| | | allMonitorValueList?.OrderBy(x => x.SortCode).ForEach(x => _allBindingList.Add(x)); |
| | | this.hydroMonitorValueViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroMonitorValueViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置视图面板 |
| | | /// </summary> |
| | | public void SetViewBoard() |
| | | { |
| | | this.colMonitorValue.OptionsColumn.AllowEdit = false; |
| | | this.colMonitorValue.ImageOptions.SvgImage = null; |
| | | } |
| | | |
| | | //行点击 |
| | |
| | | } |
| | | this.HydroViewEvent?.Invoke(row.Vmo.Relation); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |