diff --git a/ActiveDirectoryQuerier/ComboBoxParameterViewModel.cs b/ActiveDirectoryQuerier/ComboBoxParameterViewModel.cs index 85cdad2..be7a92a 100644 --- a/ActiveDirectoryQuerier/ComboBoxParameterViewModel.cs +++ b/ActiveDirectoryQuerier/ComboBoxParameterViewModel.cs @@ -10,7 +10,7 @@ namespace ActiveDirectoryQuerier; public sealed class ComboBoxParameterViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler? PropertyChanged; - private ObservableCollection _possibleParameters = new(); + private ObservableCollection _possibleParameterListList = new(); private string _selectedParameter = string.Empty; /// @@ -19,7 +19,7 @@ public sealed class ComboBoxParameterViewModel : INotifyPropertyChanged /// Initial list of possible parameters for the ComboBox. public ComboBoxParameterViewModel(ObservableCollection possibleParameters) { - PossibleParameters = possibleParameters ?? throw new ArgumentNullException(nameof(possibleParameters)); + PossibleParameterList = possibleParameters ?? throw new ArgumentNullException(nameof(possibleParameters)); } /// @@ -40,19 +40,19 @@ public string SelectedParameter /// /// Gets or sets the list of possible parameters that can be selected for a command. /// - public ObservableCollection PossibleParameters + public ObservableCollection PossibleParameterList { - get => _possibleParameters; + get => _possibleParameterListList; set { if (value is null) { throw new ArgumentNullException(nameof(value)); } - if (_possibleParameters != value) + if (_possibleParameterListList != value) { - _possibleParameters = value; - OnPropertyChanged(nameof(PossibleParameters)); + _possibleParameterListList = value; + OnPropertyChanged(nameof(PossibleParameterList)); } } } diff --git a/ActiveDirectoryQuerier/MainWindowViewModel.cs b/ActiveDirectoryQuerier/MainWindowViewModel.cs index f66d0a9..13984d1 100644 --- a/ActiveDirectoryQuerier/MainWindowViewModel.cs +++ b/ActiveDirectoryQuerier/MainWindowViewModel.cs @@ -462,7 +462,7 @@ private async Task LoadCommandParametersAsync(Command? selectedCommand) // Update the possible properties of the ComboBoxParameterViewModels. foreach (ComboBoxParameterViewModel comboBoxParameterViewModel in DynamicParametersCollection) { - comboBoxParameterViewModel.PossibleParameters = PossibleCommandParametersList; + comboBoxParameterViewModel.PossibleParameterList = PossibleCommandParametersList; } }