| | |
| | | public PipeSingMatchingDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Action<PipeMatchingViewModel> ReloadDataEvent; |
| | | public event Action<HydroPipeMatchingViewModel> ReloadDataEvent; |
| | | |
| | | private PipeMatchingViewModel _ValveMatchingView = null; |
| | | private HydroPipeMatchingViewModel _ValveMatchingView = null; |
| | | |
| | | public void SetBindingData(PipeMatchingViewModel PipeMatchingViewModel) |
| | | public void SetBindingData(HydroPipeMatchingViewModel PipeMatchingViewModel) |
| | | { |
| | | this.pipeLineSingleMatchingForm1.SetBindingData(PipeMatchingViewModel); |
| | | _ValveMatchingView = PipeMatchingViewModel; |
| | |
| | | private void btnComplete_Click(object sender, EventArgs e) |
| | | { |
| | | ReloadDataEvent.Invoke(_ValveMatchingView); |
| | | this.Close(); |
| | | } |
| | | } |
| | | } |