啊鑫
5 天以前 650fe9e42e3de66be29769da72cc755273246dd9
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
using System;
using Gs.DevApp.ToolBox;
 
namespace Gs.DevApp.DevFrm.IPQC
{
    public partial class Frm_XunJianDetect01Show : DevExpress.XtraEditors.XtraForm
    {
        public Frm_XunJianDetect01Show()
        {
            InitializeComponent();
            txt_fBegDate.DateTime = DateTime.Now;
            btnSave.Click += (s, e) =>
            {
                if (txt_fBegDate.Text.Length <= 0)
                {
                    Gs.DevApp.ToolBox.MsgHelper.ShowError("日期不能为空!");
                    txt_fBegDate.Focus();
                    return;
                }
                string str = txt_fBegDate.Text.Trim();
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str });
                Close();
            };
            btnCancel.Click += (s, e) =>
            {
                this.Close();
            };
        }
 
        /// <summary>
        ///     选择后的回调事件
        /// </summary>
        public event EventHandler<UpdateParentEventArgs> UpdateParent;
    }
}