Am I using Settings in C# correctly?
Posted
by Sergio Tapia
on Stack Overflow
See other posts from Stack Overflow
or by Sergio Tapia
Published on 2010-05-19T03:13:14Z
Indexed on
2010/05/19
3:20 UTC
Read the original article
Hit count: 451
c#
|appsettings
Here's what I'm doing.
I have three properties: MomsBackground, DadsBackground and ChosenBackground.
When Momsbackground is selected in the program, I set the ChosenBackground string according to what item the user has clicked (either "Mom" or "Dad").
Then on Form_Load() I use a switch case for the ChosenBackground string and according to that select This.BackgroundColor to MomsBackground or DadsBackground.
Code below: Am I using this as it was intended?
© Stack Overflow or respective owner