27 lines
634 B
Plaintext
27 lines
634 B
Plaintext
|
|
using System.ComponentModel;
|
||
|
|
using DTS.Common.Converters;
|
||
|
|
using DTS.Common.Utils;
|
||
|
|
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
||
|
|
// ReSharper disable ConvertToAutoProperty
|
||
|
|
// ReSharper disable once CheckNamespace
|
||
|
|
|
||
|
|
namespace DTS.Common
|
||
|
|
{
|
||
|
|
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||
|
|
public enum T0Mode
|
||
|
|
{
|
||
|
|
[Description("DAS")]
|
||
|
|
DAS = 0,
|
||
|
|
[Description("Test")]
|
||
|
|
Test = 1,
|
||
|
|
}
|
||
|
|
|
||
|
|
public class T0ModeItemSource : IItemsSource
|
||
|
|
{
|
||
|
|
public ItemCollection GetValues()
|
||
|
|
{
|
||
|
|
return EnumUtil.GetValuesList<T0Mode>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|