public override string execute(Blackfin bf, string[] args) { if (args[0].ToLower().Equals("y") || args[0].ToLower().Equals("n")) { bool bEnabled = args[0].ToLower().Equals("y"); bf.SetClientConfigEnable(bEnabled); // Resets the IP board, always returns false for an IP connection throw new ConnectionResetException("Client connection mode has been " + ((bEnabled) ? "enabled" : "disabled")); } throw new CommandArgumentException("Invalid argument value"); }