Beispiel #1
0
 private void LoadImage(string img)
 {
     Threaded.Add(() =>
     {
         Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() =>
         {
             this.ImageV.Source = new BitmapImage(new Uri(img));
         }));
     });
 }
Beispiel #2
0
        private void LoadBeatmapData(int Beatmap)
        {
            Threaded.Add(() =>
            {
                ApiRequestBeatmapDetail bm = ApiBase.Create <ApiRequestBeatmapDetail>(Beatmap.ToString());
                this.Beatmap = bm.GetData <Beatmap>();

                Dispatcher.Invoke(DispatcherPriority.Normal, new Action(this.DisplayData));
            });
        }