using DevExpress.XtraEditors; using Gs.DevApp.ToolBox; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Gs.DevApp.DevFrm.Rpt { public partial class QLCX : DevExpress.XtraEditors.XtraForm { public QLCX() { InitializeComponent(); } /// /// 选择后的回调事件 /// public event EventHandler UpdateParent; private void ucLookOrg2_Load(object sender, EventArgs e) { } private void simpleButton1_Click(object sender, EventArgs e) { var list = new List(); list.Add(ucLookOrg1.GetCode()); list.Add(dateEdit1.EditValue?.ToString() ?? ""); list.Add(dateEdit2.EditValue?.ToString() ?? ""); UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringList = list }); Close(); } } }