文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/04-pipe/01-pipesinglematching/PipeLineSingleMatchingForm.cs 修改 |
| | |
| | | 锘縩amespace HStation.WinFrmUI.Xhs |
| | | { |
| | | public partial class PipeLineSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | public partial class PipeSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | public PipeLineSingleMatchingForm() |
| | | public PipeSingleMatchingForm() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private PipeMatchingViewModel _pipeMatchingViewModel; |
| | | private BLL.PipeLineMain _PipeLineBll; |
| | | private List<PipeLineSingleMatchingViewModel> _allBindingList; |
| | | private BLL.PipeMain _PipeLineBll; |
| | | private List<PipeSingleMatchingViewModel> _allBindingList; |
| | | |
| | | public async void SetBindingData(PipeMatchingViewModel PipeMatchingViewModel) |
| | | { |
| | | _pipeMatchingViewModel = PipeMatchingViewModel; |
| | | _allBindingList = new List<PipeLineSingleMatchingViewModel>(); |
| | | _PipeLineBll = new BLL.PipeLineMain(); |
| | | _allBindingList = new List<PipeSingleMatchingViewModel>(); |
| | | _PipeLineBll = new BLL.PipeMain(); |
| | | var allPipeLineMain = await _PipeLineBll.GetAll(); |
| | | foreach (var Main in allPipeLineMain) |
| | | { |
| | | _allBindingList.Add(new PipeLineSingleMatchingViewModel(Main)); |
| | | _allBindingList.Add(new PipeSingleMatchingViewModel(Main)); |
| | | } |
| | | this.pipeLineSingleMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | this.pipeLineSingleMatchingViewModelBindingSource.ResetBindings(false); |