private void ConfirmButton_Click(object sender, EventArgs e) { //this.Hide(); //#might need to change to this.close() or something //but it works somehow if (ForumManager.NewProblem(problemsNameTextBox.Text, (Subjects.Subject)SubjectComboBox.SelectedItem, descriptionTextBox.Text, forumForm.forum)) { this.Close(); //#without it it also works } else { this.Visible = true; System.Windows.Forms.MessageBox.Show(ForumManager.error.Message()); } //forumForm.AddNewProblem(problemsNameTextBox.Text, SubjectComboBox.Text, descriptionTextBox.Text); //CommentsManager.AddNewFile(problemsNameTextBox.Text + ".txt"); }
public bool TakeBackUpvote() { return(ForumManager.TakeBackUpvoteProblem(this)); }
public bool Upvote() { return(ForumManager.UpvoteProblem(this)); }