示例#1
0
        public CommandTableWindow(CommandTableExplorerDTO state)
            : base()
        {
            Caption = Title;
            BitmapImageMoniker = KnownMonikers.CommandUIOption;

            var elm = new CommandTableExplorerControl(state);
            Content = elm;
        }
示例#2
0
        public CommandTableExplorerControl(CommandTableExplorerDTO dto)
        {
            _dto        = dto;
            _cmdEvents  = dto.DTE.Events.CommandEvents;
            Commands    = _dto.DteCommands;
            DataContext = this;
            Loaded     += OnLoaded;

            InitializeComponent();
            CommandTreeItem.ItemSelected += CommandTreeItem_ItemSelected;
        }