using DevExpress.XtraEditors; using ExtensionsDev; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Entity; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Documents; using System.Windows.Forms; using XdCxRhDW.Entity; using XdCxRhDW.Repostory; namespace XdCxRhDW.App.EditForms { public partial class TaskHistoryTimeEditor : DevExpress.XtraEditors.XtraForm { public DateTime start = DateTime.MinValue; public DateTime end = DateTime.MinValue; public TaskHistoryTimeEditor() { InitializeComponent(); this.layoutControl1.UseDefault(); this.txtStartTime.UseDefault(); this.txtEndTime.UseDefault(); this.StartPosition = FormStartPosition.CenterParent; } private void SatEditor_Load(object sender, EventArgs e) { txtStartTime.DateTime= DateTime.Now; } private void btnCancel_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; } private void btnOk_Click(object sender, EventArgs e) { start = txtStartTime.DateTime; end = txtEndTime.DateTime; this.DialogResult = DialogResult.OK; } } }