Example #1
0
        /// <summary>
        /// Sends the command.
        /// </summary>
        public void sendRemoveCommand(string handlerToClose)
        {
            string[] args = { };
            CommandReceivedEventArgs eventArgs =
                new CommandReceivedEventArgs((int)CommandEnum.RemoveHandler, args, handlerToClose);

            CommandRecievedEvent?.Invoke(this, eventArgs);
        }
Example #2
0
        /// <summary>
        /// Sends the command.
        /// </summary>
        public void sendCommand()
        {
            string[] args = { };
            CommandReceivedEventArgs eventArgs =
                new CommandReceivedEventArgs((int)CommandEnum.CloseCommand, args, "*");

            CommandRecievedEvent?.Invoke(this, eventArgs);
        }
Example #3
0
 public static void SendCommand(string commandText) => CommandRecievedEvent?.Invoke(commandText);