using System;
using System.Collections.Generic;
using System.Text;
using IReaper.Category;
using System.Windows.Forms;
using IReaper.CourseData;
namespace IReaper.Command{
class RefershTreeNodeCommand:CommandBase
{
#region ICommand
public override void CommandBody(object sender, params object[] paras)
{
TreeNode allNode = WebcastRootNodeBuilder.GetAllDataNode();
TreeNode completedNode = WebcastRootNodeBuilder.GetCompletedDataNode();
TreeNode newNode = WebcastRootNodeBuilder.GetNewDataNode();
TreeNode lastNode = WebcastRootNodeBuilder.GetLatestDataNode();
((Dictionary<string,TreeNode>)Core.CoreData[CoreDataType.AllCourseTreeNode])["All"] = allNode;
((Dictionary<string, TreeNode>)Core.CoreData[CoreDataType.AllCourseTreeNode])["Completed"] = completedNode;
((Dictionary<string, TreeNode>)Core.CoreData[CoreDataType.AllCourseTreeNode])["New"] = newNode;
((Dictionary<string, TreeNode>)Core.CoreData[CoreDataType.AllCourseTreeNode])["Last"] = lastNode;
}
public override CommandFamily Family
{
get { return CommandFamily.Command_RefreshTreeNode; }
}
#endregion
}
}
|