using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Collections;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Drawing;
using IReaper.CourseData;
using IReaper.Category;
namespace IReaper.CourseData{
internal delegate void WebcastSubTreeSelectionChangeEventHandler(CourseCollection collection);
public partial class CourseDataTreeView : TreeView
{
public CourseDataTreeView()
{
InitializeComponent();
}
public CourseDataTreeView(IContainer container)
{
container.Add(this);
InitializeComponent();
}
/// <summary>
/// ,
/// </summary>
/// <param name="e"></param>
protected override void OnAfterSelect(TreeViewEventArgs e)
{
base.OnAfterSelect(e);
TreeNode node = e.Node;
if (node == null)
return;
CourseCollection course = node.Tag as CourseCollection;
Core.CoreData[CoreDataType.CurrentViewedCourses] = course;
}
}
}
|