This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -0,0 +1,13 @@
using DTS.Common.Base;
using DTS.Common.Enums;
namespace DTS.Common.Interface.Groups.GroupChannelList
{
/// <summary>
/// view for group channels
/// </summary>
public interface IGroupChannelListView : IBaseView
{
void HandleColumns(IsoViewMode viewMode);
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Windows;
using System.Windows.Data;
namespace DTS.Common.Converters
{
/// <summary>
/// Represents the converter that converts Text (GroupName) values to and from <see cref="Visibility">Visibility</see> enumeration values.
/// </summary>
public class GroupNameToVisibilityConverter : IValueConverter
{
/// <summary>
/// Converts a Group Name value to a Visibility enumeration value.
/// </summary>
/// <param name="value">The Boolean value to convert. This value can be a standard Boolean value or a nullable Boolean value.</param>
/// <param name="targetType">This parameter is not used.</param>
/// <param name="parameter">The converter parameter to use.</param>
/// <param name="culture">This parameter is not used.</param>
/// <returns>The value to be passed to the target dependency property.</returns>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value != null && value.ToString().Trim().StartsWith("Graph")) { return Visibility.Visible; }
return Visibility.Collapsed;
}
/// <summary>
///
/// </summary>
/// <param name="value">A Visibility enumeration value.</param>
/// <param name="targetType">This parameter is not used.</param>
/// <param name="parameter">This parameter is not used.</param>
/// <param name="culture">This parameter is not used.</param>
/// <returns>The value to be passed to the source object.</returns>
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,73 @@
using DTS.Common.Enums;
namespace DTS.Common.Events
{
/// <summary>
/// Event args for the <see cref="DTS.Common.Interactivity.InteractionRequest.Confirmation.Content"/> event.
/// </summary>
public class NotificationContentEventArgs
{
/// <summary>
/// Gets the message of the notification.
/// </summary>
public string Message { get; }
/// <summary>
/// Gets the notification details.
/// </summary>
public string MessageDetails { get; }
/// <summary>
/// Gets the image for the notification window.
/// </summary>
public PopupWindowImage Image { get; }
public string Title { get; }
/// <summary>
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="messageDetails">Notification details</param>
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
/// <param name="title">The title of the notification window.</param>
public NotificationContentEventArgs(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error, string title = "")
{
Message = message;
MessageDetails = messageDetails;
Image = image;
Title = title;
}
}
public class NotificationContentEventArgsWithoutTitle
{
/// <summary>
/// Gets the message of the notification.
/// </summary>
public string Message { get; }
/// <summary>
/// Gets the notification details.
/// </summary>
public string MessageDetails { get; }
/// <summary>
/// Gets the image for the notification window.
/// </summary>
public PopupWindowImage Image { get; }
/// <summary>
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="messageDetails">Notification details</param>
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
public NotificationContentEventArgsWithoutTitle(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error)
{
Message = message;
Image = image;
MessageDetails = messageDetails;
}
}
}

View File

@@ -0,0 +1,23 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// this event is called currently whenever a test is modified by the viewer
/// it's used currently by datapro to regenerate an roi when an event is modified
/// </summary>
public class TestModificationEvent : PubSubEvent<TestModificationArgs> { }
public class TestModificationArgs
{
public string DataSetDirectory { get; private set; }
public string TestId { get; private set; }
public TestModificationArgs(string dtsFilePath, string testId)
{
DataSetDirectory = dtsFilePath;
TestId = testId;
}
}
}

View File

@@ -0,0 +1,39 @@
using System;
namespace DTS.Common.Interface.DASFactory
{
public interface IUDPQATSEntry
{
string ResponseHostMac { get; }
string ResponseClientMacAddress { get; }
string SerialNumber { get; }
byte ArmState { get; }
byte ArmMode { get; }
byte Started { get; }
byte Triggered { get; }
byte FaultFlags { get; }
uint SampleRate { get; }
ulong TotalSamples { get; }
ulong CurrentSample { get; }
ushort EventNumber { get; }
ulong FaultSampleNumber { get; }
ushort LegacyFaultFlags { get; }
float InputVoltage { get; }
float BackupVoltage { get; }
float BatterySOC { get; }
ulong EstimateMaxSamples { get; }
short TiltSensorCh1 { get; }
short TiltSensorCh2 { get; }
short TiltSensorCh3 { get; }
float SysTempC { get; }
byte SyncClockEnable { get; }
byte ADCExtClockSyncEnable { get; }
byte SyncClockStatus { get; }
byte ADCExtClockSyncStatus { get; }
ulong EventTriggerSample { get; }
float[] ChannelOffsetMV { get; }
float[] ShuntDeviationPercent { get; }
DateTime Timestamp { get; }
}
}

View File

@@ -0,0 +1,47 @@
<UserControl x:Class="DTS.Common.Controls.GridViewColumnHeaderSelectable"
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:strings="clr-namespace:DTS.Common.Strings"
mc:Ignorable="d"
x:Name="dtsGridViewColumnHeader"
d:DesignHeight="20" d:DesignWidth="200">
<UserControl.Resources>
<ResourceDictionary>
<Geometry x:Key="DownArrowIconGeometry">F0 M 0,0L 10,0L 5,7L 0,0 Z</Geometry>
<local:BoolToInvertedBoolConverter x:Key="BoolToInvertedBoolConverter"/>
<Style TargetType="Button" BasedOn="{StaticResource PageContentButtonDark}" />
</ResourceDictionary>
</UserControl.Resources>
<Grid DataContext="{Binding ElementName=dtsGridViewColumnHeader}" x:Name="mainGrid" Height="20" MaxHeight="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0" Grid.Column="0" PreviewMouseLeftButtonDown="PreviewLeftButtonUp">
<TextBlock Text="{Binding Path=HeaderTitle, FallbackValue='I Should Not Be Here'}" HorizontalAlignment="Left" Margin="5,0,5,0" />
</Border>
<!--<Button Grid.Column="0" Content="{Binding Path=HeaderTitle, FallbackValue='I should not be here'}" HorizontalAlignment="Left" Margin="5,0,5,0" Click="ButtonClick" /> -->
<ToggleButton Grid.Column="1" x:Name="TogglePopupButton" Width="20" Height="20" MaxWidth="20" MaxHeight="20" IsEnabled="{Binding ElementName=ToggledPopup, Path=IsOpen, Converter={StaticResource BoolToInvertedBoolConverter}}"
IsChecked="{Binding ToggleButtonIsChecked, Mode=TwoWay, FallbackValue=True}">
<Path x:Name="BtnArrow" VerticalAlignment="Center" HorizontalAlignment="Center" Width="8" Fill="#FF527DB5" Stretch="Uniform"
Data="{Binding ToggleIconGeometry, FallbackValue={StaticResource DownArrowIconGeometry}}"/>
</ToggleButton>
<Popup Grid.Column="0" Grid.ColumnSpan="2" x:Name="ToggledPopup" HorizontalAlignment="Stretch" Placement="Bottom" VerticalAlignment="Stretch" StaysOpen="False" IsOpen="{Binding ToggleButtonIsChecked, Mode=TwoWay}" >
<Border Background="#FFEEEEEE" BorderBrush="#FF888888" BorderThickness="1">
<Grid HorizontalAlignment="Stretch" Margin="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Padding="10 5" Content="{x:Static strings:Strings.SelectAll}" Click="SelectAllButton_OnClick" />
<Button Grid.Column="1" Padding="10 5" Content="{x:Static strings:Strings.ClearAll}" Click="ClearAllButton_OnClick"/>
</Grid>
</Border>
</Popup>
</Grid>
<!--</GridViewColumnHeader>-->
</UserControl>