35 lines
905 B
Plaintext
35 lines
905 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 ChartUnitTypeEnum
|
||
|
|
{
|
||
|
|
[Description("EU")]
|
||
|
|
EU = 0,
|
||
|
|
[Description("mV")]
|
||
|
|
mV = 1,
|
||
|
|
[Description("ADC")]
|
||
|
|
ADC = 2,
|
||
|
|
//6402 Implement ability to switch to FFT live in the Review
|
||
|
|
[Description("FFT")]
|
||
|
|
FFT = 3,
|
||
|
|
// 25554 implement Power Spectral Density type
|
||
|
|
[Description("PSD")]
|
||
|
|
PSD = 4
|
||
|
|
}
|
||
|
|
public class ChartUnitTypeItemSource : IItemsSource
|
||
|
|
{
|
||
|
|
public ItemCollection GetValues()
|
||
|
|
{
|
||
|
|
return EnumUtil.GetValuesList<ChartUnitTypeEnum>();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|