Ejemplo n.º 1
0
 protected void TopicEditor_TopicSaved(object sender, TopicEditEventArgs e)
 {
     if (e.NameChanged)
     {
         loadTree(e.TopicId);
     }
     TopicEditor.LoadTopic(e.TopicId);
 }
Ejemplo n.º 2
0
        protected void treeMain_SelectedNodeChanged(object sender, EventArgs e)
        {
            TopicEditor.Visible = true;
            int topicid;

            if (int.TryParse(treeMain.SelectedNode.Value, out topicid))
            {
                TopicEditor.LoadTopic(topicid);
            }
        }
Ejemplo n.º 3
0
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     TopicEditor.Visible = true;
     TopicEditor.LoadTopic(0);
 }
Ejemplo n.º 4
0
 protected void TopicEditor_TopicAdded(object sender, TopicEditEventArgs e)
 {
     loadTree(e.TopicId);
     TopicEditor.LoadTopic(e.TopicId);
 }