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,10 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="WindowRegionStyle" TargetType="Window">
<Setter Property="Background" Value="#FFDFE9F5" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="SizeToContent" Value="WidthAndHeight" />
</Style>
</ResourceDictionary>

View File

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

View File

@@ -0,0 +1,7 @@
namespace DTS.Common.Constant
{
public partial class XamlConstants
{
}
}

View File

@@ -0,0 +1,7 @@
using DTS.Common.Base;
// ReSharper disable CheckNamespace
namespace DTS.Common.Interface
{
public interface IChartOptionsView : IBaseView { }
}

View File

@@ -0,0 +1,48 @@
namespace DTS.Common.Interface.DASFactory.ARM
{
/// <summary>
/// Arm interface for a DAS unit.
/// </summary>
public interface IArmStatus
{
/// <summary>
/// marks the unit as being in arm
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
/// </summary>
void SetInArm(bool WriteToDb);
/// <summary>
/// marks the unit as being in realtime
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
/// </summary>
void SetInRealtime(bool WriteToDb, bool ExitRealtimeIfPossible);
/// <summary>
/// returns true if the unit is in known to be in Arm
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsInArm();
/// <summary>
/// returns true if unit is known to be in realtime
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsInRealtime();
/// <summary>
/// returns true if the unit is known to be streaming
/// does not query the hardware, just returns a flag if it has been set
/// </summary>
/// <returns></returns>
bool GetIsStreaming();
IArmStatusData DASArmStatus { get; set; }
/// <summary>
/// sets DASArmStatus and optionally stores in the db
/// </summary>
/// <param name="status"></param>
/// <param name="bSetInDb"></param>
void SetDASArmStatus(IArmStatusData status, bool bSetInDb);
/// <summary>
/// sets to the db (if connected) the current DASArmStatus
/// </summary>
void SetDASArmStatus();
}
}

View File

@@ -0,0 +1,29 @@
<UserControl x:Class="DTS.Common.Controls.TestIDView"
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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="703">
<UserControl.Resources>
<Style TargetType="TextBox" BasedOn="{StaticResource PageContentTextBoxStyle}" />
<Style TargetType="TextBlock" BasedOn="{StaticResource PageContentTextStyle}" />
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
<Style TargetType="PasswordBox" BasedOn="{StaticResource PageContentPasswordBoxStyle}" />
<Style TargetType="Button" BasedOn="{StaticResource PageContentButton}" />
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<ComboBox Grid.Column="0" ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdPrefixValueItem}"
AutomationProperties.AutomationId="TestIdPrefixComboBox"/>
<TextBlock Grid.Column="1" Text="{Binding TestSetupLabel, FallbackValue='Awesome Sauce'}" MinWidth="100" MaxWidth="150" Padding="0,0,5,0" TextTrimming="CharacterEllipsis" Visibility="Collapsed" AutomationProperties.AutomationId="TestIdTextBox"/>
<TextBox Grid.Column="2" Text="{Binding TestIdEditableText}" Width="150" Style="{StaticResource PageContentTextBoxStyleId}"
AutomationProperties.AutomationId="TestIdTextBox"/>
<ComboBox Grid.Column="3" ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdSuffixValueItem}"
AutomationProperties.AutomationId="TestIdSuffixComboBox"/>
</Grid>
</UserControl>

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace DTS.Common.XMLUtils
{
public class MetaDataXMLClass
{
[XmlAttribute]
public string TestObject { get; set; }
[XmlAttribute]
public string SetupName { get; set; }
[XmlAttribute]
public string PropName { get; set; }
[XmlAttribute]
public string PropValue { get; set; }
[XmlAttribute]
public string Optional { get; set; }
[XmlAttribute]
public string Version { get; set; }
}
}

View File

@@ -0,0 +1,102 @@
using System.Collections.Generic;
using static DTS.Common.Enums.DASFactory.DFConstantsAndEnums;
namespace DTS.Common.Interface.DASFactory
{
public interface IDiscoveredDevice
{
/// <summary>
/// Device Serial Number
/// </summary>
string Serial { get; set; }
MultiCastDeviceClasses DevClass { get; set; }
/// <summary>
/// Device Mac
/// </summary>
string Mac { get; set; }
IDiscoveredDevice Parent { get; set; }
bool IsParent(IDiscoveredDevice possibleChild);
int GetPort(IDiscoveredDevice device);
int GetSlot(IDiscoveredDevice child, Dictionary<string, IDiscoveredDevice> lookup);
int GetSlotOnPort(IDiscoveredDevice child, Dictionary<string, IDiscoveredDevice> lookup);
bool IsModule { get; set; }
/// <summary>
/// if I'm on a SLICE6DB, what port am I on
/// </summary>
int Port { get; set; }
/// <summary>
/// starting at the first device in the chain on the first point, up until the last device on the last chain/port, where is this device
/// this is used to as we don't show SLICE6 devices when on a SLICE6Db, but we still need to know which devices is where for showing
/// the channels in the UI
/// </summary>
int PositionOnDistributor { get; set; }
/// <summary>
/// where is this device in a chain of devices, only used for SLICE6 on a SLICE6Db right now
/// </summary>
int PositionOnChain { get; set; }
/// <summary>
/// Is DHCP enabled
/// </summary>
bool Dhcp { get; set; }
/// <summary>
/// Device IP
/// </summary>
string Ip { get; set; }
/// <summary>
/// Device Subnet
/// </summary>
string Subnet { get; set; }
/// <summary>
/// Device Gateway
/// </summary>
string Gateway { get; set; }
/// <summary>
/// Device DNS Sever
/// </summary>
string Dns { get; set; }
/// <summary>
/// Is Device connected to another host
/// </summary>
bool Connected { get; set; }
/// <summary>
/// Host IP that device is connected to
/// </summary>
string ConnectedIp { get; set; }
/// <summary>
/// Host Name Resolution that device is connected to
/// </summary>
string ConnectedHost { get; set; }
/// <summary>
/// User entry for Distributor ID that device is connected to
/// </summary>
ushort SystemId { get; set; }
/// <summary>
/// User entry for location of device
/// </summary>
string Location { get; set; }
/// <summary>
/// Firmware version string
/// [Product Name]-[FW/BL]-[REL/DBG]-[Board #]-[FW Ver Name]
/// </summary>
string FirmwareVersion { get; set; }
/// <summary>
/// Build Server number for the firmware
/// </summary>
string BuildId { get; set; }
IConnectedEthernetDevice[] Connections { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.Constant.DASSpecific
{
public class TDAS
{
public const uint MaxAAFilterRateHz = 4300;
}
}