Exemple #1
0
        private void btnCompleteRegister_Click(object sender, RoutedEventArgs e)
        {
            Tuple <bool, string> registerResult = MainFunctions.tryToRegister(this);

            if (registerResult.Item1 == false)
            {
                MessageBox.Show(registerResult.Item2);
                return;
            }

            MessageBox.Show("You have successfully registered. Now you will be automatically logged-in");

            helper_methods.doLogin(this.txtUserName_Register.Text);
        }
Exemple #2
0
        private void btnCompleteRegister_Click(object sender, RoutedEventArgs e)
        {
            Tuple <bool, string> registerResult = MainFunctions.tryToRegister(this);

            if (registerResult.Item1 == false)
            {
                MessageBox.Show(registerResult.Item2);
            }

            if (registerResult.Item1)
            {
                MessageBox.Show("You have successfully registered. Now you will be automatically logged-in");
            }
        }