public static void Reload(this WidgetId id) { var settings = id.GetSettings(); if (settings == null || settings.Disabled) { return; } id.CloseView(true); foreach (var eventPair in App.WidgetsSettingsStore.EventActionPairs) { var evnt = eventPair.Event as WidgetReloadEvent; if (evnt == null || eventPair.Disabled || evnt.WidgetId?.Guid != id?.Guid) { continue; } eventPair.Action.Execute(); } }