Exemplo n.º 1
0
 public ContextMenuInitalizer(ClientsContextMenu clientsContextMenu, IEnumerable <ICommandDescription> commandDescriptions,
                              VisualStudioIcons icons, IWindowService windowService, CommandExecutionManager commandExecutionManager)
 {
     _clientsContextMenu  = clientsContextMenu;
     _commandDescriptions = commandDescriptions;
     _icons                   = icons;
     _windowService           = windowService;
     _commandExecutionManager = commandExecutionManager;
 }
Exemplo n.º 2
0
        public DefaultClientListView(ClientsContextMenu clientsContextMenu, OfflineClientsContextMenu offlineClientsContextMenu, IItemMenuFactory menuFactory)
        {
            InitializeComponent();

            var contextMenu = (ContextMenu)ClientsDataGrid.Resources["OnlineItemContextMenu"];

            InitializeContextMenu(clientsContextMenu, contextMenu, menuFactory);

            contextMenu = (ContextMenu)ClientsDataGrid.Resources["OfflineItemContextMenu"];
            InitializeContextMenu(offlineClientsContextMenu, contextMenu, menuFactory);
        }
Exemplo n.º 3
0
 public ClientCommandRegistrar(ClientsContextMenu clientsContextMenu, IWindowService windowService)
 {
     _clientsContextMenu = clientsContextMenu;
     _windowService      = windowService;
 }