Filtration/Filtration.ObjectModel/BlockItemBaseTypes/DualIntegerBlockItem.cs

49 lines
1.2 KiB
C#
Raw Normal View History

using System.Windows.Media;
2015-06-04 13:15:54 -04:00
2015-06-24 14:57:16 -04:00
namespace Filtration.ObjectModel.BlockItemBaseTypes
2015-06-04 13:15:54 -04:00
{
2015-06-24 14:57:16 -04:00
public abstract class DualIntegerBlockItem : BlockItemBase, IAudioVisualBlockItem
2015-06-04 13:15:54 -04:00
{
private int _value;
private int _secondValue;
protected DualIntegerBlockItem()
{
}
protected DualIntegerBlockItem(int value, int secondValue)
{
Value = value;
SecondValue = secondValue;
}
public override string OutputText => PrefixText + " " + Value + " " + SecondValue;
public override string SummaryText => string.Empty;
public override Color SummaryBackgroundColor => Colors.Transparent;
public override Color SummaryTextColor => Colors.Transparent;
2015-06-04 13:15:54 -04:00
public int Value
{
get { return _value; }
set
{
_value = value;
IsDirty = true;
2015-06-04 13:15:54 -04:00
OnPropertyChanged();
}
}
public int SecondValue
{
get { return _secondValue; }
set
{
_secondValue = value;
IsDirty = true;
2015-06-04 13:15:54 -04:00
OnPropertyChanged();
}
}
}
}