/// <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; } }
void CheckBox_CheckStateChanged(object sender, EventArgs e) { CheckStateChanged?.Invoke(sender, e); }
/// <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); }
private void OnCheckStateChanged(int index) { CheckStateChanged?.Invoke(this, new CheckeBoxEventArgs(index)); }
/// <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); }