[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] //full trust anyway protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args) { if (componentsCreatingEvent != null) { componentsCreatingEvent(this, args); } }
protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args) { // TODO }
protected virtual void OnComponentsCreating (ToolboxComponentsCreatingEventArgs args) { if (ComponentsCreating != null) this.ComponentsCreating (this, args); }
/// <summary> /// Raises the OnCreateComponentsInvoked event. This /// will be called before this <see cref='System.Drawing.Design.ToolboxItem'/> creates a component. /// </summary> protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args) { _componentsCreatingEvent?.Invoke(this, args); }
protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args) { throw null; }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// toolboxcomponentscreatingeventhandler.BeginInvoke(sender, e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this ToolboxComponentsCreatingEventHandler toolboxcomponentscreatingeventhandler, Object sender, ToolboxComponentsCreatingEventArgs e, AsyncCallback callback) { if(toolboxcomponentscreatingeventhandler == null) throw new ArgumentNullException("toolboxcomponentscreatingeventhandler"); return toolboxcomponentscreatingeventhandler.BeginInvoke(sender, e, callback, null); }