/// <summary> /// 显示dos执行结果 /// </summary> /// <param name="code"></param> public void displayDosResult(Code code) { DosCode dcode = code as DosCode; dosMsg = dcode.Msg; DosResult_rTB.Invoke(new RichTextBoxAddEvent(AddDosResult)); }
/// <summary> /// 执行dos命令并返回结果,发送回服务端 /// </summary> /// <param name="sender"></param> /// <param name="code"></param> private void sendDosResult(BaseCommunication sender, DoubleCode code) { try { DosCode doscode = new DosCode(); doscode.Msg = BD.Execute_Command(code.Body); sender.SendCode(doscode); } catch { } }