You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Audit.View;
|
|
|
|
|
using GalaSoft.MvvmLight;
|
|
|
|
|
using Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Threading;
|
|
|
|
|
|
|
|
|
|
namespace Audit.ViewModel
|
|
|
|
|
{
|
|
|
|
|
public class MainViewModel : ViewModelBase
|
|
|
|
|
{
|
|
|
|
|
public MainViewModel()
|
|
|
|
|
{
|
|
|
|
|
DispatcherTimer timer = new DispatcherTimer//��ʼ��ѭ����ÿ1������һ��Tick_Event
|
|
|
|
|
{
|
|
|
|
|
Interval = TimeSpan.FromSeconds(1)
|
|
|
|
|
};
|
|
|
|
|
timer.Tick += Tick_Event;
|
|
|
|
|
timer.Start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Tick_Event(object sender, EventArgs e)//Tick_Event����ִ���¼�
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|