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