private void LoadImage(string img) { Threaded.Add(() => { Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { this.ImageV.Source = new BitmapImage(new Uri(img)); })); }); }
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)); }); }