blob: 188747646206099ccacf836c8625c61032bead55 (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
using Tango.PMR.Diagnostics;
namespace Tango.Emulations.Emulators
{
public class MachineEventState : ExtendedObject
{
private EventType _eventType;
public EventType EventType
{
get { return _eventType; }
set { _eventType = value; RaisePropertyChangedAuto(); }
}
public String Description
{
get { return _eventType.ToDescription(); }
}
private bool _isActive;
public bool IsActive
{
get { return _isActive; }
set { _isActive = value; RaisePropertyChangedAuto(); }
}
public static List<MachineEventState> GetAllEventsStates()
{
List<MachineEventState> states = new List<MachineEventState>();
foreach (var value in Enum.GetValues(typeof(EventType)).OfType<EventType>())
{
states.Add(new MachineEventState() { EventType = value });
}
return states;
}
}
}
|