I know this is a simple concept, but I need some help. I’m creating a winforms app, in c#, and I’m trying to organize my code. The first screen is a log in, and once the user is authenticated I return the users details. How/where should I store these details so that I don’t have to retrieve them again each time I want to use them?
Thank you!
Along the lines of what the others have said about the global static class, but with some sample code :
So, after the user has logged in, save the logged in info :
When you need to fetch info :