protected void OnCommandStateChange(long command, ref bool enable)
        {
            EventHandler <CommandStateChangeEventArgs> h = CommandStateChange;
            CommandStateChangeEventArgs args             = new CommandStateChangeEventArgs(command, ref enable);

            if (null != h)
            {
                h(this, args);
            }
        }
Example #2
0
 protected void OnCommandStateChange(long command, ref bool enable)
 {
     EventHandler<CommandStateChangeEventArgs> h = CommandStateChange;
     CommandStateChangeEventArgs args = new CommandStateChangeEventArgs(command, ref enable);
     if (null != h)
     {
         h(this, args);
     }
 }