CommandData parsingMessage(string msg)//pasing the received string { CommandData cmdData = new CommandData(); CommandDecoder cmdDecoder = new CommandDecoder(msg); cmdData = cmdDecoder.parse(); return(cmdData); }
void parseMesaage(string msg) { CommandData cmdData = new CommandData(); CommandDecoder cmdDecoder = new CommandDecoder(msg); cmdData = cmdDecoder.parse(); if (cmdData.command == "FileNotMatch") { this.Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, OnNewMessage, "\nthis is demo for requirement 3, the test harness cannot find the file in the repository, had you send all required dll files?\n"); } if (cmdData.command == "NoResult") { this.Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, OnNewMessage, "\nthis is for requirement 4, the result isn't prepared yet, please wait for a while\n"); } }