foreach (string key in Options.Keys) {
switch(key) {
case "ShowTabs":
- bool v = ParseBool(Options[key]);
+ bool v = Config.ParseBool(Options[key]);
wt.Tabs.ShowTabs = v;
break;
default:
}
}
- private bool ParseBool(string v) {
- switch(v.ToLower()) {
- case "true":
- case "t":
- case "1":
- case "on":
- case "yes":
- return true;
- }
- return false;
- }
-
private void Error(string format, params object[] values) {
Console.WriteLine(format, values);
}