Add AbnormalStyle.Underline; use toggle buttons.

This commit is contained in:
Daniel Kraus
2015-08-25 06:12:53 +02:00
parent cde32f0a7e
commit 36e10d05fd
4 changed files with 45 additions and 4 deletions

View File

@ -162,6 +162,29 @@ namespace zaaReloaded2.ViewModels
}
}
/// <summary>
/// Gets or sets whether abnormal values shall be underlined.
/// </summary>
public bool AbnormalUnderline
{
get
{
return _settings.AbnormalStyle.HasFlag(AbnormalStyle.Underline);
}
set
{
if (value)
{
_settings.AbnormalStyle |= AbnormalStyle.Underline;
}
else
{
_settings.AbnormalStyle &= ~AbnormalStyle.Underline;
}
OnPropertyChanged("AbnormalUnderline");
}
}
#endregion
#region Constructors