private void CreateTopicButton_Click(object sender, EventArgs e) { if (CreateTopicTextBox.Text != "") { ctm.CreateTopic(CreateTopicTextBox.Text); } }
private void addTopicButton_Click(object sender, EventArgs e) { if (addTopicTextBox.Text != "" && !ctm.ListTopics().Contains(addTopicTextBox.Text)) { ctm.CreateTopic(addTopicTextBox.Text); JoinTopic(addTopicTextBox.Text); RefreshTopics(); errorTopicExistLabel.Hide(); addTopicTextBox.Text = ""; } else { errorTopicExistLabel.Show(); } }