| | |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Action<ThreelinkMatchingViewModel> ReloadDataEvent; |
| | | public event Action<HydroThreelinkMatchingViewModel> ReloadDataEvent; |
| | | |
| | | private ThreelinkMatchingViewModel _ValveMatchingView = null; |
| | | private HydroThreelinkMatchingViewModel _threelinkMatchingView = null; |
| | | |
| | | public void SetBindingData(ThreelinkMatchingViewModel PipeMatchingViewModel) |
| | | public void SetBindingData(HydroThreelinkMatchingViewModel ThreelinkMatchingViewModel) |
| | | { |
| | | this.ThreeLinkSingleMatchingForm1.SetBindingData(PipeMatchingViewModel); |
| | | _ValveMatchingView = PipeMatchingViewModel; |
| | | this.ThreeLinkSingleMatchingForm1.SetBindingData(ThreelinkMatchingViewModel); |
| | | _threelinkMatchingView = ThreelinkMatchingViewModel; |
| | | } |
| | | |
| | | //确定 |
| | | private void btnComplete_Click(object sender, EventArgs e) |
| | | { |
| | | ReloadDataEvent.Invoke(_ValveMatchingView); |
| | | ReloadDataEvent.Invoke(_threelinkMatchingView); |
| | | this.Close(); |
| | | } |
| | | } |