Filtration/Filtration.ObjectModel/BlockItemBaseTypes/BlockItembase.cs

29 lines
1.0 KiB
C#
Raw Normal View History

using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Media;
2015-06-24 14:57:16 -04:00
using Filtration.ObjectModel.Annotations;
2015-06-24 14:57:16 -04:00
namespace Filtration.ObjectModel.BlockItemBaseTypes
{
2015-06-24 14:57:16 -04:00
public abstract class BlockItemBase : IItemFilterBlockItem
{
public abstract string PrefixText { get; }
2015-06-23 17:21:10 -04:00
public abstract string OutputText { get; }
public abstract int MaximumAllowed { get; }
public abstract string DisplayHeading { get; }
public abstract string SummaryText { get; }
public abstract Color SummaryBackgroundColor { get; }
public abstract Color SummaryTextColor { get; }
public abstract int SortOrder { get; }
public event PropertyChangedEventHandler PropertyChanged;
2015-06-24 14:57:16 -04:00
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
var handler = PropertyChanged;
if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}