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,9 @@
using Prism.Regions;
namespace DTS.Common.Dialogs
{
public interface IRegionManagerAware
{
IRegionManager RegionManager { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
<UserControl x:Class="DTS.Common.Controls.TestIDTextBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:DTS.Common.Controls"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
d:DesignHeight="50" d:DesignWidth="300"
FocusManager.IsFocusScope="True" x:Name="TestIdTextBoxControl">
<UserControl.Resources>
<sys:Int32 x:Key="TESTID_LENGTH_MAX">50</sys:Int32>
</UserControl.Resources>
<TextBox x:Name="tbTestId" Text="{Binding ElementName=TestIdTextBoxControl, Path=Text, UpdateSourceTrigger=PropertyChanged}" BorderThickness="1,1,1,1" VerticalContentAlignment="Center" MaxLength="{StaticResource TESTID_LENGTH_MAX}"
PreviewTextInput="tbTestId_PreviewTextInput"/>
</UserControl>

View File

@@ -0,0 +1,5 @@
// ReSharper disable CheckNamespace
namespace DTS.Common.Base
{
public interface IBaseClass : IBasePropertyChanged { }
}

View File

@@ -0,0 +1,46 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System;
namespace DTS.Common.Interface.Groups
{
/// <summary>
/// Interface describing a Group in the Db
/// </summary>
public interface IGroupDbRecord
{
[Key]
[Column("Id")]
/// <summary>
/// The id/key of the Group record in the db
/// </summary>
int Id { get; set; }
[Column("SerialNumber")]
string SerialNumber { get; set; }
[Column("Picture")]
string Picture { get; set; }
[Column("DisplayName")]
string DisplayName { get; set; }
[Column("Description")]
string Description { get; set; }
[Column("Embedded")]
bool Embedded { get; set; }
[Column("LastModified")]
DateTime LastModified { get; set; }
[Column("LastModifiedBy")]
string LastModifiedBy { get; set; }
[Column("StaticGroupId")]
int? StaticGroupId { get; set; }
[Column("ExtraProperties")]
string ExtraProperties { get; set; }
}
}

View File

@@ -0,0 +1,6 @@
using Prism.Events;
namespace DTS.Common.Events.TSRAIRGo
{
public class StartStopDASScanEvent : PubSubEvent<bool> { }
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IGraphChannelView : IBaseView { }
}

View File

@@ -0,0 +1,70 @@
using System;
using System.ComponentModel;
using System.Globalization;
namespace DTS.Common.Classes.DSP
{
/// <summary>
/// this converter is used to display DSPFilterCollection in a property grid
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S101:Types should be named in PascalCase", Justification = "Acronym")]
public class DSPFilterConverter : ArrayConverter
{
private DSPFilterCollection _collection = null;
private static readonly object MyLock = new object();
private DSPFilterType[] _values = null;
private DSPFilterCollection GetCollection()
{
lock (MyLock)
{
if (null == _collection)
{
_collection = DSPFilterCollection.GetDSPFilterCollection();
}
return _collection;
}
}
public DSPFilterType [] Values
{
get
{
lock (MyLock)
{
if (null == _values)
{
var collection = GetCollection();
var array = new DSPFilterType[collection.Count];
collection.CopyTo(array, 0);
_values = array;
}
}
return _values;
}
}
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
if (sourceType == typeof(string)) { return true; }
return base.CanConvertFrom(context, sourceType);
}
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var result = Array.Find(Values, x => x.DisplayString == (string)value);
if (result != null) { return result; }
return base.ConvertFrom(context, culture, value);
}
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return true;
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
return true;
}
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
var collection = GetCollection();
return new StandardValuesCollection(collection);
}
}
}

View File

@@ -0,0 +1,37 @@
R-1\COM: ====================== START Channel =======================;
R-1\TK1-{CHANNEL NUMBER PLUS TIME CHANNEL}:{CHANNEL NUMBER PLUS TIME CHANNEL};
R-1\TK4-{CHANNEL NUMBER PLUS TIME CHANNEL}:{CHANNEL NUMBER PLUS TIME CHANNEL};
R-1\CHE-{CHANNEL NUMBER PLUS TIME CHANNEL}:T;
R-1\CDT-{CHANNEL NUMBER PLUS TIME CHANNEL}:PCMIN;
R-1\PDTF-{CHANNEL NUMBER PLUS TIME CHANNEL}:1;
R-1\PDP-{CHANNEL NUMBER PLUS TIME CHANNEL}:TM;
R-1\ICE-{CHANNEL NUMBER PLUS TIME CHANNEL}:0;
R-1\IST-{CHANNEL NUMBER PLUS TIME CHANNEL}:TTL;
R-1\PTF-{CHANNEL NUMBER PLUS TIME CHANNEL}:NONE;
P-{CHANNEL NUMBER}\TF:ONE;
P-{CHANNEL NUMBER}\F1:16;
P-{CHANNEL NUMBER}\F2:M;
P-{CHANNEL NUMBER}\F3:NO;
P-{CHANNEL NUMBER}\D1:NRZ-L;
P-{CHANNEL NUMBER}\D2:80000;
P-{CHANNEL NUMBER}\D4:N;
P-{CHANNEL NUMBER}\D6:N;
P-{CHANNEL NUMBER}\MF\N:1;
P-{CHANNEL NUMBER}\MF1:500;
P-{CHANNEL NUMBER}\MF2:8000;
P-{CHANNEL NUMBER}\MF4:16;
P-{CHANNEL NUMBER}\MF5:1110101110010000;
C-{CHANNEL NUMBER}\DCN:{CHANNEL NAME};
C-{CHANNEL NUMBER}\MN1:{CHANNEL NAME};
C-{CHANNEL NUMBER}\BFM:UNS;
C-{CHANNEL NUMBER}\DCT:COE;
C-{CHANNEL NUMBER}\CO\N:1;
C-{CHANNEL NUMBER}\CO:{CHANNEL OFFSET EU};
C-{CHANNEL NUMBER}\CO-1:{CHANNEL SCALEFACTOR EU};
C-{CHANNEL NUMBER}\MN3:{CHANNEL EU};
C-{CHANNEL NUMBER}\MOT1:{CHANNEL MAX RANGE EU};
C-{CHANNEL NUMBER}\MOT3:{CHANNEL MAX RANGE EU};
C-{CHANNEL NUMBER}\MOT5:{CHANNEL MAX RANGE EU};
C-{CHANNEL NUMBER}\MOT2:{CHANNEL MIN RANGE EU};
C-{CHANNEL NUMBER}\MOT4:{CHANNEL MIN RANGE EU};
C-{CHANNEL NUMBER}\MOT6:{CHANNEL MIN RANGE EU};