Beispiel #1
0
        void onExecDone(object sender, ExecDoneEventArgs e)
        {
            // Only process events from active instance.
            if (sender != activeInstance) return;

            ExecDone(this, e);
        }
Beispiel #2
0
        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)));
        }