private void stdOutCallback(IntPtr ptr, UInt64 count) { string Message = Marshal.PtrToStringAnsi(ptr, (int)count); Dispatcher.Invoke(new Action(() => { XRayTraceOutput.AppendText(Message + "\n"); XRayTraceOutput.ScrollToEnd(); })); }
private void P_OutputDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e) { Dispatcher.Invoke(new Action(() => XRayTraceOutput.AppendText(e.Data.ToString()))); }