|
19 | 19 | using Rubberduck.UI.UnitTesting.Commands;
|
20 | 20 | using Rubberduck.VBEditor.SafeComWrappers.Abstract;
|
21 | 21 |
|
22 |
| -// ReSharper disable ExplicitCallerInfoArgument |
23 |
| - |
24 | 22 | namespace Rubberduck.Navigation.CodeExplorer
|
25 | 23 | {
|
26 | 24 | [Flags]
|
27 | 25 | public enum CodeExplorerSortOrder
|
28 | 26 | {
|
29 | 27 | Undefined = 0,
|
30 | 28 | Name = 1,
|
31 |
| - CodeLine = 1 << 2, |
32 |
| - DeclarationType = 1 << 3, |
| 29 | + CodeLine = 1 << 1, |
| 30 | + DeclarationType = 1 << 2, |
33 | 31 | DeclarationTypeThenName = DeclarationType | Name,
|
34 | 32 | DeclarationTypeThenCodeLine = DeclarationType | CodeLine
|
35 | 33 | }
|
@@ -76,11 +74,11 @@ public CodeExplorerViewModel(
|
76 | 74 | RemoveCommand = new DelegateCommand(LogManager.GetCurrentClassLogger(), ExecuteRemoveCommand, _externalRemoveCommand.CanExecute);
|
77 | 75 | }
|
78 | 76 |
|
79 |
| - OnPropertyChanged("Projects"); |
| 77 | + OnPropertyChanged(nameof(Projects)); |
80 | 78 |
|
81 | 79 | SyncCodePaneCommand = syncProvider.GetSyncCommand(this);
|
82 | 80 | // Force a call to EvaluateCanExecute
|
83 |
| - OnPropertyChanged("SyncCodePaneCommand"); |
| 81 | + OnPropertyChanged(nameof(SyncCodePaneCommand)); |
84 | 82 | }
|
85 | 83 |
|
86 | 84 | public ObservableCollection<ICodeExplorerNode> Projects { get; } = new ObservableCollection<ICodeExplorerNode>();
|
@@ -109,8 +107,8 @@ public ICodeExplorerNode SelectedItem
|
109 | 107 |
|
110 | 108 | OnPropertyChanged();
|
111 | 109 |
|
112 |
| - OnPropertyChanged("ExportVisibility"); |
113 |
| - OnPropertyChanged("ExportAllVisibility"); |
| 110 | + OnPropertyChanged(nameof(ExportVisibility)); |
| 111 | + OnPropertyChanged(nameof(ExportAllVisibility)); |
114 | 112 | }
|
115 | 113 | }
|
116 | 114 |
|
|
0 commit comments