xiongzhu vor 5 Jahren
Ursprung
Commit
2fae3c31a7
1 geänderte Dateien mit 12 neuen und 12 gelöschten Zeilen
  1. 12 12
      views/MainWindow.xaml.cs

+ 12 - 12
views/MainWindow.xaml.cs

@@ -74,19 +74,19 @@ namespace DeviceCenter
 
             lv_device.ItemsSource = devices;
 
-            //System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
-            //dispatcherTimer.Tick += GetAllCard;
-            //dispatcherTimer.Interval = new TimeSpan(0, 30, 0);
-            //dispatcherTimer.Start();
+            System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
+            dispatcherTimer.Tick += GetAllCard;
+            dispatcherTimer.Interval = new TimeSpan(0, 0, 5);
+            dispatcherTimer.Start();
 
-            System.Windows.Threading.DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer();
-            timer.Tick += (s, e) =>
-            {
-                ((System.Windows.Threading.DispatcherTimer)s).Stop();
-                GetAllCard(null, null);
-            };
-            timer.Interval = new TimeSpan(0, 0, 5);
-            timer.Start();
+            //System.Windows.Threading.DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer();
+            //timer.Tick += (s, e) =>
+            //{
+            //    ((System.Windows.Threading.DispatcherTimer)s).Stop();
+            //    GetAllCard(null, null);
+            //};
+            //timer.Interval = new TimeSpan(0, 0, 5);
+            //timer.Start();
 
 
             ScheduleJob();