Filtration/Filtration.ObjectModel/BlockItemTypes/WidthBlockItem.cs

73 lines
1.5 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 WidthBlockItem : NumericFilterPredicateBlockItem
2015-06-04 13:15:54 -04:00
{
public WidthBlockItem()
{
}
public WidthBlockItem(FilterPredicateOperator predicateOperator, int predicateOperand)
: base(predicateOperator, predicateOperand)
{
}
public override string PrefixText
{
get { return "Width"; }
}
public override int MaximumAllowed
{
get { return 2; }
}
public override string DisplayHeading
{
get
{
return "Width";
}
}
public override string SummaryText
{
get { return "Width " + FilterPredicate; }
}
public override Color SummaryBackgroundColor
{
2015-06-06 15:44:38 -04:00
get { return Colors.MediumPurple; }
2015-06-04 13:15:54 -04:00
}
public override Color SummaryTextColor
{
get { return Colors.White; }
}
public override int SortOrder
{
get { return 7; }
}
public override int Minimum
{
get
{
return 0;
}
}
public override int Maximum
{
get
{
return 2;
}
}
}
}