コード例 #1
0
        protected override void LoadChildren()
        {
            if (analyzedEvent.AddMethod != null)
            {
                this.Children.Add(new AnalyzedEventAccessorTreeNode(analyzedEvent.AddMethod, "add"));
            }

            if (analyzedEvent.RemoveMethod != null)
            {
                this.Children.Add(new AnalyzedEventAccessorTreeNode(analyzedEvent.RemoveMethod, "remove"));
            }

            foreach (var accessor in analyzedEvent.OtherMethods)
            {
                this.Children.Add(new AnalyzedEventAccessorTreeNode(accessor, null));
            }

            if (AnalyzedEventFiredByTreeNode.CanShow(analyzedEvent))
            {
                this.Children.Add(new AnalyzedEventFiredByTreeNode(analyzedEvent));
            }

            if (AnalyzedEventOverridesTreeNode.CanShow(analyzedEvent))
            {
                this.Children.Add(new AnalyzedEventOverridesTreeNode(analyzedEvent));
            }

            if (AnalyzedInterfaceEventImplementedByTreeNode.CanShow(analyzedEvent))
            {
                this.Children.Add(new AnalyzedInterfaceEventImplementedByTreeNode(analyzedEvent));
            }
        }
コード例 #2
0
 protected override void LoadChildren()
 {
     if (AnalyzedEventAccessorsTreeNode.CanShow(analyzedEvent))
     {
         this.Children.Add(new AnalyzedEventAccessorsTreeNode(analyzedEvent));
     }
     if (AnalyzedEventOverridesTreeNode.CanShow(analyzedEvent))
     {
         this.Children.Add(new AnalyzedEventOverridesTreeNode(analyzedEvent));
     }
     if (AnalyzedInterfaceEventImplementedByTreeNode.CanShow(analyzedEvent))
     {
         this.Children.Add(new AnalyzedInterfaceEventImplementedByTreeNode(analyzedEvent));
     }
 }