Example #1
0
 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());
         }
     }
 }
Example #2
0
 protected virtual void OnThemeLoaded(EventArgs e)
 {
     ThemeLoaded?.Invoke(this, e);
 }