Exemple #1
0
        private void PerformRegisterAction()
        {
            userRegister = new UserRegister();

            RegistrationResult registrationResult = userRegister.NewUser(UserTextBox.Text,
                                                                         PasswordTextBox.Password,
                                                                         ConfirmPasswordTextBox.Password,
                                                                         NameTextBox.Text,
                                                                         SurnameTextBox.Text);

            MessageBox.Show(registrationResult.Message);

            if (registrationResult.OperationSuccess)
            {
                WindowsManagement.registrationWindow.Hide();
                WindowsManagement.loginWindow.Show();
            }
        }