This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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 T0Mode
{
[Description("DAS")]
DAS = 0,
[Description("Test")]
Test = 1,
}
public class T0ModeItemSource : IItemsSource
{
public ItemCollection GetValues()
{
return EnumUtil.GetValuesList<T0Mode>();
}
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DTS.Common.Utils
{
public static class EnumUtil
{
public static IEnumerable<T> GetValues<T>()
{
return Enum.GetValues(typeof(T)).Cast<T>();
}
public static ItemCollection GetValuesList<T>()
{
var list = new ItemCollection();
foreach (var filter in Enum.GetValues(typeof(T)))
{
list.Add(filter, Enum.GetName(typeof(T), filter));
}
return list;
}
}
}

View File

@@ -0,0 +1,11 @@
namespace DTS.Common.Interface.Sensors.AnalogDiagnostics
{
public interface IDiagnosticRun
{
long? Id { get; set; }
string DataPROUser { get; set; }
int? TestId { get; set; }
string TestName { get; set; }
bool PreTest { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using DTS.Common.Interface.Realtime;
using Prism.Events;
namespace DTS.Common.Events.Realtime
{
/// <summary>
/// The RealtimeChannelSelectedEvent event.
/// this event is called whenever a realtime channel is selected and is used to notify realtime
/// </summary>
///
public class RealtimeChannelSelectedEvent : PubSubEvent<IRealtimeChannel> { }
}