protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Shut down the form and destroy the object. /// </summary> public void Deactivate() { myForm.Close(); myForm.Dispose(); myForm = null; }