using Stone.Common; using Stone.Entity; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Stone.WinModule.Standard { public partial class frmPickUpDate : Form { public DateTime dtPickUp; public DateTime dtSwetDate; public frmPickUpDate() { InitializeComponent(); } private void frmPasswordVerify_Load(object sender, EventArgs e) { // dateTimePicker1.Value = dtSwetDate.Date.Date; dateTimePicker1.Value = DateTime.Parse(dtSwetDate.Date.ToString("yyyy-MM-dd") + " 07:00:00"); } private void btnOK_Click(object sender, EventArgs e) { try { dtPickUp = dateTimePicker1.Value; this.DialogResult = DialogResult.OK; this.Close(); } catch (Exception ex) { MyMessageBox.ShowErrorMessage(ex.Message); } } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } } }