예제 #1
0
 private async void Btn_Registration_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         WebserviceAPI.Registrate(FirstNameInput.Text, LastNameInput.Text, UsernameInput.Text, PasswordInput.Password, StatusMessageInput.Text);
         await this.Dispatcher.Invoke(async() =>
         {
             MainChatWindow mainChatWindow = new MainChatWindow();
             mainChatWindow.Show();
             this.Close();
         });
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }