private void SignUpBtn_Click(object sender, EventArgs e)
        {
            if (NameInput.Text == "")
            {
                Session.ErrProv.SetError(NameInput, "Name cannot be empty");
            }
            if (EmailInput.Text == "")
            {
                Session.ErrProv.SetError(EmailInput, "Email cannot be empty");
            }
            if (PasswordInput.Text == "")
            {
                Session.ErrProv.SetError(PasswordInput, "Password cannot be empty");
            }

            if (!nameError && !emailError && !pwdError)
            {
                bool isSuccessful = DBO.signUp(NameInput.Text, EmailInput.Text, PasswordInput.Text);
                if (isSuccessful)
                {
                    MessageBox.Show("Sign up successful. Please sign in.", "Success");
                    SignInScreen SIS = new SignInScreen();
                    SIS.Show();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Sign up failed. Please retry.", "Error");
                }
            }
        }
        private void AltSignInBtn_Click(object sender, EventArgs e)
        {
            SignInScreen SIS = new SignInScreen();

            SIS.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        private void SplashScreen_Load(object sender, EventArgs e)
        {
            SignInScreen SIS = new SignInScreen();

            SIS.Show();

            this.WindowState = FormWindowState.Minimized;
        }
        private void signOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DBO.signOut();

            SignInScreen SIS = new SignInScreen();

            SIS.Show();
            this.Close();
        }