忱 沈 4 years ago
parent
commit
e09eeade10
  1. 2
      ViewModel/StuffViewModel.cs

2
ViewModel/StuffViewModel.cs

@ -43,7 +43,7 @@ namespace Audit.ViewModel
{ {
products = new ProductProvider().Select(); products = new ProductProvider().Select();
DispatcherTimer timer = new DispatcherTimer();//每5秒调用一次Tick_Event DispatcherTimer timer = new DispatcherTimer();//每5秒调用一次Tick_Event
timer.Interval = TimeSpan.FromSeconds(5); timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += Tick_Event; timer.Tick += Tick_Event;
timer.Start(); timer.Start();
} }

Loading…
Cancel
Save