| | |
| | | /// </summary> |
| | | public event Action<string> RowClickEvent; |
| | | |
| | | public void SetBindingData(List<ElbowsMatchingViewModel> elbowsMatchingViewModels) |
| | | public void SetBindingData(List<ElbowMatchingViewModel> elbowsMatchingViewModels) |
| | | { |
| | | if (elbowsMatchingViewModels != null) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | public List<ElbowsMatchingViewModel> SetMatching(List<ElbowsMatchingViewModel> inputs, List<AdaptingManageVmo> alllist) |
| | | public List<ElbowMatchingViewModel> SetMatching(List<ElbowMatchingViewModel> inputs, List<AdaptingManageVmo> alllist) |
| | | { |
| | | if (inputs == null || inputs.Count == 0) |
| | | return null; |
| | | var resultList = new List<ElbowsMatchingViewModel>(); |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AssetsMatchingHelper.MatchingElbow(item, alllist); |
| | | if (result != null) |
| | | { |
| | | resultList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | resultList.Add(item); |
| | | } |
| | | AssetsMatchingHelper.MatchingElbow(item, alllist); |
| | | } |
| | | _allBindingList.Clear(); |
| | | foreach (var item in resultList) |
| | | foreach (var item in inputs) |
| | | { |
| | | _allBindingList.Add(new XhsProjectSimulationElbowsMatchingViewModel(item)); |
| | | } |
| | | this.elbowsFormViewModelBindingSource.ResetBindings(false); |
| | | return resultList; |
| | | return inputs; |
| | | } |
| | | |
| | | //行点击事件 |