Table of Contents

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

title string
detail string
buttonText string
apply Func<Task<string>>

Properties

ApplyCommand

Gets an IAsyncRelayCommand instance wrapping McServerLauncher.ViewModels.SolutionRow.Apply().

[ExcludeFromCodeCoverage]
public IAsyncRelayCommand ApplyCommand { get; }

Property Value

IAsyncRelayCommand

ButtonText

public string ButtonText { get; }

Property Value

string

CanApply

[ExcludeFromCodeCoverage]
public bool CanApply { get; set; }

Property Value

bool

Detail

public string Detail { get; }

Property Value

string

HasState

public bool HasState { get; }

Property Value

bool

IsBusy

[ExcludeFromCodeCoverage]
public bool IsBusy { get; set; }

Property Value

bool

ShowButton

public bool ShowButton { get; }

Property Value

bool

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

string

Title

public string Title { get; }

Property Value

string

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)

Parameters

text string
canApply bool