示例#1
0
 private void CreateTopicButton_Click(object sender, EventArgs e)
 {
     if (CreateTopicTextBox.Text != "")
     {
         ctm.CreateTopic(CreateTopicTextBox.Text);
     }
 }
示例#2
0
        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();
            }
        }