Rename non used parameter to _ (lambda expressions)
MODIFY
WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs
WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs
@@ -33,7 +33,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
this.WhenAnyValue(x => x.IsLocked)
.Where(x => x)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x => inputField.Focus());
+ .Subscribe(_ => inputField.Focus());
}
private void InitializeComponent()
@@ -51,7 +51,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
.Interval(TimeSpan.FromSeconds(1))
.Take(1)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
var inputField = this.FindControl<NoparaPasswordBox>("InputField");
inputField.Focus();

MODIFY
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreen.xaml.cs
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreen.xaml.cs
@@ -95,7 +95,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
this.WhenAnyValue(x => x.DoneAnimating)
.Where(x => x)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
vm.StateChanged = false;
})
@@ -103,12 +103,12 @@ namespace WalletWasabi.Gui.Controls.LockScreen
Observable.FromEventPattern(DragThumb, nameof(DragThumb.DragCompleted))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(e => vm.IsUserDragging = false)
+ .Subscribe(_ => vm.IsUserDragging = false)
.DisposeWith(vm.Disposables);
Observable.FromEventPattern(DragThumb, nameof(DragThumb.DragStarted))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(e => vm.IsUserDragging = true)
+ .Subscribe(_ => vm.IsUserDragging = true)
.DisposeWith(vm.Disposables);
Observable.FromEventPattern<VectorEventArgs>(DragThumb, nameof(DragThumb.DragDelta))

MODIFY
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenViewModel.cs
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenViewModel.cs
@@ -90,7 +90,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
this.WhenAnyValue(x => x.TargetOffset)
.DistinctUntilChanged()
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
StateChanged = false;
StateChanged = true;

MODIFY
WalletWasabi.Gui/Controls/MultiTextBox.cs
WalletWasabi.Gui/Controls/MultiTextBox.cs
@@ -116,7 +116,7 @@ namespace WalletWasabi.Gui.Controls
TextVisible = !visible;
});
- this.WhenAnyValue(x => x.SelectionStart).Subscribe(s =>
+ this.WhenAnyValue(x => x.SelectionStart).Subscribe(_ =>
{
if (!IsSelectable)
{
@@ -125,7 +125,7 @@ namespace WalletWasabi.Gui.Controls
}
});
- this.WhenAnyValue(x => x.SelectionEnd).Subscribe(s =>
+ this.WhenAnyValue(x => x.SelectionEnd).Subscribe(_ =>
{
if (!IsSelectable)
{

MODIFY
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
@@ -119,7 +119,7 @@ namespace WalletWasabi.Gui.Controls
PaintText();
});
- this.WhenAnyValue(x => x.Password).Subscribe(passw =>
+ this.WhenAnyValue(x => x.Password).Subscribe(_ =>
{
PaintText();
});

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -172,7 +172,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
PeersNeeded = 100;
}
- Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).ObserveOn(RxApp.MainThreadScheduler).Subscribe(x =>
+ Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).ObserveOn(RxApp.MainThreadScheduler).Subscribe(_ =>
{
this.RaisePropertyChanged(nameof(AmountQueued));
this.RaisePropertyChanged(nameof(IsLurkingWifeMode));

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -71,7 +71,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(async _ => await TryRewriteTableAsync())
.DisposeWith(Disposables);
- Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).ObserveOn(RxApp.MainThreadScheduler).Subscribe(x =>
+ Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).ObserveOn(RxApp.MainThreadScheduler).Subscribe(_ =>
{
foreach (var transaction in Transactions)
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -140,7 +140,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Observable.FromEventPattern(Global.WalletService.Coins,
nameof(Global.WalletService.Coins.CollectionChanged))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(o => InitializeAddresses())
+ .Subscribe(_ => InitializeAddresses())
.DisposeWith(Disposables);
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -203,7 +203,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
MaxCommand = ReactiveCommand.Create(() => { IsMax = !IsMax; }, outputScheduler: RxApp.MainThreadScheduler);
this.WhenAnyValue(x => x.IsMax)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
if (IsMax)
{

MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -68,7 +68,7 @@ namespace WalletWasabi.Gui.Tabs
x => x.Network,
x => x.UseTor)
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(x => Save());
+ .Subscribe(_ => Save());
this.WhenAnyValue(x => x.Autocopy)
.ObserveOn(RxApp.TaskpoolScheduler)

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -69,13 +69,13 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
WalletLock = new object();
this.WhenAnyValue(x => x.SelectedWallet)
- .Subscribe(selectedWallet => TrySetWalletStates());
+ .Subscribe(_ => TrySetWalletStates());
this.WhenAnyValue(x => x.IsWalletOpened)
- .Subscribe(isWalletOpened => TrySetWalletStates());
+ .Subscribe(_ => TrySetWalletStates());
this.WhenAnyValue(x => x.IsBusy)
- .Subscribe(x => TrySetWalletStates());
+ .Subscribe(_ => TrySetWalletStates());
this.WhenAnyValue(x => x.Password).Subscribe(async x =>
{

MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.Gui.ViewModels
.ObserveOn(RxApp.TaskpoolScheduler)
.Where(x => x)
.Take(1)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
try
{

MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -83,14 +83,14 @@ namespace WalletWasabi.Gui.ViewModels
Observable.FromEventPattern<NodeEventArgs>(nodes, nameof(nodes.Added))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
SetPeers(Nodes.Count);
}).DisposeWith(Disposables);
Observable.FromEventPattern<NodeEventArgs>(nodes, nameof(nodes.Removed))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
+ .Subscribe(_ =>
{
SetPeers(Nodes.Count);
}).DisposeWith(Disposables);

Rename non used parameter to _ (lambda expressions)