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

            OnNodeEnabledChanged(nodeEnabledChangedEventArgs);
        }