init
This commit is contained in:
26
Common/DTS.CommonCore/Enums/T0Mode.cs
Normal file
26
Common/DTS.CommonCore/Enums/T0Mode.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user