private void client_GetThemeCompleted(object sender, GetThemeCompletedEventArgs e) { if (e.Error == null) { ThemeResult themeResult = e.Result; if (!_themes2.ContainsKey(themeResult.Theme.Name)) { _themes2.Add(themeResult.Theme.Name, themeResult.Theme); } if (ThemeLoaded != null) { ThemeLoaded.Invoke(this, new EventArgs()); } } }
protected virtual void OnThemeLoaded(EventArgs e) { ThemeLoaded?.Invoke(this, e); }