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

Commit

Permalink
Update to reflect previous commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Feb 25, 2024
1 parent 645a8cd commit 91467b6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions FAFB-PowerShell-Tool/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
using System.Windows.Controls;
using System.Windows.Input;
using FAFB_PowerShell_Tool.PowerShell;
using System.Management.Automation;
using System.IO;
using System.Globalization;
using System.Text;
using Microsoft.Win32;
using Microsoft.WSMan.Management;
using Newtonsoft.Json.Linq;

namespace FAFB_PowerShell_Tool;

Expand Down Expand Up @@ -234,6 +230,9 @@ public MainWindowViewModel()
/// This method will edit the Query and fill out the field with the desired query and you can edit the query
/// TODO: Add a description to the parameter of this method.
/// </summary>
/// <note>
/// This method is of scope internal because it is tested in the test project, but should remain private.
/// </note>
/// <param name="sender"></param>
private void PerformEditCustomQuery(object sender)
{
Expand All @@ -251,9 +250,9 @@ private void PerformEditCustomQuery(object sender)
Command chosenCommand =
ActiveDirectoryCommandList.FirstOrDefault(item => item.CommandText == currQuery.commandName);
SelectedCommand = chosenCommand;
// Load the Possible Parameters Syncronously
// Load the Possible Parameters Synchronously
CommandParameters commandParameters = new CommandParameters();
commandParameters.LoadCommandParameters(SelectedCommand);
((ICommandParameters)commandParameters).LoadCommandParameters(SelectedCommand);
PossibleParameterList = new ObservableCollection<string>(commandParameters.PossibleParameters);
OnPropertyChanged(nameof(PossibleParameterList));
// Fill in Parameters and values
Expand Down

0 comments on commit 91467b6

Please sign in to comment.