using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace IReaper.FileData{
[Serializable]
public abstract class CourseFileDataCollection:SortableBindingList<CourseFileData>
{
FileDataStatueChangedEventHandler handler;
public CourseFileDataCollection()
{
handler = new FileDataStatueChangedEventHandler(CourseFileData_StatueChange);
CourseFileData.StatueChanged += handler;
}
public void RemoveHook()
{
CourseFileData.StatueChanged -= handler;
}
/// <summary>
/// CourseFileData
/// </summary>
/// <param name="Data"></param>
protected abstract void CourseFileData_StatueChange(CourseFileData Data);
}
}
|