void onExecDone(object sender, ExecDoneEventArgs e) { // Only process events from active instance. if (sender != activeInstance) return; ExecDone(this, e); }
void onExecDone(object sender, ExecDoneEventArgs e) { // Display error, if any. if (!string.IsNullOrWhiteSpace(e.Error)) WriteErrorLine(e.Error); // Show the next shell prompt. var shellPromptStr = getShellPromptString().Result; Dispatcher.BeginInvoke( new Action(() => displayShellPrompt(shellPromptStr))); }