public CommandTableWindow(CommandTableExplorerDTO state) : base() { Caption = Title; BitmapImageMoniker = KnownMonikers.CommandUIOption; var elm = new CommandTableExplorerControl(state); Content = elm; }
public CommandTableExplorerControl(CommandTableExplorerDTO dto) { _dto = dto; _cmdEvents = dto.DTE.Events.CommandEvents; Commands = _dto.DteCommands; DataContext = this; Loaded += OnLoaded; InitializeComponent(); CommandTreeItem.ItemSelected += CommandTreeItem_ItemSelected; }