| | |
| | | namespace HStation.WinFrmUI.Xhs |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class ElbowSingMatchingDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public ElbowSingMatchingDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Action<ElbowMatchingViewModel> ReloadDataEvent; |
| | | public event Action<HydroElbowMatchingViewModel> ReloadDataEvent; |
| | | |
| | | private ElbowMatchingViewModel _ValveMatchingView = null; |
| | | private HydroElbowMatchingViewModel _elbowMatchingView = null; |
| | | |
| | | public void SetBindingData(ElbowMatchingViewModel PipeMatchingViewModel) |
| | | public void SetBindingData(HydroElbowMatchingViewModel ElbowMatchingViewModel) |
| | | { |
| | | //this.ElbowSingleMatchingForm1.SetBindingData(PipeMatchingViewModel); |
| | | _ValveMatchingView = PipeMatchingViewModel; |
| | | this.elbowSingleMatchingForm1.SetBindingData(ElbowMatchingViewModel); |
| | | _elbowMatchingView = ElbowMatchingViewModel; |
| | | } |
| | | |
| | | //确定 |
| | | private void btnComplete_Click(object sender, EventArgs e) |
| | | { |
| | | ReloadDataEvent.Invoke(_ValveMatchingView); |
| | | ReloadDataEvent.Invoke(_elbowMatchingView); |
| | | this.Close(); |
| | | } |
| | | } |
| | | } |