public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     if (newHandler != null)
     {
         _UIHandler -= newHandler;
     }
 }
 public void AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     if (newHandler != null)
     {
         _UIHandler += newHandler;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Remove a handler
 /// </summary>
 /// <param name="newHandler"></param>
 public void RemovePropertyValueUIHandler(
     PropertyValueUIHandler newHandler)
 {
     if (newHandler != null)
     {
         //remove a handler
         _UIHandler -= newHandler;
     }
 }
Beispiel #4
0
 /// <summary>
 /// Add a handler
 /// </summary>
 /// <param name="newHandler"></param>
 public void AddPropertyValueUIHandler(
     PropertyValueUIHandler newHandler)
 {
     if (newHandler != null)
     {
         //combine the handler with the current delegates
         _UIHandler += newHandler;
     }
 }
Beispiel #5
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// propertyvalueuihandler.BeginInvoke(context, propDesc, valueUIItemList, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this PropertyValueUIHandler propertyvalueuihandler, System.ComponentModel.ITypeDescriptorContext context, System.ComponentModel.PropertyDescriptor propDesc, System.Collections.ArrayList valueUIItemList, AsyncCallback callback)
        {
            if (propertyvalueuihandler == null)
            {
                throw new ArgumentNullException("propertyvalueuihandler");
            }

            return(propertyvalueuihandler.BeginInvoke(context, propDesc, valueUIItemList, callback, null));
        }
        /// <summary>
        /// Removes a PropertyValueUIHandler to this service.  When GetPropertyUIValueItems is
        /// called, each handler added to this service will be called and given the opportunity
        /// to add an icon to the specified property.
        /// </summary>
        /// <param name="newHandler"></param>
        void IPropertyValueUIService.RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
        {
            if (newHandler == null)
            {
                throw new ArgumentNullException("newHandler");
            }

            valueUIHandler = (PropertyValueUIHandler)Delegate.Remove(valueUIHandler, newHandler);
        }
 /// <summary>
 /// Adds a PropertyValueUIHandler to this service.  When GetPropertyUIValueItems is
 /// called, each handler added to this service will be called and given the opportunity
 /// to add an icon to the specified property.
 /// </summary>
 /// <param name="newHandler"></param>
 void IPropertyValueUIService.AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     if (newHandler == null)
     {
         throw new ArgumentNullException("newHandler");
     }
     lock (this)
        valueUIHandler = (PropertyValueUIHandler)Delegate.Combine(valueUIHandler, newHandler);
 }
 /// <summary>
 /// Adds a PropertyValueUIHandler to this service.  When GetPropertyUIValueItems is
 /// called, each handler added to this service will be called and given the opportunity
 /// to add an icon to the specified property.
 /// </summary>
 /// <param name="newHandler"></param>
 void IPropertyValueUIService.AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     if (newHandler == null)
     {
         throw new ArgumentNullException("newHandler");
     }
     lock (this)
         valueUIHandler = (PropertyValueUIHandler)Delegate.Combine(valueUIHandler, newHandler);
 }
 public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     propertyValueUIHandler -= newHandler;
 }
 public void AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     propertyValueUIHandler += newHandler;
 }
      /// <summary>
      /// Removes a PropertyValueUIHandler to this service.  When GetPropertyUIValueItems is
      /// called, each handler added to this service will be called and given the opportunity
      /// to add an icon to the specified property.
      /// </summary>
      /// <param name="newHandler"></param>
      void IPropertyValueUIService.RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
      {
          if (newHandler == null)
          {
              throw new ArgumentNullException("newHandler");
          }

         valueUIHandler = (PropertyValueUIHandler)Delegate.Remove(valueUIHandler, newHandler);
      }
		public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
		{
			propertyValueUIHandler -= newHandler;
		}
		public void AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
		{
			propertyValueUIHandler += newHandler;
		}
 public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     this.propertyValueUIHandler = (PropertyValueUIHandler)Delegate.Remove(this.propertyValueUIHandler, newHandler);
 }
Beispiel #15
0
 void IPropertyValueUIService.RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     QueryPropertyUIValueItems -= newHandler;
 }
 public void AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     this.propertyValueUIHandler = (PropertyValueUIHandler)Delegate.Combine(this.propertyValueUIHandler, newHandler);
 }
Beispiel #17
0
 /// <summary>
 /// The method or operation is not implemented.
 /// </summary>
 /// <param name="newHandler"></param>
 public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 public void RemovePropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     handler -= newHandler ?? throw new ArgumentNullException("newHandler");
 }
 void IPropertyValueUIService.RemovePropertyValueUIHandler( PropertyValueUIHandler newHandler )
 {
     QueryPropertyUIValueItems -= newHandler ;
 }
 void IPropertyValueUIService.AddPropertyValueUIHandler( PropertyValueUIHandler newHandler )
 {
     QueryPropertyUIValueItems += newHandler ;
 }
Beispiel #21
0
 void IPropertyValueUIService.AddPropertyValueUIHandler(PropertyValueUIHandler newHandler)
 {
     QueryPropertyUIValueItems += newHandler;
 }