2015-06-07 10:13:09 -04:00
|
|
|
|
using System.Windows.Media;
|
2015-07-09 17:05:42 -04:00
|
|
|
|
using Filtration.ObjectModel.LootExplosionStudio;
|
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 IntegerBlockItem : BlockItemBase, IAudioVisualBlockItem
|
2015-06-04 13:15:54 -04:00
|
|
|
|
{
|
|
|
|
|
private int _value;
|
|
|
|
|
|
|
|
|
|
protected IntegerBlockItem()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected IntegerBlockItem(int value)
|
|
|
|
|
{
|
|
|
|
|
Value = value;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-23 17:21:10 -04:00
|
|
|
|
public override string OutputText
|
|
|
|
|
{
|
|
|
|
|
get { return PrefixText + " " + Value; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-07 10:13:09 -04: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 13:15:54 -04:00
|
|
|
|
|
|
|
|
|
public abstract int Minimum { get; }
|
|
|
|
|
public abstract int Maximum { get; }
|
|
|
|
|
|
|
|
|
|
public int Value
|
|
|
|
|
{
|
|
|
|
|
get { return _value; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_value = value;
|
|
|
|
|
OnPropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|