Class JoinerViewModel

A base class for objects of which the properties must be observable.

Inheritance
JoinerViewModel
Namespace: MOSAIC.ViewModels
Assembly: MOSAIC.dll
Syntax
public class JoinerViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

JoinerViewModel(Joiner)

Declaration
public JoinerViewModel(Joiner joiner)
Parameters
Type Name Description
Joiner joiner

Fields

_isJsonConfigExpanded

Declaration
[ObservableProperty]
private bool _isJsonConfigExpanded
Field Value
Type Description
bool

_selectedTimerSource

Declaration
[ObservableProperty]
private string? _selectedTimerSource
Field Value
Type Description
string

toggleJsonConfigExpandedCommand

The backing field for ToggleJsonConfigExpandedCommand.

Declaration
private RelayCommand? toggleJsonConfigExpandedCommand
Field Value
Type Description
RelayCommand

Properties

AvailableTimerSources

Declaration
public ObservableCollection<string> AvailableTimerSources { get; }
Property Value
Type Description
ObservableCollection<string>

IsJsonConfigExpanded

Declaration
[ExcludeFromCodeCoverage]
public bool IsJsonConfigExpanded { get; set; }
Property Value
Type Description
bool

Joiner

Declaration
public Joiner Joiner { get; }
Property Value
Type Description
Joiner

SelectedTimerSource

Declaration
[ExcludeFromCodeCoverage]
public string? SelectedTimerSource { get; set; }
Property Value
Type Description
string

ToggleJsonConfigExpandedCommand

Gets an IRelayCommand instance wrapping ToggleJsonConfigExpanded().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ToggleJsonConfigExpandedCommand { get; }
Property Value
Type Description
IRelayCommand

Methods

OnIsJsonConfigExpandedChanged(bool)

Executes the logic for when IsJsonConfigExpanded just changed.

Declaration
private void OnIsJsonConfigExpandedChanged(bool value)
Parameters
Type Name Description
bool value

The new property value that was set.

Remarks

This method is invoked right after the value of IsJsonConfigExpanded is changed.

OnIsJsonConfigExpandedChanged(bool, bool)

Executes the logic for when IsJsonConfigExpanded just changed.

Declaration
private void OnIsJsonConfigExpandedChanged(bool oldValue, bool newValue)
Parameters
Type Name Description
bool oldValue

The previous property value that was replaced.

bool newValue

The new property value that was set.

Remarks

This method is invoked right after the value of IsJsonConfigExpanded is changed.

OnIsJsonConfigExpandedChanging(bool)

Executes the logic for when IsJsonConfigExpanded is changing.

Declaration
private void OnIsJsonConfigExpandedChanging(bool value)
Parameters
Type Name Description
bool value

The new property value being set.

Remarks

This method is invoked right before the value of IsJsonConfigExpanded is changed.

OnIsJsonConfigExpandedChanging(bool, bool)

Executes the logic for when IsJsonConfigExpanded is changing.

Declaration
private void OnIsJsonConfigExpandedChanging(bool oldValue, bool newValue)
Parameters
Type Name Description
bool oldValue

The previous property value that is being replaced.

bool newValue

The new property value being set.

Remarks

This method is invoked right before the value of IsJsonConfigExpanded is changed.

OnSelectedTimerSourceChanged(string?)

Executes the logic for when SelectedTimerSource just changed.

Declaration
private void OnSelectedTimerSourceChanged(string? value)
Parameters
Type Name Description
string value

The new property value that was set.

Remarks

This method is invoked right after the value of SelectedTimerSource is changed.

OnSelectedTimerSourceChanged(string?, string?)

Executes the logic for when SelectedTimerSource just changed.

Declaration
private void OnSelectedTimerSourceChanged(string? oldValue, string? newValue)
Parameters
Type Name Description
string oldValue

The previous property value that was replaced.

string newValue

The new property value that was set.

Remarks

This method is invoked right after the value of SelectedTimerSource is changed.

OnSelectedTimerSourceChanging(string?)

Executes the logic for when SelectedTimerSource is changing.

Declaration
private void OnSelectedTimerSourceChanging(string? value)
Parameters
Type Name Description
string value

The new property value being set.

Remarks

This method is invoked right before the value of SelectedTimerSource is changed.

OnSelectedTimerSourceChanging(string?, string?)

Executes the logic for when SelectedTimerSource is changing.

Declaration
private void OnSelectedTimerSourceChanging(string? oldValue, string? newValue)
Parameters
Type Name Description
string oldValue

The previous property value that is being replaced.

string newValue

The new property value being set.

Remarks

This method is invoked right before the value of SelectedTimerSource is changed.

RefreshSources()

Declaration
private void RefreshSources()

ToggleJsonConfigExpanded()

Declaration
[RelayCommand]
private void ToggleJsonConfigExpanded()

Implements

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.