duheng
2024-12-05 b26ae60e85d4a03a2426e6607e7afe89e1c10a5f
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 SimulationHydrantSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
    {
        public SimulationHydrantSingleMatchingDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
 
        public event Action<HydroHydrantMatchingViewModel> ReloadDataEvent;
 
        private HydroHydrantMatchingViewModel _hydrantMatchingView = null;
 
        public void SetBindingData(HydroHydrantMatchingViewModel HydrantMatchingViewModel)
        {
            this.HydrantSingleMatchingForm1.SetBindingData(HydrantMatchingViewModel);
            _hydrantMatchingView = HydrantMatchingViewModel;
        }
 
        //确定
        private void btnComplete_Click(object sender, EventArgs e)
        {
            ReloadDataEvent.Invoke(_hydrantMatchingView);
            this.Close();
        }
    }
}