Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?

[Edit-OP comment from solution before it gets deleted]
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.
Posted
Updated 13-Sep-14 7:57am
v2
Comments
[no name] 13-Sep-14 16:40pm    
I think it is you that does not understand. SA gave you a solution to implement inter process communication which appears to be what you are asking about. Mike also suggested to you to use a database to store/query this information in. So what is really the question/problem if you do not like either of those solutions? And if the solution was unacceptable, why did you accept it as the solution to your problem?
Mike Meinz 13-Sep-14 19:49pm    
Saad Arman, I understand your requirement. I stand by my Solution #2. If I were developing an application such as this, I would want a central location to store the information about each user, their activities, their current state, etc. I would use a database to store such information. Database servers are designed to handle concurrency and data integrity, etc. for multiple clients. Without a central store of information, in a network of N computers, any one computer would have to communicate with N - 1 other computers. This quickly becomes a difficult task to implement and takes longer than maintaining information in a central database.

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.

[EDIT]

Saad Arman wrote:
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,

We did not understand you because you did not clearly express yourself. It is still unclear. When you say "sign in", you should explain: sign for what? It could be your application, but also could be some service, some Web site, or something else. You mentioned "another computer", and that suggests that the application on different computer should collaborate, either directly, or indirectly, for example, via some service. And I provide the overview of the means of communications via the network. You did not confirm that you are going to work via a network or not (if not, what else? :-), and so on…

—SA
 
Share this answer
 
v2
Comments
Nelek 13-Sep-14 14:27pm    
OP answered to you in a non-solution. Content is already added to the question, have a look please
Sergey Alexandrovich Kryukov 13-Sep-14 19:37pm    
Probably that non-solution has been automatically removed by now, but thank you for the note.
—SA
Nelek 13-Sep-14 19:38pm    
I guess so, Chill60 moved it above before, just in case.
Sergey Alexandrovich Kryukov 13-Sep-14 19:54pm    
I responded in [EDIT], thank you again.
—SA
Nelek 13-Sep-14 20:06pm    
You are welcome
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:
Quote:
Microsoft SQL Server Express supports 1 physical processor, 1 GB memory, and 10 GB storage
Download the Software:
Microsoft SQL Server 2014 Express[^]
 
Share this answer
 
Comments
Nelek 13-Sep-14 14:27pm    
OP answered to you in a non-solution. Content is already added to the question, have a look please

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900