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 GetAllEventsStates() { List states = new List(); foreach (var value in Enum.GetValues(typeof(EventType)).OfType()) { states.Add(new MachineEventState() { EventType = value }); } return states; } } }