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:
parent
1fa415628f
commit
d1df10d060
32 changed files with 1043 additions and 427 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue