如何在Windows应用程序中检查c#中间隔的condistion? [英] how to check condistion on interval in c# in windows appication?

查看:62
本文介绍了如何在Windows应用程序中检查c#中间隔的condistion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有1个数据库名称emp



empno emaname薪水

eoo1 abc 5000

e002 bcd 10000

e004 def 15000

e005 lkj 17000





所以我想要检查constion它显示grid视图中的所有记录,其中emp表的工资> 1000,在某个时间间隔内如10分钟。

i我在c#中使用windows应用程序。







所以我怎么能这样做plz help

i have 1 databese name emp

empno emaname salary
eoo1 abc 5000
e002 bcd 10000
e004 def 15000
e005 lkj 17000


so i want to check constion that it display all record in gridview from emp table whose salary>1000 in some interval like 10 mints.
i am using windows application in c#.



so how can i do that plz help

推荐答案

运行一个计时器,设置间隔并在每次执行计时器时执行 if 逻辑。
Run a timer, set the interval and execute if logic on every execution of the timer.


使用线程



见,

C#中的线程简介 [ ^ ]

http://msdn.microsoft.com/en-us/library/aa645740(V = vs.71).aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/7a2f3ay4(v = vs.90).aspx [ ^ ]

http://www.tutorialspoint.com/csharp/csharp_multithreading.htm [ ^ ]

http: //www.dotnetperls.com/thread [ ^ ]

http://www.developerfusion.com/article/4134/net-threading-part-i/ [ ^ ]



-KR
Use Threading.

See,
Introduction to Threads in C#[^]
http://msdn.microsoft.com/en-us/library/aa645740(v=vs.71).aspx[^]
http://msdn.microsoft.com/en-us/library/7a2f3ay4(v=vs.90).aspx[^]
http://www.tutorialspoint.com/csharp/csharp_multithreading.htm[^]
http://www.dotnetperls.com/thread[^]
http://www.developerfusion.com/article/4134/net-threading-part-i/[^]

-KR


这篇关于如何在Windows应用程序中检查c#中间隔的condistion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆