| | |
| | | public XhsProjectSimulationHydroCalcuFailedCtrl() |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | |
| | | private List<XhsProjectSimulationHydroCalcuFailedViewModel> _allBindingList = null; |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(List<Yw.EPAnet.CalcuFailed> allFailedList) |
| | | { |
| | | _allBindingList = new List<XhsProjectSimulationHydroCalcuFailedViewModel>(); |
| | | if (allFailedList != null && allFailedList.Count > 0) |
| | | { |
| | | foreach (var failed in allFailedList) |
| | | { |
| | | var vm = new XhsProjectSimulationHydroCalcuFailedViewModel(failed); |
| | | _allBindingList.Add(vm); |
| | | } |
| | | } |
| | | this.xhsProjectSimulationHydroCalcuFailedViewModelBindingSource.DataSource = _allBindingList; |
| | | this.xhsProjectSimulationHydroCalcuFailedViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | } |
| | | } |