/// <summary> /// Controls the Find Bug button. User must be TesterType 2 and Logged in to access this feature. /// isLoggedIn determines this. /// </summary> private void FindBugButton_Click(object sender, EventArgs e) { if (TesterType == 1) { MessageBox.Show("You cannot view bugs as a Tester."); } else if (TesterType == 2) { if (isLoggedIn == true) { Login loginForm = new Login(this); TesterDeveloperViewBug developerViewBug = new TesterDeveloperViewBug(this, LoggedInAsLabel.Text); developerViewBug.Show(); } else { MessageBox.Show("Please login to access."); } } else { MessageBox.Show("Please select your role first!"); } }
private void BugDetails_FormClosing(object sender, FormClosingEventArgs e) { ViewBug.Show(); }