init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
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 YRangeScaleEnum
|
||||
{
|
||||
[Description("Auto Range")]
|
||||
AutoRange = 0,
|
||||
[Description("% Full Scale")]
|
||||
FullScale = 1,
|
||||
[Description("Fixed")]
|
||||
Fixed = 2,
|
||||
[Description("Manual")]
|
||||
Manual = 3
|
||||
}
|
||||
public class YRangeScaleItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<YRangeScaleEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user