Example #1
0
 private void btnDone_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "")
     {
         listTopic.AddTopic(new Topic(textBox1.Text));
         this.Hide();
         topicModifier.Show();
     }
 }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            string contentText = rtbContentText.Text;
            string problemText = rtbProblem.Text;
            string topicText   = cbTopic.SelectedItem.ToString();

            Topic topic = ListOfTopic.FindTopic(topicText);

            topic.AddContent(new Content(contentText, problemText));

            this.Hide();
            topicModSender.Show();
        }
Example #3
0
 private void btnTopic_Click(object sender, EventArgs e)
 {
     TopicModifier = new TopicModifier();
     this.Hide();
     TopicModifier.Show();
 }
Example #4
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     topicModifier.Show();
     this.Hide();
 }