using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DevExpress.XtraEditors; using System.Data.SqlClient; using ICSSoft.Frame.Data.BLL; using ICSSoft.Frame.Data.Entity; namespace ICSSoft.Frame.APP { public partial class FormICSSelectDate : DevExpress.XtraEditors.XtraForm { public string time; public FormICSSelectDate() { InitializeComponent(); } private void btnOK_Click(object sender, EventArgs e) { try { time =Convert.ToDateTime(dtpDate.Value).ToString("yyyy-MM-dd"); this.Close(); this.DialogResult = DialogResult.Yes; } catch (Exception ex) { MessageBox.Show(ex.Message); } } #region 关闭 private void btnCancle_Click(object sender, EventArgs e) { this.Close(); //this.DialogResult = DialogResult.Cancel; } private void btnClose_Click(object sender, EventArgs e) { this.Close(); //this.DialogResult = DialogResult.Cancel; } #endregion } }