Ejemplo n.º 1
0
        /// <summary>
        /// Raises the CheckStateChanged event.
        /// </summary>
        /// <param name="e">An EventArgs containing the event data.</param>
        protected virtual void OnCheckStateChanged(EventArgs e)
        {
            // Update the checked state that is drawn
            _drawCheckBox.CheckState = _checkState;

            CheckStateChanged?.Invoke(this, e);

            // If there is a command associated then update with new state
            if (KryptonCommand != null)
            {
                KryptonCommand.CheckState = CheckState;
            }
        }
Ejemplo n.º 2
0
 void CheckBox_CheckStateChanged(object sender, EventArgs e)
 {
     CheckStateChanged?.Invoke(sender, e);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises the CheckStateChanged event.
 /// </summary>
 /// <param name="e">An EventArgs that contains the event data.</param>
 protected virtual void OnCheckStateChanged(EventArgs e)
 {
     CheckStateChanged?.Invoke(this, e);
 }
Ejemplo n.º 4
0
 private void OnCheckStateChanged(int index)
 {
     CheckStateChanged?.Invoke(this, new CheckeBoxEventArgs(index));
 }
Ejemplo n.º 5
0
 /// <summary>Called when the check state changes for the group box</summary>
 private void HandleCheckedChanged(object sender = null, EventArgs args = null)
 {
     Enabled = Checked;
     CheckedChanged?.Invoke(this, EventArgs.Empty);
     CheckStateChanged?.Invoke(this, EventArgs.Empty);
 }