Fix accessibility of WalletService field
MODIFY
WalletWasabi.Gui/Controls/SuggestLabelViewModel.cs
WalletWasabi.Gui/Controls/SuggestLabelViewModel.cs
@@ -16,6 +16,7 @@ namespace WalletWasabi.Gui.Controls
private ObservableCollection<SuggestionViewModel> _suggestions;
private int _caretIndex;
private string _label;
+ private WalletService WalletService { get; }
public SuggestLabelViewModel(WalletService walletService)
{
@@ -53,8 +54,6 @@ namespace WalletWasabi.Gui.Controls
set => this.RaiseAndSetIfChanged(ref _suggestions, value);
}
- public WalletService WalletService { get; }
-
private void UpdateSuggestions(string words)
{
if (string.IsNullOrWhiteSpace(words))

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -58,6 +58,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private object SelectionChangedLock { get; } = new object();
private object StateChangedLock { get; } = new object();
private Global Global { get; }
+ private WalletService WalletService { get; }
public ReactiveCommand<Unit, Unit> SelectAllCheckBoxCommand { get; }
public ReactiveCommand<Unit, Unit> SelectPrivateCheckBoxCommand { get; }
public ReactiveCommand<Unit, Unit> SelectNonPrivateCheckBoxCommand { get; }
@@ -73,7 +74,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public ReadOnlyObservableCollection<CoinViewModel> Coins => _coinViewModels;
public bool DisplayCommonOwnershipWarning { get; set; } = false;
- public WalletService WalletService { get; }
+
public bool CanDequeueCoins { get; set; } = false;
private SortExpressionComparer<CoinViewModel> MyComparer

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -33,8 +33,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private ObservableAsPropertyHelper<bool> _confirmed;
private ObservableAsPropertyHelper<bool> _unavailable;
private ObservableAsPropertyHelper<string> _cluster;
-
- public WalletService WalletService { get; }
+ private WalletService WalletService { get; }
public CoinListViewModel Owner { get; }
private Global Global { get; }
public bool CanBeDequeued => Owner.CanDequeueCoins;

Fix accessibility of WalletService field