init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
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 DataFlag
|
||||
{
|
||||
[Description("None")]
|
||||
None = 0,
|
||||
[Description("Normal")]
|
||||
Normal = 1,
|
||||
[Description("Saturated")]
|
||||
Saturated = 2,
|
||||
[Description("Zero Crossing Error")]
|
||||
ZeroCrossing = 3,
|
||||
[Description("Broken Wire")]
|
||||
BrokenWire = 4,
|
||||
[Description("Other")]
|
||||
Other = -1
|
||||
}
|
||||
|
||||
public class DataFlagItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<DataFlag>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user