From d60435cd61eba66dc79e8aea92ee0979459b9d34 Mon Sep 17 00:00:00 2001 From: liufei Date: Sat, 11 Sep 2021 16:28:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=B0=8Fbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control/Windows/ToDoInfoWindow.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Control/Windows/ToDoInfoWindow.xaml.cs b/Control/Windows/ToDoInfoWindow.xaml.cs index b85be5b..2b34d7e 100644 --- a/Control/Windows/ToDoInfoWindow.xaml.cs +++ b/Control/Windows/ToDoInfoWindow.xaml.cs @@ -38,9 +38,12 @@ namespace GeekDesk.Control.Windows InitializeComponent(); this.Topmost = true; - ExeTime.SelectedDateTime = DateTime.Now.AddMinutes(10); + DateTime time = DateTime.Now.AddMinutes(10); + ExeTime.SelectedDateTime = time; SetTimePanel.Visibility = Visibility.Visible; - this.DataContext = new ToDoInfo(); + this.DataContext = new ToDoInfo { + ExeTime = time.ToString("yyyy-MM-dd HH:mm:ss") + }; } private ToDoInfoWindow(ToDoInfo info) {