private void ConfirmReview_Click(object sender, EventArgs e) { Play plays = new Play(); if (ReviewTextBox.Text != "") { plays.addReview("User1", ReviewTextBox.Text, comboBox1.Text); ReviewTextBox.Clear(); } if (ReviewTextBox.Text == "") { MessageBox.Show("The textbox can't be left empty for a review"); } }
private void ConfirmReview_Click(object sender, EventArgs e) { Reviews review = new Reviews(); Play plays = new Play(); if (ReviewTextBox.Text != "") { if (Account.LoginUsername != "" && Account.LoginUsername != null) { review.addReview(Account.LoginUsername, ReviewTextBox.Text, comboBox1.Text); ReviewTextBox.Clear(); } else { MessageBox.Show("Please Login to Continue"); } } if (ReviewTextBox.Text == "") { MessageBox.Show("The textbox can't be left empty for a review"); } }