/// <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); }
/// <summary> /// Sends the command. /// </summary> public void sendCommand() { string[] args = { }; CommandReceivedEventArgs eventArgs = new CommandReceivedEventArgs((int)CommandEnum.CloseCommand, args, "*"); CommandRecievedEvent?.Invoke(this, eventArgs); }
public static void SendCommand(string commandText) => CommandRecievedEvent?.Invoke(commandText);