コード例 #1
0
        private void FireImportChanged(string importPath, ImportChangeKind kind)
        {
            _foregroundDispatcher.AssertForegroundThread();

            var handler = Changed;

            if (handler != null && _importTrackerCache.TryGetValue(importPath, out var importTracker))
            {
                var args = new ImportChangedEventArgs(importPath, kind, importTracker.AssociatedDocuments);
                handler(this, args);
            }
        }
コード例 #2
0
 public ImportChangedEventArgs(string filePath, ImportChangeKind kind, IEnumerable <string> associatedDocuments)
 {
     FilePath            = filePath;
     Kind                = kind;
     AssociatedDocuments = associatedDocuments;
 }