using SunlightCentralizedControlManagement_SCCM_.EX; using SunlightCentralizedControlManagement_SCCM_.UserClass; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Threading; using static SunlightCentralizedControlManagement_SCCM_.ViewModel.MainWindowViewModel; namespace SunlightCentralizedControlManagement_SCCM_.ViewModel { public class MonitorViewModel : ViewModelBase { public MonitorViewModel() { // DispatcherTimer timer1s = new DispatcherTimer(DispatcherPriority.Normal);//初始化循环,每1秒调用一次Tick // timer1s.Interval = TimeSpan.FromMilliseconds(950);//秒 // timer1s.Tick += Tick_Main_1S; // timer1s.Start(); } } }