Ejemplo n.º 1
0
 [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] //full trust anyway
 protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args)
 {
     if (componentsCreatedEvent != null)
     {
         componentsCreatedEvent(this, args);
     }
 }
Ejemplo n.º 2
0
		protected void ComponentsCreated(Object sender, ToolboxComponentsCreatedEventArgs e)
		{
			foreach (IComponent c in e.Components) {
				if (c == null)
					continue;
				ObjectBrowser.GetTopLevelObjectNode().AddNewObject(c, null);
			}
		}
Ejemplo n.º 3
0
	protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args)
			{
				// TODO
			}
Ejemplo n.º 4
0
 [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")] //full trust anyway
 protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args) {
     if (componentsCreatedEvent != null) {
         componentsCreatedEvent(this, args);
     }
 }
Ejemplo n.º 5
0
		protected virtual void OnComponentsCreated (ToolboxComponentsCreatedEventArgs args)
		{
			if (ComponentsCreated != null)
				this.ComponentsCreated (this, args);
		}
Ejemplo n.º 6
0
 /// <summary>
 /// Raises the OnComponentsCreated event. This
 /// will be called when this <see cref='System.Drawing.Design.ToolboxItem'/> creates a component.
 /// </summary>
 protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args)
 {
     _componentsCreatedEvent?.Invoke(this, args);
 }
Ejemplo n.º 7
0
 protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args)
 {
     // TODO
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// toolboxcomponentscreatedeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this ToolboxComponentsCreatedEventHandler toolboxcomponentscreatedeventhandler, Object sender, ToolboxComponentsCreatedEventArgs e, AsyncCallback callback)
        {
            if(toolboxcomponentscreatedeventhandler == null) throw new ArgumentNullException("toolboxcomponentscreatedeventhandler");

            return toolboxcomponentscreatedeventhandler.BeginInvoke(sender, e, callback, null);
        }
Ejemplo n.º 9
0
 protected virtual void OnComponentsCreated(ToolboxComponentsCreatedEventArgs args)
 {
     throw null;
 }