文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/07-fourlink/01-fourlinksinglematching/FourLinkSingleMatchingForm.cs 修改 |
| | |
| | | 锘縩amespace HStation.WinFrmUI |
| | | { |
| | | public partial class FourLinkSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | public partial class FourlinkSingleMatchingCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | public FourLinkSingleMatchingForm() |
| | | public FourlinkSingleMatchingCtrl() |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView3.SetNormalView(); |
| | |
| | | |
| | | private HydroFourlinkMatchingViewModel _FourlinkMatchingViewModel; |
| | | private BLL.AssetsFourlinkMain _FourLinkBll; |
| | | private List<FourLinkSingleMatchingViewModel> _allBindingList; |
| | | private List<FourlinkSingleMatchingViewModel> _allBindingList; |
| | | |
| | | public async void SetBindingData(HydroFourlinkMatchingViewModel FourlinkMatchingViewModel) |
| | | { |
| | | _FourlinkMatchingViewModel = FourlinkMatchingViewModel; |
| | | _allBindingList = new List<FourLinkSingleMatchingViewModel>(); |
| | | _allBindingList = new List<FourlinkSingleMatchingViewModel>(); |
| | | _FourLinkBll = new BLL.AssetsFourlinkMain(); |
| | | var allAssetsFourlinkMain = await _FourLinkBll.GetAll(); |
| | | foreach (var Main in allAssetsFourlinkMain) |
| | | { |
| | | _allBindingList.Add(new FourLinkSingleMatchingViewModel(Main)); |
| | | _allBindingList.Add(new FourlinkSingleMatchingViewModel(Main)); |
| | | } |
| | | this.fourLinkSingleMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | this.fourLinkSingleMatchingViewModelBindingSource.ResetBindings(false); |