Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sends the command.
        /// </summary>
        public void sendCommand()
        {
            string[] args = { };
            CommandReceivedEventArgs eventArgs =
                new CommandReceivedEventArgs((int)CommandEnum.CloseCommand, args, "*");

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