예제 #1
0
        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();
            })));
        }
예제 #2
0
 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"));
     }
 }
예제 #3
0
 private void _viewModel_OnMatch(object sender, EventArgs e)
 {
     matchBorder.Visibility = Visibility.Visible;
     ShowMatch.Begin();
 }
예제 #4
0
        private void btnTest_Click(object sender, RoutedEventArgs e)
        {
            ShowMatch show = new ShowMatch();

            show.Show();
        }