26 lines
628 B
Plaintext
26 lines
628 B
Plaintext
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 TimeUnitTypeEnum
|
|
{
|
|
[Description("ms")]
|
|
MS = 0,
|
|
[Description("Seconds")]
|
|
Seconds = 1,
|
|
}
|
|
public class TimeUnitTypeItemSource : IItemsSource
|
|
{
|
|
public ItemCollection GetValues()
|
|
{
|
|
return EnumUtil.GetValuesList<TimeUnitTypeEnum>();
|
|
}
|
|
}
|
|
}
|