lixiaojun
2024-12-09 725f20b576bdd40d57d9a1e806ce3f6f39181a84
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 SimulationFlowmeterSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
    {
        public SimulationFlowmeterSingleMatchingDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
 
        public event Action<HydroFlowmeterMatchingViewModel> ReloadDataEvent;
 
        private HydroFlowmeterMatchingViewModel _flowMeterMatchingView = null;
 
        public void SetBindingData(HydroFlowmeterMatchingViewModel FlowmeterMatchingViewModel)
        {
            this.FlowmeterSingleMatchingForm1.SetBindingData(FlowmeterMatchingViewModel);
            _flowMeterMatchingView = FlowmeterMatchingViewModel;
        }
 
        //确定
        private void btnComplete_Click(object sender, EventArgs e)
        {
            ReloadDataEvent.Invoke(_flowMeterMatchingView);
            this.Close();
        }
    }
}