コード例 #1
0
ファイル: MainWindow.cs プロジェクト: janosymarton/CoolTool
 public void AddMessage(string message, bool type)
 {
     ProgressWindow.SelectionColor = type ? Color.Red : Color.Black;
     ProgressWindow.SelectionFont  = new Font(ProgressWindow.SelectionFont, type ? FontStyle.Bold : FontStyle.Regular);
     ProgressWindow.AppendText(message);
     ProgressWindow.Refresh();
     ProgressWindow.SelectionStart = ProgressWindow.Text.Length;
     ProgressWindow.ScrollToCaret();
     Application.DoEvents();
 }