qin
2025-03-14 185565a8eb30c0546746aad52aac0926d395a76d
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
38
39
40
41
42
43
44
45
46
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public partial class SetParasDlg : DevExpress.XtraEditors.XtraForm
    {
        /// <summary>
        /// 
        /// </summary>
        public SetParasDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.layoutControl1.SetupLayoutControl();
            this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent;
        }
 
        /// <summary>
        /// 重载数据事件
        /// </summary>
        public event Action<Dictionary<string, string>> ReloadDataEvent;
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(Dictionary<string, string> dict)
        {
            this.setParasGridCtrl1.SetBindingData(dict);
        }
 
        //确定
        private void GeneralOkAndCancelCtrl1_OkEvent()
        {
            var paras = this.setParasGridCtrl1.GetParas();
            this.ReloadDataEvent?.Invoke(paras);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
 
       
 
 
 
    }
}