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.Database
{
public interface IDatabaseStatusBarView : IBaseView { }
}

View File

@@ -0,0 +1,16 @@
using DTS.Common.Base;
// ReSharper disable CheckNamespace
namespace DTS.Common.Interface
{
public interface IFilterViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Search View.
/// </summary>
IBaseView View { get; set; }
IBaseViewModel Parent { get; set; }
object ContextSearchRegion { get; set; }
}
}

View File

@@ -0,0 +1,149 @@
<Popup x:Class="DTS.Common.Controls.ISOPopup"
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:converters="clr-namespace:DTS.Common.Converters"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Popup.Resources>
<converters:BooleanOrMultiConverter x:Key="BooleanOrMultiConverter" />
</Popup.Resources>
<Popup.Style>
<Style TargetType="Popup">
<Setter Property="IsOpen" Value="False"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding CodeType}" Value="ISO" />
<Condition Binding="{Binding ShowISOStringBuilder}" Value="True" />
<Condition Value="True">
<Condition.Binding>
<MultiBinding Converter="{StaticResource BooleanOrMultiConverter}">
<Binding ElementName="MainEditBox" Path="IsKeyboardFocused" />
<Binding ElementName="ISOPopup" Path="IsMouseOver" />
<Binding ElementName="ISOPopup" Path="IsKeyboardFocusWithin" />
<Binding ElementName="possibleChannels" Path="IsKeyboardFocusWithin"/>
</MultiBinding>
</Condition.Binding>
</Condition>
</MultiDataTrigger.Conditions>
<Setter Property="IsOpen" Value="True" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
</Popup.Style>
<Border Background="#FFEEEEEE" BorderBrush="#FF888888" BorderThickness="1" >
<StackPanel Orientation="Horizontal">
<StackPanel>
<TextBlock Text="Test Object" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding TestObject, Mode=TwoWay}" Name="txtTO" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupTestObjectTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Position" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding Position}" Name="txtPosition" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupPositionTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Main Location" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="40" Text="{Binding MainLocation}" Name="txtMainLoc" MaxLength="4" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupMainLocationTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Fine Loc1" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation1}" Name="txtFL1" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation1TextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Fine Loc2" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation2}" Name="txtFL2" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation2TextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Fine Loc3" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation3}" Name="txtFL3" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation3TextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Dimension" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding Dimension}" Name="txtDim" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupDimensionTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Direction" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding Direction}" Name="txtDir" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupDirectionTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
<StackPanel>
<TextBlock Text="Filter Class" Margin="5"/>
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding FilterClass}" Name="txtFilterClass" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
AutomationProperties.AutomationId="CCB_ISOPopupFilterClassTextBox">
<TextBox.InputBindings>
<KeyBinding Key="Enter"
Command="{local:UpdatePropertySourceWhenEnterPressed}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
</TextBox.InputBindings>
</TextBox>
</StackPanel>
</StackPanel>
</Border>
</Popup>

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using DTS.Common.Base;
namespace DTS.Common.Interface.TestDefinition
{
public interface ITestSummary : IBaseClass
{
string Id { get; set; }
string Name { get; set; }
string Description { get; set; }
int ChannelCount { get; set; }
DateTime TestDate { get; set; }
string DataType { get; set; }
bool IsSelected { get; set; }
List<ITestGraphs> Graphs { get; set; }
List<ITestChannel> Channels { get; set; }
List<ITestChannel> CalculatedChannels { get; set; }
IBaseViewModel Parent { get; set; }
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@@ -0,0 +1,14 @@
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
public class TextPastedEvent :CompositePresentationEvent<ITextPastedEventArgs> { }
public interface ITextPastedEventArgs
{
string Text { get; }
object Sender { get; }
string Id { get; }
object Tag{ get; }
}
}

View File

@@ -0,0 +1,67 @@
using System.Xml;
using System.Xml.Schema;
namespace DTS.Common.Interface.DASFactory.Config
{
public interface IConfigurationData
{
/// <summary>
/// Array of Module objects in the DAS.
/// </summary>
IDASModule[] Modules { get; set; }
/// <summary>
/// EID's for the whole DAS.
/// </summary>
IEID[] IDs { get; set; }
/// <summary>
/// The ID of the current test/event.
/// </summary>
string TestID { get; set; }
string TestSetupUniqueId { get; set; }
/// <summary>
/// A description of the current test/event.
/// </summary>
string Description { get; set; }
bool ClearSetup { get; set; }
/// <summary>
/// Counts how many channels are configured. If a channel's
/// 'IsConfigured' property is 'true' it is configured.
/// </summary>
/// <returns>Number of configured channels</returns>
int NumberOfConfiguredChannels();
/// <summary>
/// Count how many channels we have (regardless if they are configured or not).
/// </summary>
/// <returns>Total number of channels</returns>
int NumberOfChannels();
/// <summary>
/// Count how many downloadable channels (i.e. not UART or StreamOut) we have (regardless if they are configured or not).
/// </summary>
/// <returns>Total number of downloadable channels</returns>
int NumberOfDownloadChannels();
int[] DisplayOrder { get; set; }
int DasDisplayOrder { get; set; }
int GetDisplayOrder(uint channelIdx);
#region Serialization functions
void WriteXml(XmlWriter writer);
void ReadXml(XmlReader reader);
XmlSchema GetSchema();
/// <summary>
/// the Address the DAS receives UDP information from
/// used to control the OBR-DDR
/// </summary>
string UDPReceiveAddress { get; set; }
#endregion
}
}