示例#1
0
        public void RaiseSelectedValueChangedEvent(object oldValue, object newValue)
        {
            OldNewEventHandler <object> eventHandler = this.SelectedValueChanged;

            if (eventHandler != null)
            {
                this.SelectedValueChanged(this, new OldNewEventArgs <object>(oldValue, newValue));
            }
        }
        /// <summary>
        /// Invokes the 'ImageSizeChanged' event handler.
        /// </summary>
        /// <param name="e">Event arguments.</param>
        protected virtual void OnImageSizeChanged(OldNewEventArgs <ImageSize> e)
        {
            OldNewEventHandler <ImageSize> handler = this.ImageSizeChanged;

            if (handler != null)
            {
                this.ImageSizeChanged(this, e);
            }
        }