private void StatusLog_NewLogEntryEventHandler(object sender, NewLogEntryEvent e) { if (status.InvokeRequired) { status.Invoke(new Action(() => { status.Text = e.Entry; status.ForeColor = e.Color; })); } else { status.Text = e.Entry; status.ForeColor = e.Color; } }
private void MesgLogOnNewLogEntryEventHandler(object sender, NewLogEntryEvent newLogEntryEvent) { Config.LogBox += Config.Status = newLogEntryEvent.Entry; Config.RaisePropertyChangedEvent("LogBox"); Config.RaisePropertyChangedEvent("Status"); }
private void MesgLog_NewLogEntryEventHandler(object sender, NewLogEntryEvent e) { outputTextbox.AppendText(e.Entry, e.Color); }