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(); }))); }
public ActionResult Match(int?MatchId) { try { ShowMatch Match = new ShowMatch(); if (MatchId != null) { Match = new ServiceDatabase().ShowMatch(Convert.ToInt32(MatchId)); } return(View(Match)); } catch (Exception e) { ViewBag.Error = e.Message; return(View("Error")); } }
private void _viewModel_OnMatch(object sender, EventArgs e) { matchBorder.Visibility = Visibility.Visible; ShowMatch.Begin(); }
private void btnTest_Click(object sender, RoutedEventArgs e) { ShowMatch show = new ShowMatch(); show.Show(); }