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

            show.Show();
        }