Shuxia Ning
2024-12-02 a2f11a5e60bb577fb793949191793a59953e236b
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
29
30
31
32
33
34
35
36
37
using DevExpress.XtraEditors;
 
namespace Yw.WinFrmUI.Phart
{
    public partial class ImportPumpPerform2dByPictureDlg : XtraForm
    {
        public ImportPumpPerform2dByPictureDlg()
        {
            InitializeComponent();
            this.importCurveByPictureCtrl1.ReloadDataEvent += ImportCurveByPictureCtrl1_ReloadDataEvent;
        }
 
        /// <summary>
        /// 回调事件
        /// </summary>
        public event Func<string, Yw.Pump.CurveQH, Yw.Pump.CurveQE, Yw.Pump.CurveQP, Task<bool>> ReloadDataEvent;
 
        private async void ImportCurveByPictureCtrl1_ReloadDataEvent(string arg1, Pump.CurveQH arg2, Pump.CurveQE arg3, Pump.CurveQP arg4)
        {
            var result = await this.ReloadDataEvent?.Invoke(arg1, arg2, arg3, arg4);
            if (!result)
            {
                XtraMessageBox.Show("导入失败!");
 
            }
            XtraMessageBox.Show("导入成功!");
            this.DialogResult = DialogResult.OK;
            this.Close();
 
        }
 
 
 
 
 
    }
}