如何在更新数据库时在winform中显示通知 [英] How to show a notification in winform whenever a database is updated

查看:194
本文介绍了如何在更新数据库时在winform中显示通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我开发了两个Winform应用程序,其中一个充当管理员,另一个充当客户端。好吧,我需要一个逻辑或解释,每当客户端更新其表单中的数据时,它应该通知管理员应用程序。



基本上客户端应用程序有一个数据输入表单他输入数据并远程存储(远程数据库。现在Admin应该会收到一条通知,说明客户输入的数据。



Out of感兴趣我正在学习C#我自己,但是每隔一段时间我就会陷入困境而没有逻辑或解释。如果有人向我解释逻辑,那将非常有用。



问候

Saikrishna



我尝试了什么:



我还没有尝试了任何代码,因为我缺乏背后的逻辑。

希望我没有破坏任何CodeProject规则。

Hello All,

I have developed two Winform Application where one acts as an Admin and another as a Client. Well, i need a logic or an explanation for, whenever Client updates the data in his form it should notify the Admin app.

Basically Client App has a data entry form where he enters the data and it is stored remotely(remote database. Now Admin app should receive a notification stating so and so data is entered by the client.

Out of interest am learning C# myself but at intervals i get stuck without logic or explanation. It will very helpful if someone explains me the logic.

Regards
Saikrishna

What I have tried:

I have not tried any code since am lacking the logic behind.
Hope am not breaking any CodeProject rules.

推荐答案

这个例子使用Windows窗体和.NET数据集更新数据 [ ^ ]也许可以帮到你。



在这个例子中,数据集会定期更新,而其他进程正在对数据集进行更改。
This example Update Data using Windows Form and .NET Data Sets[^] may be able to help you.

In this example, a dataset is updated periodically while other processes are making changes to the dataset.


这篇关于如何在更新数据库时在winform中显示通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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