31 lines
767 B
Plaintext
31 lines
767 B
Plaintext
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>();
|
|
}
|
|
}
|
|
}
|