void Log(string s, object o = null) { if (s.StartsWith(Resources.Error, StringComparison.CurrentCulture)) { Memo.SelectionColor = Color.Red; } if (o != null) { s = ((o as Downloader).Tag as ListViewItem).Name + ' ' + s + "\r\n"; } Memo.SelectionStart = Memo.TextLength; Memo.AppendText(s); Memo.SelectionLength = s.Length; Memo.ScrollToCaret(); }