duheng
2024-10-25 93f5c18553c036768ef6202547eeb899511fd50a
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/07-fourlink/01-threelinksinglematching/FourLinkSingleMatchingForm.cs
@@ -1,23 +1,24 @@
namespace HStation.WinFrmUI.Xhs
namespace HStation.WinFrmUI
{
    public partial class FourLinkSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl
    {
        public FourLinkSingleMatchingForm()
        {
            InitializeComponent();
            this.gridView3.SetNormalView();
        }
        private FourlinkMatchingViewModel _FourlinkMatchingViewModel;
        private BLL.FourLinkMain _FourLinkBll;
        private BLL.AssetsFourlinkMain _FourLinkBll;
        private List<FourLinkSingleMatchingViewModel> _allBindingList;
        public async void SetBindingData(FourlinkMatchingViewModel FourlinkMatchingViewModel)
        {
            _FourlinkMatchingViewModel = FourlinkMatchingViewModel;
            _allBindingList = new List<FourLinkSingleMatchingViewModel>();
            _FourLinkBll = new BLL.FourLinkMain();
            var allFourLinkMain = await _FourLinkBll.GetAll();
            foreach (var Main in allFourLinkMain)
            _FourLinkBll = new BLL.AssetsFourlinkMain();
            var allAssetsFourlinkMain = await _FourLinkBll.GetAll();
            foreach (var Main in allAssetsFourlinkMain)
            {
                _allBindingList.Add(new FourLinkSingleMatchingViewModel(Main));
            }