duheng
2024-11-19 74706b439194deed9c5fde2d5ed02226fc33fd69
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 FourLinkSingMatchingDlg : DevExpress.XtraEditors.XtraForm
    {
        public FourLinkSingMatchingDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
 
        public event Action<FourlinkMatchingViewModel> ReloadDataEvent;
 
        private FourlinkMatchingViewModel _ValveMatchingView = null;
 
        public void SetBindingData(FourlinkMatchingViewModel PipeMatchingViewModel)
        {
            this.FourlinkSingleMatchingForm1.SetBindingData(PipeMatchingViewModel);
            _ValveMatchingView = PipeMatchingViewModel;
        }
 
        //确定
        private void btnComplete_Click(object sender, EventArgs e)
        {
            ReloadDataEvent.Invoke(_ValveMatchingView);
            this.Close();
        }
    }
}