src/Misc/EFTools/EntityDesign/VisualStudio/Package/ConnectionManager.cs
// <summary>
//     Subscribe to VS events via ModelChangeEventListener's delegates
// </summary>
Subscribe to VS events via ModelChangeEventListener's delegates
Subscribe to VS events via ModelChangeEventListener ' s delegates
private void RegisterModelListenerEvents()
        {
            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 RegisterModelListenerEvents ( ) { 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 ; } }
Subscribe to VS events via ModelChangeEventListener's delegates
Subscribe to VS events via ModelChangeEventListener ' s delegates