private void Login_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         client.AddPlayerCompleted += client_AddPlayerCompleted;
         client.AddPlayerAsync(TxbPlName.ToString());
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void Add_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         client.AddPlayerCompleted += client_AddPlayerCompleted;
         client.AddPlayerAsync(Name.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #3
0
 private void Add_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         client.AddPlayerCompleted += client_AddPlayerCompleted;
         p            = new ServiceReference1.Player();
         p.PlayerId   = int.Parse(ID.Text);
         p.PlayerName = Name.Text;
         client.AddPlayerAsync(p);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }