Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
121ff87ef9
4 files changed
+40
-9
No files matched your search
@@ -43,8 +43,10 @@ namespace Audit.ViewModel
|
||||
public StuffViewModel()
|
||||
{
|
||||
products = new ProductProvider().Select();
|
||||
DispatcherTimer timer = new DispatcherTimer();//每0.5秒调用一次Tick_Event
|
||||
timer.Interval = TimeSpan.FromSeconds(0.1);
|
||||
DispatcherTimer timer = new DispatcherTimer//初始化循环,每0.5秒调用一次Tick_Event
|
||||
{
|
||||
Interval = TimeSpan.FromSeconds(0.1)
|
||||
};
|
||||
timer.Tick += Tick_Event;
|
||||
timer.Start();
|
||||
}
|
||||
@@ -53,7 +55,10 @@ namespace Audit.ViewModel
|
||||
{
|
||||
if (StuffView.Button_sql == true)//获取按钮状态
|
||||
{
|
||||
Product = new ProductProvider().Select();//扫描数据库
|
||||
if (StuffView.Buttontype_sql == -1) Product = new ProductProvider().Select();
|
||||
if (StuffView.Buttontype_sql == 0) Product = new ProductProvider().Selects0();
|
||||
if (StuffView.Buttontype_sql == 1) Product = new ProductProvider().Selects1();
|
||||
if (StuffView.Buttontype_sql == 2) Product = new ProductProvider().Selects2();
|
||||
StuffView.Button_sql = false;//清除按钮状态
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user