/// <summary> /// When the button is pressed go to the next risk and mark the risk as accepted by the reviewer. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void editRiskBaseFormButtonReviewAccept_Click(object sender, EventArgs e) { //Update database. this.queriesTableAdapter1.Set_Risk_In_Project_Reviewed(this.projectID, this.riskID, ARA_Globals.UserID, string.Empty); //Trigger event. ARA_Events.triggerRiskInProjectReviewedEvent(this.projectID, this.riskID, true); setNextRisk(1); setFormData(); this.AutoScrollPosition = new Point(0, 0); }
/// <summary> /// When this button is pressed go to the next risk and mark the risk as declined. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void editRiskBaseFormButtonReviewDecline_Click(object sender, EventArgs e) { ARA_InputDialogPopupForm testDialog = new ARA_InputDialogPopupForm("Give comment", "Leave a comment why this risk is declined."); // Show testDialog as a modal dialog and determine if DialogResult = OK. if (testDialog.ShowDialog(this) == DialogResult.OK) { // Read the contents of testDialog's TextBox. this.queriesTableAdapter1.Set_Risk_In_Project_Reviewed(this.projectID, this.riskID, -1, "" + testDialog.inputDialogTextboxInput.Text); //Trigger event. ARA_Events.triggerRiskInProjectReviewedEvent(this.projectID, this.riskID, false); setNextRisk(1); setFormData(); this.AutoScrollPosition = new Point(0, 0); } else { } testDialog.Dispose(); }