diff --git a/Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs b/Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs index a968f0292f..48a8e8305b 100644 --- a/Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs +++ b/Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs @@ -19,8 +19,6 @@ using Rubberduck.UI.UnitTesting.Commands; using Rubberduck.VBEditor.SafeComWrappers.Abstract; -// ReSharper disable ExplicitCallerInfoArgument - namespace Rubberduck.Navigation.CodeExplorer { [Flags] @@ -28,8 +26,8 @@ public enum CodeExplorerSortOrder { Undefined = 0, Name = 1, - CodeLine = 1 << 2, - DeclarationType = 1 << 3, + CodeLine = 1 << 1, + DeclarationType = 1 << 2, DeclarationTypeThenName = DeclarationType | Name, DeclarationTypeThenCodeLine = DeclarationType | CodeLine } @@ -76,11 +74,11 @@ public sealed class CodeExplorerViewModel : ViewModelBase RemoveCommand = new DelegateCommand(LogManager.GetCurrentClassLogger(), ExecuteRemoveCommand, _externalRemoveCommand.CanExecute); } - OnPropertyChanged("Projects"); + OnPropertyChanged(nameof(Projects)); SyncCodePaneCommand = syncProvider.GetSyncCommand(this); // Force a call to EvaluateCanExecute - OnPropertyChanged("SyncCodePaneCommand"); + OnPropertyChanged(nameof(SyncCodePaneCommand)); } public ObservableCollection Projects { get; } = new ObservableCollection(); @@ -109,8 +107,8 @@ public ICodeExplorerNode SelectedItem OnPropertyChanged(); - OnPropertyChanged("ExportVisibility"); - OnPropertyChanged("ExportAllVisibility"); + OnPropertyChanged(nameof(ExportVisibility)); + OnPropertyChanged(nameof(ExportAllVisibility)); } }