protected override void Dispose(bool disposing) { if (isDisposed) return; if (disposing) { main.Close(); } isDisposed = true; }