private async Task ShowMatchAsync() { StoredMatch match = await Helper.GetMatchAsync(this.match.StoredMatchId); ShowMatch showMatch = new ShowMatch(match); await Task.Run(() => showMatch.Dispatcher.BeginInvoke(new Action(delegate { showMatch.Show(); }))); }
private void btnTest_Click(object sender, RoutedEventArgs e) { ShowMatch show = new ShowMatch(); show.Show(); }