Beispiel #1
0
        private void OnDispatch(EventHandler <ComponentEventArgs> dispatched, VB.VBComponent component)
        {
            var handler = dispatched;

            if (handler != null)
            {
                handler.Invoke(this, new ComponentEventArgs(Parent.ProjectId, Parent, new VBComponent(component)));
            }
        }
Beispiel #2
0
        private void OnComponentRenamed(VB.VBComponent vbComponent, string oldName)
        {
            var handler = ComponentRenamed;

            if (handler != null)
            {
                handler.Invoke(this, new ComponentRenamedEventArgs(Parent.ProjectId, Parent, new VBComponent(vbComponent), oldName));
            }
        }
Beispiel #3
0
        private void OnDispatch(EventHandler <ComponentEventArgs> dispatched, VB.VBComponent component)
        {
            var vbComponent = new VBComponent(component);
            var handler     = dispatched;

            if (handler == null)
            {
                vbComponent.Dispose();
                return;
            }
            handler?.Invoke(this, new ComponentEventArgs(Parent.ProjectId, Parent, vbComponent));
        }
Beispiel #4
0
        private void OnComponentRenamed(VB.VBComponent vbComponent, string oldName)
        {
            var component = new VBComponent(vbComponent);
            var handler   = ComponentRenamed;

            if (handler == null)
            {
                component.Dispose();
                return;
            }
            handler.Invoke(this, new ComponentRenamedEventArgs(Parent.ProjectId, Parent, component, oldName));
        }
Beispiel #5
0
 private void OnComponentReloaded(VB.VBComponent vbComponent)
 {
     OnDispatch(ComponentReloaded, vbComponent);
 }
Beispiel #6
0
 private void OnComponentActivated(VB.VBComponent vbComponent)
 {
     OnDispatch(ComponentActivated, vbComponent);
 }