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;
}
}
}