fqc
lu
2025-05-06 437425784b7612e10d4a54bd64905c508347514d
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
using Gs.DevApp.ToolBox;
using System;
 
namespace Gs.DevApp.UserControl
{
    public partial class showZhongTai : DevExpress.XtraEditors.XtraForm
    {
        public showZhongTai()
        {
            InitializeComponent();
            btnSave.Click += (s, e) =>
            {
                if (comZt.SelectedIndex <= 0)
                {
                    Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择状态!");
                    return;
                }
                string str = comZt.Text.Trim();
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str });
                Close();
            };
            btnCancel.Click += (s, e) =>
            {
                this.Close();
            };
        }
 
        /// <summary>
        ///     选择后的回调事件
        /// </summary>
        public event EventHandler<UpdateParentEventArgs> UpdateParent;
    }
}