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(); }
private void ButtonBack_Click(object sender, EventArgs e) { SocialEventListForm socialEventListForm = new SocialEventListForm(currentUser) { StartPosition = FormStartPosition.Manual, Location = this.Location }; this.Close(); socialEventListForm.Show(); }
private void GoTosocialEventListForm(User currentUser) { SocialEventListForm socialEventListForm = new SocialEventListForm(currentUser) { StartPosition = FormStartPosition.Manual, Location = this.Location }; socialEventListForm.Show(); this.Hide(); }