protected virtual void OnNodeEnabledChanged(NodeEnabledChangedEventArgs e) { if (!_externallySet) { EnabledChanged?.Invoke(this, e); } }
private void NodeEnabledChanged(object sender, EventArgs e) { NodeEnabledChangedEventArgs nodeEnabledChangedEventArgs = new NodeEnabledChangedEventArgs { NodeEnabled = chkEnabled.Checked }; OnNodeEnabledChanged(nodeEnabledChangedEventArgs); }