Resolve "Add code generator for non win forms projects" #78

Merged
thorsten merged 16 commits from 6-add-code-generator-for-non-win-forms-projects into main 2022-11-01 18:28:15 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit dfc0647fb0 - Show all commits

View File

@ -4,7 +4,15 @@ namespace UI_WinForms;
internal static class AppEvents
{
#region Event: Settings were
internal static void ResetAllSubscriptions()
{
WhenSettingsChanged = null;
WhenSectionChanged = null;
WhenTextElementChanged = null;
WhenTranslationChanged = null;
}
#region Event: Settings were
internal static event EventHandler? WhenSettingsChanged;

View File

@ -16,6 +16,7 @@ public partial class Main : UserControl
if(result == DialogResult.Yes)
{
Program.RestartMainApp = true;
AppEvents.ResetAllSubscriptions();
this.ParentForm!.Close();
}
}