|
|
@@ -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();
|