namespace HStation.WinFrmUI { public partial class ValveMatchingCtrl : DevExpress.XtraEditors.XtraUserControl { public ValveMatchingCtrl() { InitializeComponent(); this.gridView1.SetNormalView(30); this.gridView1.OptionsView.ShowDetailButtons = true; this.gridView1.OptionsView.ShowGroupPanel = false; } private BLL.AdaptingManage _adaptingBll; private List _allBindingList = null; public List SetBindingData(List inputs) { var finishList = new List(); _adaptingBll = new BLL.AdaptingManage(); var alllist = _adaptingBll.GetAll().Result; foreach (var item in inputs) { var result = AsstesAutoMatchingHelper.AutoMatching(item, alllist); if (result != null) { finishList.Add(result); } else { } } _allBindingList = finishList; this.valveMatchingViewModelBindingSource.DataSource = _allBindingList; this.valveMatchingViewModelBindingSource.ResetBindings(false); return finishList; } } }