示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }