public void setError(string txt, ICollection <Exception> exceptions) { statusBar.safeInvoke(new MethodInvoker(delegate { targetLabel.BackColor = Color.LightPink; statusBar.BackColor = Color.LightPink; targetLabel.Text = txt; lastExceptions = exceptions; targetLabel.Visible = true; targetLabel.IsLink = true; targetLabel.Click += targetLabel_Click; targetLabel.ImageAlign = ContentAlignment.MiddleRight; targetLabel.Image = SystemIcons.Error.ToBitmap(); targetLabel.TextAlign = ContentAlignment.MiddleRight; })); }