protected void PrintLog(string strLog) { DelegatePara dp = new DelegatePara(); dp.strLog = strLog; deles.Refresh(dp); }
public void RefreshTask(DelegatePara dp) { //如果需要在安全的线程上下文中执行 if (this.InvokeRequired) { this.Invoke(new ccTaskDelegate(RefreshTask), dp); return; } //转换参数 string strLog = (string)dp.strLog; WriteLog(strLog); }