Created
January 3, 2018 12:43
-
-
Save kevingosse/ae26cebf43459e7bebe0d9020a46558a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.Composition; | |
using System.Windows.Controls; | |
using DbgX.Interfaces; | |
using DbgX.Interfaces.Services; | |
namespace WinDbgExt.History | |
{ | |
[NamedPartMetadata("CommandWindow"), Export(typeof(IDbgToolWindow))] | |
public class CommandWindow : IDbgToolWindow | |
{ | |
[Import] | |
private IDbgConsole _console; | |
public Control GetToolWindowView(object parameter) | |
{ | |
return new ContentControl { Content = new CommandControl(_console, (string)parameter) }; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment