void ReleaseDesignerOutlets() { if (Delete != null) { Delete.Dispose(); Delete = null; } if (Done != null) { Done.Dispose(); Done = null; } if (Name != null) { Name.Dispose(); Name = null; } if (Notes != null) { Notes.Dispose(); Notes = null; } if (Save != null) { Save.Dispose(); Save = null; } }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { // TODO: dispose managed state (managed objects) msOutput?.Dispose(); Done?.Dispose(); CanWrite?.Dispose(); } // TODO: free unmanaged resources (unmanaged objects) and override finalizer // TODO: set large fields to null array = null; disposedValue = true; } }