Пример #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)));
            }
        }
Пример #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));
            }
        }
Пример #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));
        }
Пример #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));
        }
Пример #5
0
 private void OnComponentReloaded(VB.VBComponent vbComponent)
 {
     OnDispatch(ComponentReloaded, vbComponent);
 }
Пример #6
0
 private void OnComponentActivated(VB.VBComponent vbComponent)
 {
     OnDispatch(ComponentActivated, vbComponent);
 }