void Window_WindowDataTextChanged(object sender, WindowHandle.LogEventArgs e) { try { } catch (Exception ex) { Log.cLogger.Log(ex); } }
private void FillOutputData(WindowHandle.LogEventArgs e) { try { rtxtOutput.Text += e.Logtext + Environment.NewLine; rtxtOutput.SelectionStart = rtxtOutput.Text.Length; rtxtOutput.ScrollToCaret(); } catch (Exception ex) { Log.cLogger.Log(ex); } }
void myWindow_WindowDataTextChanged(object sender, WindowHandle.LogEventArgs e) { try { if (this.InvokeRequired) { this.BeginInvoke(new FillOutputCallback(FillOutputData), e); } else { FillOutputData(e); } } catch (Exception ex) { Log.cLogger.Log(ex); } }