protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
components = null;
}
// free graphics resources
if (bordersPen != null)
{
bordersPen.Dispose();
bordersPen = null;
}
if (backgroundBrush != null)
{
backgroundBrush.Dispose();
backgroundBrush = null;
}
}
base.Dispose(disposing);
}