You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
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
} }
|