Exemplo n.º 1
0
 public ShowContent(Content content, string fromtopic, ShowTopic fromShowTopicForm)
 {
     InitializeComponent();
     topic              = fromtopic;
     this.content       = content;
     this.showTopicForm = fromShowTopicForm;
 }
Exemplo n.º 2
0
        public void Update(Content content, string fromtopic, ShowTopic fromShowTopicForm)
        {
            topic              = fromtopic;
            this.content       = content;
            this.showTopicForm = fromShowTopicForm;

            lbDate.Text     = content.DateTime.ToShortDateString();
            lbProblem.Text  = content.Problem;
            rtbContent.Text = content.ContentText;
            lbTopic.Text    = topic;
        }
Exemplo n.º 3
0
 private void btnView_Click(object sender, EventArgs e)
 {
     if (lBxTOpic.SelectedItem == null)
     {
         return;
     }
     if (showTopicForm == null)
     {
         showTopicForm = new ShowTopic(lBxTOpic.SelectedItem.ToString(), this);
     }
     else
     {
         showTopicForm.Update(lBxTOpic.SelectedItem.ToString(), this);
     }
     this.Hide();
     showTopicForm.Show();
 }