public Refactorings(IExportProvider exportProvider, IVsixShellViewModel shellViewModel) { ThrowIfNotOnUIThread(); _exportProvider = exportProvider; _shellViewModel = shellViewModel; _dte = (DTE2)(ServiceProvider.GlobalProvider.GetService(typeof(DTE)) ?? throw new InvalidOperationException("Can't get DTE service")); }
public VsixShellView(IExportProvider exportProvider, ThemeManager themeManager, IVsixShellViewModel viewModel) { _themeManager = themeManager; try { this.SetExportProvider(exportProvider); InitializeComponent(); DataContext = viewModel; Resources.MergedDictionaries.Add(DataTemplateManager.CreateDynamicDataTemplates(exportProvider)); } catch (Exception ex) { exportProvider.TraceXamlLoaderError(ex); } }
public PreBuildService( ResourceManager resourceManager, ResourceViewModel resourceViewModel, XlfSynchronizer xlfSynchronizer, IVsixShellViewModel shellViewModel, IErrorListProvider errorListProvider, IDteConfiguration configuration) { _errorListProvider = errorListProvider; _resourceManager = resourceManager; _resourceViewModel = resourceViewModel; _xlfSynchronizer = xlfSynchronizer; _shellViewModel = shellViewModel; _configuration = configuration; resourceManager.TableEntries.CollectionChanged += TableEntries_CollectionChanged; errorListProvider.Navigate += Provider_Navigate; VS.Events.BuildEvents.SolutionBuildStarted += BuildEvents_SolutionBuildStarted; }