I had a Winforms App with a propertyGrid to let the user edit his settings.
How to achieve the same goal whithin a Console Application?
ANSWER
Thanks to those who answered.
Here is a synthetic code based on a few answers :
Console.WriteLine("Choose user settings to setup");
Console.WriteLine("User setting1: press 1");
Console.WriteLine("User setting2: press 2");
string line = Console.ReadLine();
int code = int.Parse(line);
swicth(code)
{
case 1:
Settings.Default.MyProperty = line ;
Settings.Default.Save();
break;
case 2:
...
}
1 Answer