Пример #1
0
        private void OnCheckedStateChanged()
        {
            if (Checked)
            {
                _imgCheck.Pixbuf = CheckedImage;
            }
            else
            {
                _imgCheck.Pixbuf = UncheckedImage;
            }

            CheckedStateChanged?.Invoke(this, new EventArgs());
        }
Пример #2
0
 /// <summary>Called when <see cref="M:CheckedState"/> property value changes.</summary>
 protected virtual void OnCheckedStateChanged()
 {
     CheckedStateChanged?.Invoke(this, EventArgs.Empty);
     ListBox?.NotifyItemCheckedChanged(this);
 }
Пример #3
0
 public virtual void OnCheckStateChanged(EventArgs e)
 {
     CheckedStateChanged?.Invoke(this, e);
 }