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);
            }
        }
 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);
     }
 }