protected override void Dispose(bool disposing)
{
if (disposing)
{
// Prevents memory leaks and also spurious continued locking of the file.
var picBox = this.Control as PictureBox;
if (picBox != null && picBox.Image != null)
{
picBox.Image.Dispose();
picBox.Image = null;
}
}
base.Dispose(disposing);
}
// // Overhaul Aug 05: want all Window backgrounds in Detail controls.