コード例 #1
0
 void VB._dispReferences_Events.ItemAdded(VB.Reference reference)
 {
     using (var adding = new Reference(reference))
     {
         ItemAdded?.Invoke(this, new ReferenceEventArgs(new ReferenceInfo(adding), adding.Type));
     }
 }
コード例 #2
0
 void VB._dispReferences_Events.ItemRemoved(VB.Reference reference)
 {
     using (var removing = new Reference(reference))
     {
         ItemRemoved?.Invoke(this, new ReferenceEventArgs(new ReferenceInfo(removing), removing.Type));
     }
 }
コード例 #3
0
        void VB._dispReferencesEvents.ItemAdded(VB.Reference Reference)
        {
            var referenceWrapper = new Reference(Reference);
            var handler          = ItemAdded;

            if (handler == null)
            {
                referenceWrapper.Dispose();
                return;
            }
            handler.Invoke(this, new ReferenceEventArgs(referenceWrapper));
        }