예제 #1
0
 [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] //full trust anyway
 protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args)
 {
     if (componentsCreatingEvent != null)
     {
         componentsCreatingEvent(this, args);
     }
 }
예제 #2
0
	protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args)
			{
				// TODO
			}
예제 #3
0
 [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] //full trust anyway 
 protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args) {
     if (componentsCreatingEvent != null) {
         componentsCreatingEvent(this, args);
     }
 }
예제 #4
0
		protected virtual void OnComponentsCreating (ToolboxComponentsCreatingEventArgs args)
		{
			if (ComponentsCreating != null)
				this.ComponentsCreating (this, args);
		}
예제 #5
0
 /// <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);
 }
예제 #6
0
 protected virtual void OnComponentsCreating(ToolboxComponentsCreatingEventArgs args)
 {
     // TODO
 }
예제 #7
0
 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);
        }