30 lines
768 B
Plaintext
30 lines
768 B
Plaintext
|
|
using System.ComponentModel;
|
||
|
|
using DTS.Common.Converters;
|
||
|
|
using DTS.Common.Utils;
|
||
|
|
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
||
|
|
|
||
|
|
// ReSharper disable CheckNamespace
|
||
|
|
|
||
|
|
namespace DTS.Common.Enums.Viewer
|
||
|
|
{
|
||
|
|
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||
|
|
public enum WakeMethodTypeEnum
|
||
|
|
{
|
||
|
|
[Description("None")]
|
||
|
|
None = 0,
|
||
|
|
[Description("Motion detect")]
|
||
|
|
MotionDetect = 1,
|
||
|
|
[Description("Time session")]
|
||
|
|
TimeSession = 2,
|
||
|
|
[Description("Magnet")]
|
||
|
|
Magnet = 3,
|
||
|
|
}
|
||
|
|
public class WakeMethodTypeItemSource : IItemsSource
|
||
|
|
{
|
||
|
|
public ItemCollection GetValues()
|
||
|
|
{
|
||
|
|
return EnumUtil.GetValuesList<WakeMethodTypeEnum>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|