Esempio n. 1
0
 public CreateAccount()
 {
     playerClient = new ServiceReference.PlayerManagerClient();
     newPlayer    = new ServiceReference.Player();
     code         = new ServiceReference.Code();
     InitializeComponent();
     SetHideForm();
 }
Esempio n. 2
0
 private void Button_Accept_Click(object sender, RoutedEventArgs e)
 {
     if (textBox_ConfirmationNumber.Text != "")
     {
         ServiceReference.Code code = playerClient.FindCode(textBox_ConfirmationNumber.Text);
         if (code != null)
         {
             MainWindow mainWindow = new MainWindow();
             SendPlayer();
             this.Close();
             mainWindow.Show();
         }
         else
         {
             label_Message_NumberConfirmation.Content = Properties.Resources.message_InvalidCode;
         }
     }
     else
     {
         label_Message_NumberConfirmation.Content = Properties.Resources.message_EnterCode;
     }
 }