public static string GetCommandName(NXTCommandCode nCommand) { switch (nCommand) { case NXTCommandCode.STARTPROGRAM: return("STARTPROGRAM"); case NXTCommandCode.STOPPROGRAM: return("STOPPROGRAM"); case NXTCommandCode.PLAYSOUNDFILE: return("PLAYSOUNDFILE"); case NXTCommandCode.PLAYTONE: return("PLAYTONE"); case NXTCommandCode.SETOUTPUTSTATE: return("SETOUTPUTSTATE"); case NXTCommandCode.SETINPUTMODE: return("SETINPUTMODE"); case NXTCommandCode.GETOUTPUTSTATE: return("GetOutputState"); case NXTCommandCode.GETINPUTVALUES: return("GetInputValues"); case NXTCommandCode.RESETINPUTSCALEDVALUE: return("RESETINPUTSCALEDVALUE"); case NXTCommandCode.MESSAGEWRITE: return("MESSAGEWRITE"); case NXTCommandCode.RESETMOTORPOSITION: return("RESETMOTORPOSITION"); case NXTCommandCode.GETBATTERYLEVEL: return("GetBatteryLevel"); case NXTCommandCode.STOPSOUNDPLAYBACK: return("STOPSOUNDPLAYBACK"); case NXTCommandCode.KEEPALIVE: return("KeepAlive"); case NXTCommandCode.LSGETSTATUS: return("LGGetStatus"); case NXTCommandCode.LSWRITE: return("LSWRITE"); case NXTCommandCode.LSREAD: return("LSRead"); case NXTCommandCode.GETCURRENTPROGRAMNAME: return("GetCurrentProgramName"); case NXTCommandCode.MESSAGEREAD: return("MessageRead"); case NXTCommandCode.VERSION: return("Version"); } return("No Name"); }
public static string GetCommandName(NXTCommandCode nCommand) { switch (nCommand) { case NXTCommandCode.STARTPROGRAM: return "STARTPROGRAM"; case NXTCommandCode.STOPPROGRAM: return "STOPPROGRAM"; case NXTCommandCode.PLAYSOUNDFILE: return "PLAYSOUNDFILE"; case NXTCommandCode.PLAYTONE: return "PLAYTONE"; case NXTCommandCode.SETOUTPUTSTATE: return "SETOUTPUTSTATE"; case NXTCommandCode.SETINPUTMODE: return "SETINPUTMODE"; case NXTCommandCode.GETOUTPUTSTATE: return "GetOutputState"; case NXTCommandCode.GETINPUTVALUES: return "GetInputValues"; case NXTCommandCode.RESETINPUTSCALEDVALUE: return "RESETINPUTSCALEDVALUE"; case NXTCommandCode.MESSAGEWRITE: return "MESSAGEWRITE"; case NXTCommandCode.RESETMOTORPOSITION: return "RESETMOTORPOSITION"; case NXTCommandCode.GETBATTERYLEVEL: return "GetBatteryLevel"; case NXTCommandCode.STOPSOUNDPLAYBACK: return "STOPSOUNDPLAYBACK"; case NXTCommandCode.KEEPALIVE: return "KeepAlive"; case NXTCommandCode.LSGETSTATUS: return "LGGetStatus"; case NXTCommandCode.LSWRITE: return "LSWRITE"; case NXTCommandCode.LSREAD: return "LSRead"; case NXTCommandCode.GETCURRENTPROGRAMNAME: return "GetCurrentProgramName"; case NXTCommandCode.MESSAGEREAD: return "MessageRead"; case NXTCommandCode.VERSION: return "Version"; } return "No Name"; }