Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
If no parameters exists, a popup window will inform the user
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 9, 2024
1 parent 309afd0 commit ecb4cfe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ActiveDirectoryQuerier/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,13 @@ private void RemoveParameterComboBox(object _)
DynamicParametersCollection.RemoveAt(DynamicParametersCollection.Count - 1);
DynamicParameterValuesCollection.RemoveAt(DynamicParameterValuesCollection.Count - 1);
}
else
{
MessageBox.Show("There are no parameters to remove.",
"Warning",
MessageBoxButton.OK,
MessageBoxImage.Warning);
}
}

/// <summary>
Expand Down

0 comments on commit ecb4cfe

Please sign in to comment.