using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; using Tango.Core; namespace Tango.FSE.Diagnostics.Project.Widgets.RealTimeGraph { public class RealTimeGraphWidgetSettings : DiagnosticsWidgetSettings { private TimeSpan _duration; public TimeSpan Duration { get { return _duration; } set { _duration = value; RaisePropertyChangedAuto(); } } private int _decimalPlaces; public int DecimalPlaces { get { return _decimalPlaces; } set { _decimalPlaces = value; RaisePropertyChangedAuto(); } } private double _min; public double Min { get { return _min; } set { _min = value; RaisePropertyChangedAuto(); } } private double _max; public double Max { get { return _max; } set { _max = value; RaisePropertyChangedAuto(); } } private bool _autoRange; public bool AutoRange { get { return _autoRange; } set { _autoRange = value; RaisePropertyChangedAuto(); } } private Color _color; public Color Color { get { return _color; } set { _color = value; RaisePropertyChangedAuto(); } } public RealTimeGraphWidgetSettings() { Duration = TimeSpan.FromMinutes(10); DecimalPlaces = 0; Min = 0; Max = 1000; AutoRange = true; Color = Colors.DodgerBlue; } public override FrameworkElement GetView() { return new RealTimeGraphWidgetSettingsView() { DataContext = this }; } } }