예제 #1
0
        private void stdOutCallback(IntPtr ptr, UInt64 count)
        {
            string Message = Marshal.PtrToStringAnsi(ptr, (int)count);

            Dispatcher.Invoke(new Action(() => {
                XRayTraceOutput.AppendText(Message + "\n");
                XRayTraceOutput.ScrollToEnd();
            }));
        }
예제 #2
0
 private void P_OutputDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
 {
     Dispatcher.Invoke(new Action(() => XRayTraceOutput.AppendText(e.Data.ToString())));
 }