Exemple #1
0
        public ProjectExplorerControl(IVsWindowSearchHostFactory windowSearchHostFactory, ProjectExplorerViewModel viewModel)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            DataContext = viewModel;

            InitializeComponent();

            ViewModel.PropertyChanged += OnViewModelPropertyChanged;

            SearchHost = windowSearchHostFactory.CreateWindowSearchHost(SearchControlHost);
            SearchHost.SetupSearch(this);

            UpdateSearchEnabled();
        }
 public SettingsCommand(ProjectExplorerViewModel viewModel)
     : base(PackageIds.SettingsCommandId)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     _executing = false;
 }
Exemple #3
0
 public AddProjectCommand(ProjectExplorerViewModel viewModel)
     : base(viewModel, PackageIds.AddProjectCommandId)
 {
 }
Exemple #4
0
 public CancelRefreshCommand(ProjectExplorerViewModel viewModel)
     : base(PackageIds.CancelRefreshCommandId)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
 }
Exemple #5
0
 public OpenInFileExplorerCommand(ProjectExplorerViewModel viewModel) :
     base(viewModel, PackageIds.OpenInFileExplorerCommandId)
 {
 }
 public ProjectSearchTask(ProjectExplorerViewModel viewModel, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback)
     : base(dwCookie, pSearchQuery, pSearchCallback)
 {
     _viewModel = viewModel;
 }
 public ExceuteDefaultCommand(ProjectExplorerViewModel viewModel)
     : base(PackageIds.ExecuteDefaultCommandId)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
 }
Exemple #8
0
 public RemoveProjectCommand(ProjectExplorerViewModel viewModel) :
     base(viewModel, PackageIds.RemoveProjectCommandId)
 {
 }
Exemple #9
0
 protected ProjectSelectionCommand(ProjectExplorerViewModel viewModel, int commandId, Guid?menuGroupOrDefault = null) :
     base(commandId, menuGroupOrDefault)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
 }