| | |
| | | { |
| | | if (inputs == null) |
| | | return null; |
| | | var finishList = new List<ValveMatchingViewModel>(); |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AssetsMatchingHelper.MatchingValves(item, alllist); |
| | | if (result != null) |
| | | { |
| | | finishList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | finishList.Add(item); |
| | | } |
| | | AssetsMatchingHelper.MatchingValve(item, alllist); |
| | | } |
| | | _allBindingList.Clear(); |
| | | foreach (var item in finishList) |
| | | foreach (var item in inputs) |
| | | { |
| | | _allBindingList.Add(new XhsProjectSimulationValveMatchingViewModel(item)); |
| | | } |
| | | this.valveFormViewModelBindingSource.ResetBindings(false); |
| | | return finishList; |
| | | return inputs; |
| | | } |
| | | |
| | | //行点击事件 |