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,11 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The Data Folder changed event.
/// </summary>
public class CursorShowMinMaxChangedEvent : PubSubEvent<bool> { }
}

View File

@@ -0,0 +1,30 @@
using DTS.Common.Interface.Hardware;
using System;
using System.Windows;
using System.Windows.Data;
// ReSharper disable PossibleNullReferenceException
namespace DTS.Common.Converters
{
public class DiagStatusOffsetColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is DiagStatuses status)
{
if (status == DiagStatuses.NoResults) { return BrushesAndColors.Brush_ApplicationStatus_Idle; }
if ((status & DiagStatuses.FailedOffset) == DiagStatuses.FailedOffset)
{
return BrushesAndColors.Brush_ApplicationStatus_Failed;
}
return BrushesAndColors.Brush_ApplicationStatus_Complete;
}
return BrushesAndColors.Brush_ApplicationStatus_Idle;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value.Equals(true) ? parameter : Binding.DoNothing;
}
}
}

View File

@@ -0,0 +1,17 @@
using System;
namespace DTS.Common.Interface.DASFactory.Diagnostics
{
public interface ICanDiagnosticResult
{
string ChannelName { get; set; }
bool Active { get; set; }
int ChannelIndex { get; set; }
int Data { get; set; }
int ErrorFrame { get; set; }
double Load { get; set; }
int Overruns { get; set; }
DateTime LastUpdate { get; set; }
void Copy(ICanDiagnosticResult source);
}
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.Constant.DASSpecific
{
public class SLICE2
{
public const uint MaxAAFilterRateHz = 200000;
public const int SLICE1_5_BASETYPE = 2;
public const int SLICEPRO_DIM_BASETYPE = 3;
public const int SLICEPRO_TOM_BASETYPE = 5;
public const byte MIN_PROTOCOL_VER = 128;
public const int FILE_DATA = 133;
public const int MULTIPLE_EVENTS = 134;
public const int STACK_SENSORS = 136;
public const int STACK_FIRMWARE_UPDATE = 137;
public const int DIAGNOSTIC_TWO_VOLT_EXCITATION = 138;
public const int QUERY_ARM_AND_TRIGGER_STATUS_TIME_LEFT_IN_ARM = 139;
public const byte MIN_PROTOCOL_VER_GEN3 = 140;
public const int SLICE2_ONE_WIRE_ID = 142;
public const int EVENT_ARM_ATTEMPTS = 145;
public const int MEASURE_INTERNAL_OFFSET = 149;
public const int START_REC_DELAY_IN_SECONDS = 150;
public const int START_REALTIME_STREAM = 152;
public const int HALF_BRIDGE_SIG_PLUS_SUPPORT = 154;
}
}

View File

@@ -0,0 +1,19 @@
using System.ComponentModel;
using DTS.Common.Base;
// ReSharper disable CheckNamespace
namespace DTS.Common.Interface
{
public interface ITestEvent : INotifyPropertyChanged
{
string TestId { get; set; }
string TestItem { get; set; }
string DTSFile { get; set; }
bool IsLocked { get; set; }
bool IsSelected { get; set; }
bool CanLock { get; set; }
IBaseViewModel Parent { get; set; }
string Name { get; set; }
int TreeIndex { get; set; }
}
}