@@ -23,7 +23,7 @@ public sealed class CodeExplorerViewModel : ViewModelBase, IDisposable
23
23
private readonly FolderHelper _folderHelper ;
24
24
private readonly RubberduckParserState _state ;
25
25
26
- public CodeExplorerViewModel ( FolderHelper folderHelper , RubberduckParserState state , List < ICommand > commands )
26
+ public CodeExplorerViewModel ( FolderHelper folderHelper , RubberduckParserState state , List < CommandBase > commands )
27
27
{
28
28
_folderHelper = folderHelper ;
29
29
_state = state ;
@@ -143,14 +143,14 @@ public bool SortBySelection
143
143
}
144
144
}
145
145
146
- private readonly ICommand _copyResultsCommand ;
147
- public ICommand CopyResultsCommand { get { return _copyResultsCommand ; } }
146
+ private readonly CommandBase _copyResultsCommand ;
147
+ public CommandBase CopyResultsCommand { get { return _copyResultsCommand ; } }
148
148
149
- private readonly ICommand _setNameSortCommand ;
150
- public ICommand SetNameSortCommand { get { return _setNameSortCommand ; } }
149
+ private readonly CommandBase _setNameSortCommand ;
150
+ public CommandBase SetNameSortCommand { get { return _setNameSortCommand ; } }
151
151
152
- private readonly ICommand _setSelectionSortCommand ;
153
- public ICommand SetSelectionSortCommand { get { return _setSelectionSortCommand ; } }
152
+ private readonly CommandBase _setSelectionSortCommand ;
153
+ public CommandBase SetSelectionSortCommand { get { return _setSelectionSortCommand ; } }
154
154
155
155
private bool _sortByType = true ;
156
156
public bool SortByType
@@ -419,64 +419,64 @@ private void SetErrorState(CodeExplorerItemViewModel itemNode, VBComponent compo
419
419
}
420
420
}
421
421
422
- private readonly ICommand _refreshCommand ;
423
- public ICommand RefreshCommand { get { return _refreshCommand ; } }
422
+ private readonly CommandBase _refreshCommand ;
423
+ public CommandBase RefreshCommand { get { return _refreshCommand ; } }
424
424
425
- private readonly ICommand _refreshComponentCommand ;
426
- public ICommand RefreshComponentCommand { get { return _refreshComponentCommand ; } }
425
+ private readonly CommandBase _refreshComponentCommand ;
426
+ public CommandBase RefreshComponentCommand { get { return _refreshComponentCommand ; } }
427
427
428
- private readonly ICommand _navigateCommand ;
429
- public ICommand NavigateCommand { get { return _navigateCommand ; } }
428
+ private readonly CommandBase _navigateCommand ;
429
+ public CommandBase NavigateCommand { get { return _navigateCommand ; } }
430
430
431
- private readonly ICommand _addTestModuleCommand ;
432
- public ICommand AddTestModuleCommand { get { return _addTestModuleCommand ; } }
431
+ private readonly CommandBase _addTestModuleCommand ;
432
+ public CommandBase AddTestModuleCommand { get { return _addTestModuleCommand ; } }
433
433
434
- private readonly ICommand _addStdModuleCommand ;
435
- public ICommand AddStdModuleCommand { get { return _addStdModuleCommand ; } }
434
+ private readonly CommandBase _addStdModuleCommand ;
435
+ public CommandBase AddStdModuleCommand { get { return _addStdModuleCommand ; } }
436
436
437
- private readonly ICommand _addClassModuleCommand ;
438
- public ICommand AddClassModuleCommand { get { return _addClassModuleCommand ; } }
437
+ private readonly CommandBase _addClassModuleCommand ;
438
+ public CommandBase AddClassModuleCommand { get { return _addClassModuleCommand ; } }
439
439
440
- private readonly ICommand _addUserFormCommand ;
441
- public ICommand AddUserFormCommand { get { return _addUserFormCommand ; } }
440
+ private readonly CommandBase _addUserFormCommand ;
441
+ public CommandBase AddUserFormCommand { get { return _addUserFormCommand ; } }
442
442
443
- private readonly ICommand _openDesignerCommand ;
444
- public ICommand OpenDesignerCommand { get { return _openDesignerCommand ; } }
443
+ private readonly CommandBase _openDesignerCommand ;
444
+ public CommandBase OpenDesignerCommand { get { return _openDesignerCommand ; } }
445
445
446
- private readonly ICommand _openProjectPropertiesCommand ;
447
- public ICommand OpenProjectPropertiesCommand { get { return _openProjectPropertiesCommand ; } }
446
+ private readonly CommandBase _openProjectPropertiesCommand ;
447
+ public CommandBase OpenProjectPropertiesCommand { get { return _openProjectPropertiesCommand ; } }
448
448
449
- private readonly ICommand _renameCommand ;
450
- public ICommand RenameCommand { get { return _renameCommand ; } }
449
+ private readonly CommandBase _renameCommand ;
450
+ public CommandBase RenameCommand { get { return _renameCommand ; } }
451
451
452
- private readonly ICommand _indenterCommand ;
453
- public ICommand IndenterCommand { get { return _indenterCommand ; } }
452
+ private readonly CommandBase _indenterCommand ;
453
+ public CommandBase IndenterCommand { get { return _indenterCommand ; } }
454
454
455
- private readonly ICommand _findAllReferencesCommand ;
456
- public ICommand FindAllReferencesCommand { get { return _findAllReferencesCommand ; } }
455
+ private readonly CommandBase _findAllReferencesCommand ;
456
+ public CommandBase FindAllReferencesCommand { get { return _findAllReferencesCommand ; } }
457
457
458
- private readonly ICommand _findAllImplementationsCommand ;
459
- public ICommand FindAllImplementationsCommand { get { return _findAllImplementationsCommand ; } }
458
+ private readonly CommandBase _findAllImplementationsCommand ;
459
+ public CommandBase FindAllImplementationsCommand { get { return _findAllImplementationsCommand ; } }
460
460
461
- private readonly ICommand _importCommand ;
462
- public ICommand ImportCommand { get { return _importCommand ; } }
461
+ private readonly CommandBase _importCommand ;
462
+ public CommandBase ImportCommand { get { return _importCommand ; } }
463
463
464
- private readonly ICommand _exportCommand ;
465
- public ICommand ExportCommand { get { return _exportCommand ; } }
464
+ private readonly CommandBase _exportCommand ;
465
+ public CommandBase ExportCommand { get { return _exportCommand ; } }
466
466
467
- private readonly ICommand _removeCommand ;
468
- public ICommand RemoveCommand { get { return _removeCommand ; } }
467
+ private readonly CommandBase _removeCommand ;
468
+ public CommandBase RemoveCommand { get { return _removeCommand ; } }
469
469
470
- private readonly ICommand _printCommand ;
471
- public ICommand PrintCommand { get { return _printCommand ; } }
470
+ private readonly CommandBase _printCommand ;
471
+ public CommandBase PrintCommand { get { return _printCommand ; } }
472
472
473
- private readonly ICommand _commitCommand ;
474
- public ICommand CommitCommand { get { return _commitCommand ; } }
473
+ private readonly CommandBase _commitCommand ;
474
+ public CommandBase CommitCommand { get { return _commitCommand ; } }
475
475
476
- private readonly ICommand _undoCommand ;
477
- public ICommand UndoCommand { get { return _undoCommand ; } }
476
+ private readonly CommandBase _undoCommand ;
477
+ public CommandBase UndoCommand { get { return _undoCommand ; } }
478
478
479
- private readonly ICommand _externalRemoveCommand ;
479
+ private readonly CommandBase _externalRemoveCommand ;
480
480
481
481
// this is a special case--we have to reset SelectedItem to prevent a crash
482
482
private void ExecuteRemoveComand ( object param )
0 commit comments