示例#1
0
 /// <summary>
 /// Raises IconChanged event of the collection.
 /// </summary>
 /// <param name="item">Item whose icon has been changed.</param>
 /// <param name="view">The view in which icon has been changed.</param>
 private void OnIconChanged(IListItem item, View view)
 {
     if (IconChanged != null)
     {
         IconChangedEventArgs args = new IconChangedEventArgs(item, view);
         IconChanged(this, args);
     }
 }
示例#2
0
 /// <summary>
 /// Raises IconChanged event of the item.
 /// </summary>
 /// <param name="imageListType">Type of image list of the changed icon.</param>
 protected virtual void OnIconChanged(View view)
 {
     if (IconChanged != null)
     {
         IconChangedEventArgs args = new IconChangedEventArgs(this, view);
         IconChanged(this, args);
     }
 }
示例#3
0
        /// <summary>
        /// Internal handler of the IconChanged event of all items of the collection. This
        /// method re-raises item's events as collection event.
        /// </summary>
        private void IconChangedInternal(Object sender, IconChangedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            OnIconChanged(e.Item, e.View);
        }