Browse Source

修复一个小bug

liufei 4 năm trước cách đây
mục cha
commit
d60435cd61
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      Control/Windows/ToDoInfoWindow.xaml.cs

+ 5 - 2
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)
         {