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,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IHardwareScanView : IBaseView { }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IAssemblyViewModel : IBaseViewModel
{
IAssemblyView View { get; set; }
string GroupName { get; set; }
List<AssemblyNameImage> AssemblyList { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace DTS.Common.Converters
{
public class DateTimeWithMillisecondsToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return Utils.Utils.FormatTimeStamp(System.Convert.ToDateTime(value));
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
}
}

View File

@@ -0,0 +1,31 @@
using DTS.Common.Enums;
using System;
using System.ComponentModel.DataAnnotations;
namespace DTS.Common.Interface.Sensors
{
public interface IStreamInputRecord
{
/// <summary>
/// the database id of the sensor
/// </summary>
[Key]
int Id { get; set; }
/// <summary>
/// Serial number of sensor
/// [required to be unique]
/// </summary>
[Required]
[StringLength(50)]
string SerialNumber { get; set; }
DateTime LastModified { get; set; }
string LastUpdatedBy { get; set; }
/// <summary>
/// bytes representing a delimited string of tag ids
/// </summary>
byte[] TagsBlobBytes { get; set; }
bool DoNotUse { get; set; }
bool Broken { get; set; }
string StreamInUDPAddress { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using DTS.Common.Base;
using DTS.Common.Interface.TestDefinition;
// ReSharper disable CheckNamespace
namespace DTS.Common.Interface
{
public interface ITestSummaryListViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Shell View.
/// </summary>
ITestSummaryListView View { get; }
ObservableCollection<ITestSummary> TestSummaryList { get; set; }
List<ITestSummary> SelectedTestSummaryList { get; set; }
void PublishSelectedTestSummaryList();
void TestSummaryList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e);
}
}

View File

@@ -0,0 +1,13 @@
namespace DTS.Common.Enums.SettingsExport
{
/// <summary>
/// possible root tags in the xml
/// </summary>
public enum TopLevelFields
{
GlobalSettings,
TestSetupDefaultSettings,
SensorSettings,
TestHistorySettings
}
}

View File

@@ -0,0 +1,27 @@
using DTS.Common.Converters;
using DTS.Common.Utils;
using System.ComponentModel;
namespace DTS.Common.Enums
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum CanArbBaseBitrate
{
[Description("CanArbBaseBitrate_50000")]
_50000 = 50000,
[Description("CanArbBaseBitrate_62000")]
_62000 = 62000,
[Description("CanArbBaseBitrate_83000")]
_83000 = 83000,
[Description("CanArbBaseBitrate_100000")]
_100000 = 100000,
[Description("CanArbBaseBitrate_125000")]
_125000 = 125000,
[Description("CanArbBaseBitrate_250000")]
_250000 = 250000,
[Description("CanArbBaseBitrate_500000")]
_500000 = 500000,
[Description("CanArbBaseBitrate_1000000")]
_1000000 = 1000000
}
}