예제 #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;
 }
예제 #3
0
 public AddProjectCommand(ProjectExplorerViewModel viewModel)
     : base(viewModel, PackageIds.AddProjectCommandId)
 {
 }
예제 #4
0
 public CancelRefreshCommand(ProjectExplorerViewModel viewModel)
     : base(PackageIds.CancelRefreshCommandId)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
 }
예제 #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));
 }
예제 #8
0
 public RemoveProjectCommand(ProjectExplorerViewModel viewModel) :
     base(viewModel, PackageIds.RemoveProjectCommandId)
 {
 }
예제 #9
0
 protected ProjectSelectionCommand(ProjectExplorerViewModel viewModel, int commandId, Guid?menuGroupOrDefault = null) :
     base(commandId, menuGroupOrDefault)
 {
     _viewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
 }