Exemplo n.º 1
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);
            }
        }
Exemplo n.º 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);
     }
 }