Filtration/Filtration.ObjectModel/BlockItemTypes/HeightBlockItem.cs

70 lines
1.4 KiB
C#
Raw Normal View History

2015-06-04 13:15:54 -04:00
using System.Windows.Media;
2015-06-24 14:57:16 -04:00
using Filtration.ObjectModel.BlockItemBaseTypes;
using Filtration.ObjectModel.Enums;
2015-06-04 13:15:54 -04:00
2015-06-24 14:57:16 -04:00
namespace Filtration.ObjectModel.BlockItemTypes
2015-06-04 13:15:54 -04:00
{
2015-06-24 14:57:16 -04:00
public class HeightBlockItem : NumericFilterPredicateBlockItem
2015-06-04 13:15:54 -04:00
{
public HeightBlockItem()
{
}
public HeightBlockItem(FilterPredicateOperator predicateOperator, int predicateOperand)
: base(predicateOperator, predicateOperand)
{
}
public override string PrefixText
{
get { return "Height"; }
}
public override int MaximumAllowed
{
get { return 2; }
}
public override string DisplayHeading
{
get { return "Height"; }
}
public override string SummaryText
{
get { return "Height " + FilterPredicate; }
}
public override Color SummaryBackgroundColor
{
2015-06-06 15:44:38 -04:00
get { return Colors.LightBlue; }
2015-06-04 13:15:54 -04:00
}
public override Color SummaryTextColor
{
2015-06-06 15:44:38 -04:00
get { return Colors.Black; }
2015-06-04 13:15:54 -04:00
}
public override int SortOrder
{
get { return 8; }
}
public override int Minimum
{
get
{
return 0;
}
}
public override int Maximum
{
get
{
return 6;
}
}
}
}