private void AppendTextOutputWindow(string theOutput) { BeginInvoke((MethodInvoker) delegate { OutputWindow.AppendText(theOutput + Environment.NewLine); }); }
private void processDataReceived(object sender, DataReceivedEventArgs r) { if (!String.IsNullOrEmpty(r.Data)) { OutputWindow.Invoke(new MethodInvoker(() => { OutputWindow.AppendText(r.Data + "\r\n"); OutputWindow.DeselectAll(); })); } }
private void processExited(object sender, EventArgs e) { unpacker.WaitForExit(); OutputWindow.Invoke(new MethodInvoker(() => { extractToolStripMenuItem.Enabled = true; cancelToolStripMenuItem.Enabled = false; OutputWindow.AppendText("Completed.\r\n"); OutputWindow.DeselectAll(); converterExited = true; })); }