Reset application and settings on user change

Posted by Don on Stack Overflow See other posts from Stack Overflow or by Don
Published on 2010-06-11T18:18:46Z Indexed on 2010/06/11 18:22 UTC
Read the original article Hit count: 208

Filed under:
|
|
|
|

Currently working on a project where a login will be required to use the application.

I'm trying to figure out a smarter way to reset the application if someone is somehow logged out and the next one to login is not the same user.

The option I have come up with at the moment is storing all user specific data/information in a DTO but this leaves me with cleaning up some parts of the work area.

Is a ResetControls my only option here? I'm afraid that when updating the application someone might forget to update that part, most likely myself now that wrote it out.

Anybody with experience in this that could provide some ideas to a simple yet fairly automagic solution?

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms