Class ManualChannelItem
One row in ManualChannels. Bound to a slider in the card view; the block reads Value on every frame when WeightSource is Manual.
Inherited Members
Namespace: MOSAIC.Models.Streaming
Assembly: MOSAIC.dll
Syntax
public class ManualChannelItem : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Fields
_label
Declaration
[ObservableProperty]
private string _label
Field Value
| Type | Description |
|---|---|
| string |
_value
Declaration
[ObservableProperty]
private double _value
Field Value
| Type | Description |
|---|---|
| double |
Properties
Index
Declaration
public int Index { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Label
Declaration
[ExcludeFromCodeCoverage]
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Declaration
[ExcludeFromCodeCoverage]
public double Value { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
OnLabelChanged(string)
Executes the logic for when Label just changed.
Declaration
private void OnLabelChanged(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 Label is changed.
OnLabelChanged(string?, string)
Executes the logic for when Label just changed.
Declaration
private void OnLabelChanged(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 Label is changed.
OnLabelChanging(string)
Executes the logic for when Label is changing.
Declaration
private void OnLabelChanging(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The new property value being set. |
Remarks
This method is invoked right before the value of Label is changed.
OnLabelChanging(string?, string)
Executes the logic for when Label is changing.
Declaration
private void OnLabelChanging(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 Label is changed.
OnValueChanged(double)
Executes the logic for when Value just changed.
Declaration
private void OnValueChanged(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The new property value that was set. |
Remarks
This method is invoked right after the value of Value is changed.
OnValueChanged(double, double)
Executes the logic for when Value just changed.
Declaration
private void OnValueChanged(double oldValue, double newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | oldValue | The previous property value that was replaced. |
| double | newValue | The new property value that was set. |
Remarks
This method is invoked right after the value of Value is changed.
OnValueChanging(double)
Executes the logic for when Value is changing.
Declaration
private void OnValueChanging(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The new property value being set. |
Remarks
This method is invoked right before the value of Value is changed.
OnValueChanging(double, double)
Executes the logic for when Value is changing.
Declaration
private void OnValueChanging(double oldValue, double newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | oldValue | The previous property value that is being replaced. |
| double | newValue | The new property value being set. |
Remarks
This method is invoked right before the value of Value is changed.