Ejemplo n.º 1
0
        private void ButtonVerify_Click(object sender, EventArgs e)
        {
            IVerificationMethod iVerificationMethod = (IVerificationMethod)ComboVerificationMethod.SelectedItem;
            bool result = iVerificationMethod.Verify();

            if (result == true)
            {
                if (currentUser.GetType() == typeof(Customer))
                {
                    Organizer upgradedCustomer = UserLogic.UpgradeCustomer((Customer)currentUser);

                    MessageBox.Show("Verification Success!");

                    LoginForm loginForm = new LoginForm()
                    {
                        StartPosition = FormStartPosition.Manual,
                        Location      = this.Location
                    };
                    loginForm.Show();
                }
            }
            else
            {
                MessageBox.Show("Verification Failed.");
                SocialEventListForm socialEventListForm = new SocialEventListForm(currentUser)
                {
                    StartPosition = FormStartPosition.Manual,
                    Location      = this.Location
                };
                socialEventListForm.Show();
            }
            this.Close();
        }
Ejemplo n.º 2
0
        private void ButtonBack_Click(object sender, EventArgs e)
        {
            SocialEventListForm socialEventListForm = new SocialEventListForm(currentUser)
            {
                StartPosition = FormStartPosition.Manual,
                Location      = this.Location
            };

            this.Close();
            socialEventListForm.Show();
        }
Ejemplo n.º 3
0
        private void GoTosocialEventListForm(User currentUser)
        {
            SocialEventListForm socialEventListForm = new SocialEventListForm(currentUser)
            {
                StartPosition = FormStartPosition.Manual,
                Location      = this.Location
            };

            socialEventListForm.Show();
            this.Hide();
        }