Exemplo n.º 1
0
        void DocumentService_CollectionChanged(object sender, NotifyDocumentCollectionChangedEventArgs e)
        {
            switch (e.Type)
            {
            case NotifyDocumentCollectionType.Clear:
                ClearAll();
                break;

            case NotifyDocumentCollectionType.Add:
                AnalyzerTreeNodeData.HandleAssemblyListChanged(TreeView.Root, Array.Empty <IDsDocument>(), e.Documents);
                break;

            case NotifyDocumentCollectionType.Remove:
                AnalyzerTreeNodeData.HandleAssemblyListChanged(TreeView.Root, e.Documents, Array.Empty <IDsDocument>());
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
        void FileManager_CollectionChanged(object sender, NotifyFileCollectionChangedEventArgs e)
        {
            switch (e.Type)
            {
            case NotifyFileCollectionType.Clear:
                ClearAll();
                break;

            case NotifyFileCollectionType.Add:
                AnalyzerTreeNodeData.HandleAssemblyListChanged(TreeView.Root, Array.Empty <IDnSpyFile>(), e.Files);
                break;

            case NotifyFileCollectionType.Remove:
                AnalyzerTreeNodeData.HandleAssemblyListChanged(TreeView.Root, e.Files, Array.Empty <IDnSpyFile>());
                break;

            default:
                break;
            }
        }