private void uxAddReview_Click(object sender, EventArgs e) { if (uxAddReviewButton.Enabled == true) { uxReviewForm = new uxDBReviewForm(); uxReviewForm.SubmitEvent += new enableReviewButton(uxDBReviewForm_ButtonEnabled); uxReviewForm.Show(); uxAddReviewButton.Enabled = false; } }
/// <summary> /// Creates an instance of the DBReviewForm. The form allows the user to rate and add a review of /// the movie to the database. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void uxAddReview_Click(object sender, EventArgs e) { if (uxAddReviewButton.Enabled == true) { uxReviewForm = new uxDBReviewForm(); uxReviewForm._enableButtons += new enableButtonsReview(uxDBMenu_ButtonsEnabled); uxReviewForm.Show(); uxAddReviewButton.Enabled = false; uxInsertMoviewButton.Enabled = false; uxSearchButton.Enabled = false; } }