[英]refresh data in windows form application
I cannot figure out how to google this.我不知道如何谷歌这个。 I have found information about setting handling a button click request, but I cannot find any information about how to refresh the data of my app on a set time interval.
我找到了有关设置处理按钮单击请求的信息,但找不到有关如何在设置的时间间隔内刷新应用程序数据的任何信息。 I am a beginner with windows forms so I am trying to learn more about it.
我是 Windows 窗体的初学者,所以我正在尝试更多地了解它。
I am building a weather application and I have a client that is fetching data from openWeatherMap's rest api.我正在构建一个天气应用程序,我有一个客户端从 openWeatherMap 的 rest api 获取数据。 I am just not sure how to set up my form to display this and refresh it every say 10 min.
我只是不确定如何设置我的表单来显示它并每隔 10 分钟刷新一次。 Can someone give me some examples/resources?
有人能给我一些例子/资源吗?
我认为您正在寻找使用Timer类之类的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.