Guest User

Untitled

a guest
Jan 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. private async Task ExecuteCommand(string command)
  2. {
  3. ContentTextBox.Document.Blocks.Add(new Paragraph(new Run(command)));
  4. ContentTextBox.ScrollToEnd();
  5.  
  6. var result = await _console.ExecuteCommandAndCaptureOutputAsync(command);
  7.  
  8. _historyManager.LogCommand(command, result);
  9.  
  10. AppendDmlOutput(result);
  11. }
Add Comment
Please, Sign In to add comment