protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
重载父类Dispose方法,这样在子类释放时,先释放子类资源,然后调用父类的释放函数释放父类资源
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
重载父类Dispose方法,这样在子类释放时,先释放子类资源,然后调用父类的释放函数释放父类资源