public static void ShowErrors(string title, Form caller, CompilerErrorCollection errors) { FormStringList dlg = new FormStringList(); dlg.Text = title; foreach (CompilerError s in errors) { dlg.AddString(s.ToString()); } dlg.ShowDialog(caller); }
public static void ShowDebugMessage(string msg, params object[] values) { if (_debugForm != null && (_debugForm.IsDisposed || _debugForm.Disposing)) { _debugForm = null; } if (_debugForm == null) { _debugForm = new FormStringList(); _debugForm.TopMost = true; _debugForm.Show(); } if (values != null && values.Length > 0) { msg = string.Format(CultureInfo.InvariantCulture, msg, values); } _debugForm.AddString(msg); }