Class SolutionRow
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
One thing the Performance page offers, with the button that does it.
public sealed class SolutionRow : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
SolutionRow
- Implements
- Inherited Members
Constructors
SolutionRow(string, string, string, Func<Task<string?>>?)
public SolutionRow(string title, string detail, string buttonText, Func<Task<string?>>? apply)
Parameters
Properties
ApplyCommand
Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.SolutionRow.Apply().
[ExcludeFromCodeCoverage]
public IAsyncRelayCommand ApplyCommand { get; }
Property Value
ButtonText
public string ButtonText { get; }
Property Value
CanApply
[ExcludeFromCodeCoverage]
public bool CanApply { get; set; }
Property Value
Detail
public string Detail { get; }
Property Value
HasState
public bool HasState { get; }
Property Value
IsBusy
[ExcludeFromCodeCoverage]
public bool IsBusy { get; set; }
Property Value
ShowButton
public bool ShowButton { get; }
Property Value
State
The line that replaces the button once done (or why it could not be): empty until then.
[ExcludeFromCodeCoverage]
public string State { get; set; }
Property Value
Title
public string Title { get; }
Property Value
Methods
SetState(string, bool)
Replaces what the row says with a message: it has nothing to offer.
public void SetState(string text, bool canApply = false)