aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Diagnostics/Project/Widgets/Dispenser/DispenserWidgetSettings.cs
blob: c205c56cfdc4356a5fdbe94edc9753686a43d4ad (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace Tango.FSE.Diagnostics.Project.Widgets.Dispenser
{
    public class DispenserWidgetSettings : DiagnosticsWidgetSettings
    {
        private int _speed;
        public int Speed
        {
            get { return _speed; }
            set { _speed = value; RaisePropertyChangedAuto(); }
        }

        private Color _color;
        public Color Color
        {
            get { return _color; }
            set { _color = value; RaisePropertyChangedAuto(); }
        }

        public DispenserWidgetSettings()
        {
            Speed = 400;
            Color = Color.FromRgb(20, 20, 20);
        }

        public override FrameworkElement GetView()
        {
            return new DispenserWidgetSettingsView();
        }
    }
}