CodeFactor reordering
MODIFY
WalletWasabi.Gui/Suggestions/SuggestionViewModel.cs
WalletWasabi.Gui/Suggestions/SuggestionViewModel.cs
@@ -7,9 +7,6 @@ namespace WalletWasabi.Gui.Suggestions
{
public class SuggestionViewModel : ReactiveObject
{
- public string Word { get; }
- public Action<string> OnSelection { get; }
-
private bool _isHighLighted;
public SuggestionViewModel(string word, Action<string> onSeleted)
@@ -18,15 +15,18 @@ namespace WalletWasabi.Gui.Suggestions
OnSelection = onSeleted;
}
- public void OnSelected()
- {
- OnSelection?.Invoke(Word);
- }
+ public string Word { get; }
+ public Action<string> OnSelection { get; }
public bool IsHighLighted
{
get => _isHighLighted;
set => this.RaiseAndSetIfChanged(ref _isHighLighted, value);
}
+
+ public void OnSelected()
+ {
+ OnSelection?.Invoke(Word);
+ }
}
}

CodeFactor reordering