private void SignUpButton_Click(object sender, RoutedEventArgs e) { string login = LoginTextBox.Text, pass = PasswordTextBox.Text; try { var newuser = new AddingNewUser(allRegisteredUsersList, login, pass); NotebookTextBox.Text = " "; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void SignUp() { string login, pass; EnterLoginInfo(out login, out pass); try { var newuser = new AddingNewUser(allRegisteredUsersList, login, pass); } catch (Exception ex) { Console.WriteLine(ex.Message); } }