/// <まとめ>
///表示ログ
/// </要約>
/// <PARAM NAME = "MSG">メッセージ</ PARAM>
/// <PARAM NAME = "カラー">表示色</ PARAM >
プライベートボイドShowMsg(文字列MSG、カラー色)
{
IF(String.IsNullOrEmpty(MSG))
のリターン;
IF(txtLog.IsHandleCreated)
{
txtLog.BeginInvoke(新しいアクション(()=>
{
txtLog.SelectionColor =カラー; //设置输入字体颜色
txtLog.AppendText(DateTime.Now.ToString( "[MM:SS]")+ MSG + Environment.NewLine)。
txtLog.Focus(); //フォーカス取得
txtLog.Select(txtLog.TextLength、0); //最後にテキストカーソル
txtLog.ScrollToCaretを(); //カーソルをスクロール
DoOutMessage(MSG ,. 9);
})) ;
}
}