2022-07-12 18:50:03 +00:00
|
|
|
|
using DataModel.Database;
|
|
|
|
|
|
|
|
|
|
namespace UI_WinForms;
|
|
|
|
|
|
|
|
|
|
internal static class AppEvents
|
|
|
|
|
{
|
2022-07-20 18:51:12 +00:00
|
|
|
|
// Section changed event which can be subscribed:
|
2022-07-12 18:50:03 +00:00
|
|
|
|
internal static event EventHandler<Section> WhenSectionChanged;
|
|
|
|
|
|
2022-07-20 18:51:12 +00:00
|
|
|
|
// Method to raise the section changed event:
|
2022-07-12 18:50:03 +00:00
|
|
|
|
internal static void SectionChanged(Section section) => AppEvents.WhenSectionChanged?.Invoke(null, section);
|
2022-07-20 18:51:12 +00:00
|
|
|
|
|
|
|
|
|
// Text element changed event which can be subscribed:
|
|
|
|
|
internal static event EventHandler<TextElement> WhenTextElementChanged;
|
|
|
|
|
|
|
|
|
|
// Method to raise the text element changed event:
|
|
|
|
|
internal static void TextElementChanged(TextElement textElement) => AppEvents.WhenTextElementChanged?.Invoke(null, textElement);
|
2022-07-12 18:50:03 +00:00
|
|
|
|
}
|