Пример #1
0
    void games_GameLoadingComplete(object sender, GameLoadingEventArgs e)
    {
      // Fire Event on UI Thread
      Application.Current.RootVisual.Dispatcher.BeginInvoke(() =>
        {
          // Clear the list
          theGames.Clear();

          // Add the new games
          foreach (Game g in e.Results) theGames.Add(g);

          if (LoadComplete != null) LoadComplete(this, null);
        });
    }
Пример #2
0
        void games_GameLoadingComplete(object sender, GameLoadingEventArgs e)
        {
            // Fire Event on UI Thread
            Application.Current.RootVisual.Dispatcher.BeginInvoke(() =>
            {
                // Clear the list
                theGames.Clear();

                // Add the new games
                foreach (Game g in e.Results)
                {
                    theGames.Add(g);
                }

                if (LoadComplete != null)
                {
                    LoadComplete(this, null);
                }
            });
        }