using System; #pragma warning disable IDE0130 namespace CPSO { [Serializable] public class StatusBlockSettings : ISettings { // Variables private bool _visible; private AnnotationBackgroundType _backgroundType; private bool _drawBorder; // Properties public bool Visible { get => _visible; set => _visible = value; } public AnnotationBackgroundType BackgroundType { get => _backgroundType; set { if (value != _backgroundType) { _backgroundType = value; if (_backgroundType == AnnotationBackgroundType.White) _drawBorder = true; } } } public bool DrawBorder { get => _drawBorder; set => _drawBorder = value; } // Constructors public StatusBlockSettings() { Reset(); } // Methods public void CheckValues() { } public void Reset() { _visible = true; _backgroundType = AnnotationBackgroundType.None; _drawBorder = true; } } }