Exemplo n.º 1
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons    = containerProvider.Resolve <VisualStudioIcons>();

            registar.Register <RegistryEditorViewModel>("RegistryEditor:Name", IconFactory.FromFactory(() => icons.Registry), CommandCategory.System);
        }
Exemplo n.º 2
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registrar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons     = containerProvider.Resolve <VisualStudioIcons>();

            registrar.Register <TaskManagerViewModel>("TaskManager:TaskManager", IconFactory.FromFactory(() => icons.Process),
                                                      CommandCategory.System);
        }
Exemplo n.º 3
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons    = containerProvider.Resolve <VisualStudioIcons>();

            registar.Register <MessageBoxViewModel>("UserInteraction:MessageBox", IconFactory.FromFactory(() => icons.MessageBox),
                                                    CommandCategory.Interaction);
        }
Exemplo n.º 4
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons    = containerProvider.Resolve <VisualStudioIcons>();

            registar.Register <RemoteDesktopViewModel>("RemoteDesktop:Name", IconFactory.FromFactory(() => icons.Monitor),
                                                       CommandCategory.Surveillance);
        }
Exemplo n.º 5
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons    = containerProvider.Resolve <VisualStudioIcons>();
            var builders = containerProvider.Resolve <IEnumerable <ContextMenuManager> >();

            registar.Register <FileExplorerViewModel>("FileExplorer:FileExplorer", IconFactory.FromFactory(() => icons.ListFolder),
                                                      CommandCategory.System);

            foreach (var contextMenuBuilder in builders)
            {
                contextMenuBuilder.Build();
            }
        }
Exemplo n.º 6
0
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var registar = containerProvider.Resolve <IClientCommandRegistrar>();
            var icons    = containerProvider.Resolve <VisualStudioIcons>();

            registar.Register <SystemInformationViewModel>("SystemInformation:SystemInformation", IconFactory.FromFactory(() => icons.SystemInfo),
                                                           CommandCategory.System);
        }