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();
};
}
///
/// 选择后的回调事件
///
public event EventHandler UpdateParent;
}
}