示例#1
0
 private void ParseCommandType(UInt16 cmdTypeRaw,
                               out RRACCommand cmdType,
                               out string cmdTypeStr)
 {
     if (knownCommands.ContainsKey(cmdTypeRaw))
     {
         cmdType    = knownCommands[cmdTypeRaw];
         cmdTypeStr = String.Format("RRAC {0}",
                                    cmdType.ToString(), cmdTypeRaw);
     }
     else
     {
         cmdType    = RRACCommand.UNKNOWN;
         cmdTypeStr = String.Format("RRAC UNKNOWN{0}", cmdTypeRaw);
     }
 }
示例#2
0
文件: RRAC.cs 项目: SayHalou/ospy
 private void ParseCommandType(UInt16 cmdTypeRaw,
     out RRACCommand cmdType,
     out string cmdTypeStr)
 {
     if (knownCommands.ContainsKey(cmdTypeRaw))
     {
         cmdType = knownCommands[cmdTypeRaw];
         cmdTypeStr = String.Format("RRAC {0}",
             cmdType.ToString(), cmdTypeRaw);
     }
     else
     {
         cmdType = RRACCommand.UNKNOWN;
         cmdTypeStr = String.Format("RRAC UNKNOWN{0}", cmdTypeRaw);
     }
 }