我如何在两个wpf应用程序之间共享数据? [英] How I can share data between two wpf applications?

查看:105
本文介绍了我如何在两个wpf应用程序之间共享数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wpf C#中创建了一个应用程序,我想添加一个添加团队的功能。因此,如果我将其安装在另一台计算机上,该人可以访问另一个名称和其他详细信息,以便将其添加为团队成员?能帮助我了解如何使我的应用程序可以进行这种数据共享吗?



[在解决方案中删除之前编辑的OP评论]

谢尔盖先生和迈克,你不明白我。我正在构建一个名为Team Project Builder的应用程序。在此应用程序中,用户将注册然后在其中使用不同的活动登录,当他点击团队部分并且他在那里搜索时他可以找到使用相同应用程序的其他用户并且他也可以看到搜索到的用户信息。如果可以的话请告诉我。

I have made a application in wpf C# and I want to add a function of adding a team. So if I install it on another computer that person can access another one name and other details so he can be added as team member? Can you please help that how I can make my application this data sharing possible?


Mr Sergey & Mike you didn't understand me . I am building a application named as Team Project Builder. In this application a user will register and then sign in after that with different activities when he click in the team portion and he search there he could find other user who is using the same application and he could see the searched user information also. Tell me about this if you can please.

推荐答案

这个问题与UI,WPF无关。所以,首先,您需要接受关注点分离

http ://en.wikipedia.org/wiki/Separation_of_concerns [ ^ ]。



此外,它看起来不像你想在应用程序之间共享数据。看起来您想要在不同计算机上的同一应用程序的不同进程之间共享数据。



它可以在几个不同级别的网络中进行,远程处理或者WCF。

请在我过去的解决方案中查看我对这些方法的概述:

我如何将byte []发送到其他电脑 [ ^ ],

通信b / w局域网上的两个Windows应用程序。 [< a href =http://www.codeproject.com/Answers/175730/Communication-bw-two-Windows-applications-on-LAN#answer2target =_ blanktitle =New Window> ^ ]。



如果您需要别的东西,请澄清。







This problem is irrelevant to UI, WPF or not. So, first of all, you need to embrace separation of concerns:
http://en.wikipedia.org/wiki/Separation_of_concerns[^].

Besides, it does not look like you want share data between application. It looks like you want to share data between the different processes of the same application on different computers.

It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

If you need something else, please clarify.



Saad Arman写道:
Saad Arman wrote:

谢尔盖先生&迈克,你不明白我。我正在构建一个名为Team Project Builder的应用程序。在此应用程序中,用户将注册然后在其中使用不同的活动登录,当他点击团队部分并且他在那里搜索时他可以找到使用相同应用程序的其他用户并且他也可以看到搜索到的用户信息。如果你愿意,请告诉我。

Mr Sergey & Mike you didn't understand me. I am building a application named as Team Project Builder. In this application a user will register and then sign in after that with different activities when he click in the team portion and he search there he could find other user who is using the same application and he could see the searched user information also. Tell me about this if you can please.

Saad,



我们不理解你,因为你没有清楚地表达自己。目前还不清楚。当你说登录时,你应该解释:签署什么?它可能是您的应用程序,但也可能是某些服务,某些网站或其他内容。您提到了另一台计算机,这表明不同计算机上的应用程序应该直接或间接地协作,例如通过某种服务。我提供了通过网络进行通信的概述。你没有确认你是否打算通过网络工作(如果没有,还有什么?:-),等等...



- SA


您可以使用在单独的服务器或其中一台PC上运行的数据库。



只要您的数据库符合以下条件,Microsoft SQL Server Express即可免费下载和使用:

You would use a database running on a separate server or on one of your PC's.

Microsoft SQL Server Express is available for download and use without charge as long as your database meets this criteria:
引用:

Microsoft SQL Server Express支持1个物理处理器,1 GB内存和10 GB存储空间

Microsoft SQL Server Express supports 1 physical processor, 1 GB memory, and 10 GB storage

下载软件:

Microsoft SQL Server 2014 Express [ ^ ]


这篇关于我如何在两个wpf应用程序之间共享数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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