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 AIMS.PublicUI { public partial class frmTemplateSel : Form { public DateTime InRoomTime; public frmTemplateSel() { InitializeComponent(); } private void btnQuery_Click(object sender, EventArgs e) { InRoomTime = dtpStartTempTime.Value; this.DialogResult = System.Windows.Forms.DialogResult.OK; } private void frmTemplateSel_Load(object sender, EventArgs e) { dtpStartTempTime.Value = InRoomTime; } } }