public CreateAccount() { playerClient = new ServiceReference.PlayerManagerClient(); newPlayer = new ServiceReference.Player(); code = new ServiceReference.Code(); InitializeComponent(); SetHideForm(); }
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; } }