/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// propertyvalueuiiteminvokehandler.BeginInvoke(context, descriptor, invokedItem, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this PropertyValueUIItemInvokeHandler propertyvalueuiiteminvokehandler, System.ComponentModel.ITypeDescriptorContext context, System.ComponentModel.PropertyDescriptor descriptor, PropertyValueUIItem invokedItem, AsyncCallback callback) { if (propertyvalueuiiteminvokehandler == null) { throw new ArgumentNullException("propertyvalueuiiteminvokehandler"); } return(propertyvalueuiiteminvokehandler.BeginInvoke(context, descriptor, invokedItem, callback, null)); }
/// <include file='doc\PropertyValueUIItem.uex' path='docs/doc[@for="PropertyValueUIItem.PropertyValueUIItem"]/*' /> /// <devdoc> /// <para>Initiailzes a new instance of the <see cref='System.Drawing.Design.PropertyValueUIItem'/> class.</para> /// </devdoc> public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip){ this.itemImage = uiItemImage; this.handler = handler; if (itemImage == null) { throw new ArgumentNullException("uiItemImage"); } if (handler == null) { throw new ArgumentNullException("handler"); } this.tooltip = tooltip; }
/// <include file='doc\PropertyValueUIItem.uex' path='docs/doc[@for="PropertyValueUIItem.PropertyValueUIItem"]/*' /> /// <devdoc> /// <para>Initiailzes a new instance of the <see cref='System.Drawing.Design.PropertyValueUIItem'/> class.</para> /// </devdoc> public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip){ this.itemImage = uiItemImage; this.handler = handler; if (itemImage == null) { throw new ArgumentNullException(nameof(uiItemImage)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } this.tooltip = tooltip; }
public PropertyValueUIItem(System.Drawing.Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { this.itemImage = uiItemImage; this.handler = handler; if (this.itemImage == null) { throw new ArgumentNullException("uiItemImage"); } if (handler == null) { throw new ArgumentNullException("handler"); } this.tooltip = tooltip; }
public void PropertyValueUIItem_Ctor_Image_PropertyValueUIItemInvokeHandler_String(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { var item = new PropertyValueUIItem(uiItemImage, handler, tooltip); Assert.Same(uiItemImage, item.Image); Assert.Same(handler, item.InvokeHandler); Assert.Same(tooltip, item.ToolTip); }
/// <summary>Constructor that accepts the necessary information to display this item.</summary> /// <param name="uiItemImage"><see cref="System.Drawing.Image"/> representing the 8 x 8 icon to display.</param> /// <param name="handler">The <see cref="System.Drawing.Design.PropertyValueUIItemInvokeHandler"/> to invoke when the item is double clicked.</param> /// <param name="tooltip">The ToolTip to display for this item.</param> public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { Image = uiItemImage ?? throw new ArgumentNullException(nameof(uiItemImage)); InvokeHandler = handler ?? throw new ArgumentNullException(nameof(handler)); ToolTip = tooltip; }
public LocalUIItem(Image img, PropertyValueUIItemInvokeHandler handler, string itemName) : base(img, handler, itemName) { this.itemName = itemName; }
public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { image = uiItemImage; this.handler = handler; this.tooltip = tooltip; }
// Constructors public PropertyValueUIItem(System.Drawing.Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { }
public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { throw null; }
public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip) { Image = uiItemImage.OrThrowIfNull(); InvokeHandler = handler.OrThrowIfNull(); ToolTip = tooltip; }