/// <summary> /// 显示状态 /// </summary> /// <param name="pgb"></param> /// <param name="txt"></param> /// <param name="info"></param> public void ShowState(string info = null) { Action pgbDelegate = () => { Pgb.Value++; }; Pgb.BeginInvoke(pgbDelegate); if (info != null) { Action txtDelegate = () => { TxtState.Text += info + "\tCompleted!" + "\r\n"; }; TxtState.BeginInvoke(txtDelegate); } }