blob: 2ebb1f127fba6687e9d2aabbc19b01268a8677ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
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 };
}
}
}
|