/// <summary>打印消息 跨线程添加textbox的值</summary> /// <param name="msg">The msg.</param> public void ShowMsg(string msg) { if (log.InvokeRequired) { textbdelegate dt = ShowMsg; log.Invoke(dt, msg + "\n"); } else { log.AppendText(ClientSjmyHelper.GetTime() + msg + "\n"); } }
private void timer1_Tick(object sender, EventArgs e) { ClientSjmyHelper.AdbGuard(); }