[DataContract]
internal class MyTextSettings : INotifyPropertyChanged
{
#region Properties
private decimal SignalLevel { get; set; }
[Browsable(false)]
internal int Exceptions { get; set; } = 0;
[Browsable(false)]
internal bool LogToScreen { get; set; } = false;
[Browsable(false)]
internal bool LoggingLevelEnabled { get; set; } = false;
[DataMember]
[Display(Name = "Enable", GroupName = "Common", Description = "Enable/Disable")]
public bool Enable { get; set; }
[DataMember]
[Display(Name = "HorizontalOffset", GroupName = "Common", Description = "LabelOffsetXDescription")]
[Range(-1500, 1500)]
public int HorizontalOffset { get; set; }
[DataMember]
[Display(Name = "VerticalOffset", GroupName = "Common", Description = "LabelOffsetYDescription")]
[Range(-1500, 1500)]
public int VerticalOffset { get; set; }
[DataMember]
[Browsable(true)]
[Display(Name = "Additional text", GroupName = "SecondLine", Description = "Only visible, if user comment contains data.")]
public string AdditionalText { get; set; } = "";
#endregion
#region ctor
internal MyTextSettings()
{
TextLocation = Location.TopRight;
HorizontalOffset = 0;
VerticalOffset = 25;
ShowInstrument = false;
ShowPeriod = false;
Font.Size = 25;
Font.FontFamily = "Arial";
Font.PropertyChanged += PropertyChanged;
AdditionalFont = Font;
}
#endregion
}