protected internal override void PluginRemoved()
{
base.PluginRemoved();
if (this.PluginOwner.Controls.Contains(this.Template))
{
this.PluginOwner.Controls.Remove(this.Template);
}
if (this.PluginOwner.LazyItems.Contains(this.Template))
{
this.PluginOwner.LazyItems.Remove(this.Template);
}
if (this.Component.Count > 0)
{
if (this.PluginOwner.Controls.Contains(this.Component[0]))
{
this.PluginOwner.Controls.Remove(this.Component[0]);
}
if (this.PluginOwner.LazyItems.Contains(this.Component[0]))
{
this.PluginOwner.LazyItems.Remove(this.Component[0]);
}
}
}