src/Misc/EFTools/EntityDesign/VisualStudio/Package/ConnectionManager.cs
// <summary>
//     Unsubscribe to VS events via ModelChangeEventListener's delegates
// </summary>
Unsubscribe to VS events via ModelChangeEventListener's delegates
Unsubscribe to VS events via ModelChangeEventListener ' s delegates
private void UnregisterModelListenerEvents()
        {
            var listener = PackageManager.Package.ModelChangeEventListener;
            if (listener != null)
            {
                listener.AfterOpenProject -= OnAfterOpenProject;
                listener.AfterAddFile -= OnAfterOpenProject;
                listener.AfterRemoveFile -= OnAfterRemoveFile;
                listener.AfterRenameFile -= OnAfterRenameFile;
                listener.AfterEntityContainerNameChange -= OnAfterEntityContainerNameChange;
                listener.AfterMetadataArtifactProcessingChange -= OnAfterMetadataArtifactProcessingChange;
                listener.AfterSaveFile -= OnAfterSaveFile;
            }
        }
private void UnregisterModelListenerEvents ( ) { var listener = PackageManager . Package . ModelChangeEventListener ; if ( listener != null ) { listener . AfterOpenProject -= OnAfterOpenProject ; listener . AfterAddFile -= OnAfterOpenProject ; listener . AfterRemoveFile -= OnAfterRemoveFile ; listener . AfterRenameFile -= OnAfterRenameFile ; listener . AfterEntityContainerNameChange -= OnAfterEntityContainerNameChange ; listener . AfterMetadataArtifactProcessingChange -= OnAfterMetadataArtifactProcessingChange ; listener . AfterSaveFile -= OnAfterSaveFile ; } }
Unsubscribe to VS events via ModelChangeEventListener's delegates
Unsubscribe to VS events via ModelChangeEventListener ' s delegates