xiongzhu пре 5 година
родитељ
комит
409d00ae6c
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      model/AcsEvent.cs
  2. 4 4
      views/MainWindow.xaml.cs

+ 1 - 1
model/AcsEvent.cs

@@ -14,7 +14,7 @@
             this.direction = direction;
             this.employNo = employNo;
             this.cardNo = cardNo;
-            this.accessTime = time;
+            this.accessTime = accessTime;
         }
     }
 }

+ 4 - 4
views/MainWindow.xaml.cs

@@ -74,10 +74,10 @@ namespace DeviceCenter
 
             lv_device.ItemsSource = devices;
 
-            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 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) =>