From efb6732cd716d1fba0b91a7921e60a5ae3a045a3 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 12 Jul 2022 20:50:03 +0200 Subject: [PATCH] Defined AppEvents by implemented section changed event --- I18N Commander/UI WinForms/AppEvents.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 I18N Commander/UI WinForms/AppEvents.cs diff --git a/I18N Commander/UI WinForms/AppEvents.cs b/I18N Commander/UI WinForms/AppEvents.cs new file mode 100644 index 0000000..41191ae --- /dev/null +++ b/I18N Commander/UI WinForms/AppEvents.cs @@ -0,0 +1,10 @@ +using DataModel.Database; + +namespace UI_WinForms; + +internal static class AppEvents +{ + internal static event EventHandler
WhenSectionChanged; + + internal static void SectionChanged(Section section) => AppEvents.WhenSectionChanged?.Invoke(null, section); +} \ No newline at end of file