Add products grid scaling setting

- Add Grid Scaling Settings
- Add WinForms DPI migration to remove stored form sizes
- Add textbox clear button
This commit is contained in:
Mbucari 2023-07-11 20:52:43 -06:00
parent 1fa415628f
commit d1df10d060
32 changed files with 1043 additions and 427 deletions

View file

@ -168,6 +168,17 @@ namespace LibationWinForms
// examples:
// - only supported in winforms. don't move to app scaffolding
// - long running. won't get a chance to finish in cli. don't move to app scaffolding
const string hasMigratedKey = "hasMigratedToHighDPI";
if (!config.GetNonString(defaultValue: false, hasMigratedKey))
{
config.RemoveProperty(nameof(config.GridColumnsWidths));
foreach (var form in typeof(Program).Assembly.GetTypes().Where(t => t.IsSubclassOf(typeof(Form))))
config.RemoveProperty(form.Name);
config.SetNonString(true, hasMigratedKey);
}
}
private static void postLoggingGlobalExceptionHandling()