Пример #1
0
        /// <summary>
        /// This raises the <see cref="ItemCheckStateChanged"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnItemCheckStateChanged(ItemCheckStateEventArgs e)
        {
            var handler = ItemCheckStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
        /// <summary>
        /// This raises the <see cref="ItemCheckStateChanged"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnItemCheckStateChanged(ItemCheckStateEventArgs e)
        {
            var handler = ItemCheckStateChanged;

            if(handler != null)
                handler(this, e);
        }
 /// <summary>
 /// When the check state of a checkbox in the list changes, this event is raised
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event arguments</param>
 private void cblDemo_ItemCheckStateChanged(object sender, ItemCheckStateEventArgs e)
 {
     txtValue.Text = String.Format("Index = {0}, Current State = {1}", e.Index, e.CheckState);
 }