using Prism.Mvvm;
using System.Windows;
using System.Windows.Media;

namespace BOB.ViewModels.UserControls
{
    public class NumericalDisplayViewModel : BindableBase
    {
        public NumericalDisplayViewModel()
        {
                
        }
        private string _channelNumber = string.Empty;
        private double _MonitorValue = double.NaN;
        private double _upperLimit = double.NaN;
        private double _lowerLimit = double.NaN;
        private SolidColorBrush _textColor = Brushes.Green;
        private SolidColorBrush _backgroundColor = Brushes.White;
        private Visibility _limitsVisibility = Visibility.Visible;

        // 通道号
        public string ChannelNumber
        {
            get => _channelNumber;
            set => SetProperty(ref _channelNumber, value);
        }

        public double MonitorValue
        {
            get => _MonitorValue;
            set => SetProperty(ref _MonitorValue, value);
        }

        // 上限
        public double UpperLimit
        {
            get => _upperLimit;
            set => SetProperty(ref _upperLimit, value);
        }

        // 下限
        public double LowerLimit
        {
            get => _lowerLimit;
            set => SetProperty(ref _lowerLimit, value);
        }

        // 文字颜色
        public SolidColorBrush TextColor
        {
            get => _textColor;
            set => SetProperty(ref _textColor, value);
        }

        // 背景颜色
        public SolidColorBrush BackgroundColor
        {
            get => _backgroundColor;
            set => SetProperty(ref _backgroundColor, value);
        }

        // 上下限可见度
        public Visibility LimitsVisibility
        {
            get => _limitsVisibility;
            set => SetProperty(ref _limitsVisibility, value);
        }
    }
}
