I have a rather large CRUD WinForm application that has many objects. Person, registration, plan, CaseNote, etc. . There are over 30 forms that make up the application with a logical user interface. Participant, applications, plans, notes, etc. .
I am trying to figure out how I can create my Person object after searching in the search form and submit the object to the next requested form. Be that as it may, say, demographic data. In short, I need a Person object that will be available throughout the application, and there can only be one.
Now I have a ZERO exposure on Design Patterns, but I'm trying. I read http://www.switchonthecode.com/tutorials/csharp-tutorial-singleton-pattern and http://www.yoda.arachsys.com/csharp/singleton.html but I want to make sure that I understand correctly how to apply it is to my situation.
First, the examples indicate that you are accessing a link, right? Am I mistaken or do I need to access the value?
Secondly, is there anything else I need to do to make this accessible globally? I just declare an instance for each form, but through this Singleton template so as not to have more than one?
thanks
EDIT 1
To clarify, all objects are child objects of Person. Also, as the search page does not work; users can choose another currentPerson. But they can only interact with the character ONE .
Finally, since I said that I was a baby in this, and if I should consider something else, a different approach, please say this, and if you were so kind as to offer some explanation why I would be very grateful.
EDIT 2
Based on the comments of the Medic, I thought I would ask for clarification.
First of all, thanks to everyone who has contributed so far. Secondly, I don’t know what primarily concerns design patterns, and of course I don’t have a nebula if a certain one is needed in my current situation.
If someone has a better, simpler or, in your opinion, more suitable way to transfer a data object from FORM to FORM to FORM, then PLEASE tell me.
In the end, I just need a way to track information as my users move from place to place. Thank you.