Esempio n. 1
0
 void c_getMyTicketsCompleted(object sender, Web.getMyTicketsCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         MessageBox.Show(e.Error.ToString(), "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     else
     {
         Dispatcher.BeginInvoke(new EventHandler <Web.getMyTicketsCompletedEventArgs>(c_getMyTicketsCompleted2), sender, e);
     }
 }
Esempio n. 2
0
 void c_getMyTicketsCompleted2(object sender, Web.getMyTicketsCompletedEventArgs e)
 {
     if (e.Result.Length > 0)
     {
         ticketbox.Visibility  = System.Windows.Visibility.Visible;
         notickets.Visibility  = System.Windows.Visibility.Hidden;
         ticketbox.ItemsSource = e.Result;
     }
     else
     {
         ticketbox.Visibility = System.Windows.Visibility.Hidden;
         notickets.Visibility = System.Windows.Visibility.Visible;
     }
 }