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

Commit

Permalink
Add starting field and property for output for tab three
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 6, 2024
1 parent 293708c commit a841097
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions ActiveDirectoryQuerier/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ namespace ActiveDirectoryQuerier;
/// </summary>
public sealed class MainWindowViewModel : INotifyPropertyChanged
{
// [ Fields ]-------------------------------------------------------------------- //
// [ Fields ] ------------------------------------------------------------------- //
// [[ Event handler property ]] ------------------------------------------------- //

public event PropertyChangedEventHandler? PropertyChanged;

// [[ Backing fields for properties ]] ------------------------------------------ //

private string _powerShellOutput;
private string _activeDirectoryInfoOutput; // Pieter TODO
private string _queryName;
private string _queryDescription;
private bool _editingEnabled;
Expand Down Expand Up @@ -68,6 +69,16 @@ public string PowerShellOutput
}
}

// Pieter TODO
public string ActiveDirectoryInfoOutput
{
get => _activeDirectoryInfoOutput;
set {
_activeDirectoryInfoOutput = value;
OnPropertyChanged(nameof(ActiveDirectoryInfoOutput));
}
}

/// <summary>
/// The name of the query.
/// </summary>
Expand Down Expand Up @@ -108,7 +119,7 @@ public Command? SelectedComboBoxCommand
_selectedComboBoxCommand = value;
OnPropertyChanged(nameof(SelectedComboBoxCommand));
// No need to load parameters if the command is null.
if (value is not null)
if (value is not null)
{
LoadCommandParametersAsync(value); // TODO: TODO: Maybe change this method to synchronous...

Check warning on line 124 in ActiveDirectoryQuerier/MainWindowViewModel.cs

View workflow job for this annotation

GitHub Actions / build (x64)

Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
}
Expand Down Expand Up @@ -148,7 +159,7 @@ public Command? SelectedComboBoxCommand
public ICommand SaveCustomQueriesRelay { get; }

/// <summary>
/// This is the command tied to Clear Query calls the ClearQueryBuilder method
/// This is the command tied to Clear Query calls the ClearQueryBuilder method
/// </summary>
public ICommand ClearQueryBuilderRelay { get; }

Expand Down

0 comments on commit a841097

Please sign in to comment.