duheng
2024-12-27 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace HStation.WinFrmUI
{
    public partial class SimulationElbowSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
    {
        public SimulationElbowSingleMatchingDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
 
        public event Action<HydroElbowMatchingViewModel> ReloadDataEvent;
 
        private HydroElbowMatchingViewModel _elbowMatchingView = null;
 
        public void SetBindingData(HydroElbowMatchingViewModel ElbowMatchingViewModel)
        {
            this.elbowSingleMatchingForm1.SetBindingData(ElbowMatchingViewModel);
            _elbowMatchingView = ElbowMatchingViewModel;
        }
 
        //确定
        private void btnComplete_Click(object sender, EventArgs e)
        {
            ReloadDataEvent.Invoke(_elbowMatchingView);
            this.Close();
        }
    }
}