示例#1
0
        private async void ReloadTopic(object sender, LoadTopicEventArgs e)
        {
            panelTopic.Controls.Clear();
            List <UcTopic> listUcTopics = await ObjManagerTopic.ListUcTopic(e.UcTopic.RubricId);

            listUcTopics.Reverse();
            listUcTopics.Add(ObjManagerTopic.TopicHeader());
            foreach (UcTopic UCTopic in listUcTopics)
            {
                panelTopic.Controls.Add(UCTopic);
            }
        }
示例#2
0
 /// <summary>
 /// Use the tab creation method to display topics discussions
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Topic_Click(object sender, LoadTopicEventArgs e)
 {
     ObjManagerTopic.TopicClick -= Topic_Click;
     MakeTabTopicResponse(e.UcTopic);
     ObjManagerTopic.TopicClick += Topic_Click;
 }