private void RepaintLogs(object sender, EventArgs e) { lock (LockLog) { LogDisplay.Invoke(new MethodInvoker(delegate { LogDisplay.Text += LogWriter.GetInstance().Logs.Last() + Environment.NewLine; })); } }