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,32 @@
using DTS.Common.Enums;
using System;
using System.Windows.Data;
using System.Windows.Media;
namespace DTS.Common.Converters
{
public class StatusToColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if( !(value is UIItemStatus itemStatus))
{
return Brushes.Transparent;
}
switch (itemStatus)
{
case UIItemStatus.None: return Brushes.Black;
case UIItemStatus.Success: return BrushesAndColors.Brush_ApplicationStatus_Complete;
case UIItemStatus.Failed: return BrushesAndColors.Brush_ApplicationStatus_Failed;
case UIItemStatus.Error: return Brushes.Red;
case UIItemStatus.Warning: return Brushes.OrangeRed;
}
return Brushes.Black;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
}

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,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,10 @@
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
public class NavigateFromTSRAIRGoToDataPROEvent : CompositePresentationEvent<NavigateFromTSRAIRGoToDataPROArg> { }
public class NavigateFromTSRAIRGoToDataPROArg
{
}
}

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
}
}