protected override void Dispose(bool disposing) { if (!isDisposed) { if (disposing) { application?.DisposeChildInstances(); } base.Dispose(disposing); } }