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,31 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/brushes.xaml" />
</ResourceDictionary.MergedDictionaries>
<Color x:Key="ColorLightChartBackground" A="#FF" R="#FF" G="#FF" B="#FF"/>
<Color x:Key="ColorLightChartForeground" A="#FF" R="#00" G="#00" B="#00" ScA="1"/>
<SolidColorBrush x:Key="Brush_ChartZoomBackground" Color="#11000000" />
<SolidColorBrush x:Key="BrushChartForeground" Color="{StaticResource ColorLightChartForeground}" />
<SolidColorBrush x:Key="BrushChartBackground" Color="{StaticResource ColorLightChartBackground}" />
<Style x:Key="LineChartAxisStyle" TargetType="c1:Axis">
<Setter Property="Position" Value="DisableLastLabelOverflow" />
</Style>
<Style x:Key="LineChartStyle" TargetType="c1:C1Chart">
<Setter Property="Foreground" Value="{StaticResource BrushChartForeground}" />
<Setter Property="Background" Value="{StaticResource BrushChartBackground}" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="10" />
<Setter Property="Padding" Value="10" />
<Setter Property="ChartType" Value="LineSmoothed" />
<Setter Property="FontFamily" Value="Segoe UI Light" />
<Setter Property="FontSize" Value="14"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="MinHeight" Value="200" />
<Setter Property="MinWidth" Value="300" />
</Style>
</ResourceDictionary>

View File

@@ -0,0 +1,156 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DTS.Viewer.Graph.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class StringResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal StringResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DTS.Viewer.Graph.Resources.StringResources", typeof(StringResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to The frequency of selected filter class ({0}Hz) results in out of bounds data for at least one channel. Please choose a filter class with a frequency less than half of the data&apos;s sample rate.
///{1}.
/// </summary>
internal static string BadDataFromCustomFilter {
get {
return ResourceManager.GetString("BadDataFromCustomFilter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to At least one channel contains data whose test filter results in out of bounds data. To view filtered data, please choose a filter with a frequency less than half of the data&apos;s sample rate from Chart Options.
///{0}.
/// </summary>
internal static string BadDataFromTestSetupDefaultFilter {
get {
return ResourceManager.GetString("BadDataFromTestSetupDefaultFilter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data in at least one channel is unviewable.
///{0}.
/// </summary>
internal static string BadDataUnfilteredUnknown {
get {
return ResourceManager.GetString("BadDataUnfilteredUnknown", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reading channel data....
/// </summary>
internal static string ReadingChannelData {
get {
return ResourceManager.GetString("ReadingChannelData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error occurred saving chart to PDF.
/// </summary>
internal static string SavePDFError {
get {
return ResourceManager.GetString("SavePDFError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Chart saved succesfully as {0}{1} and {2}{3}.
/// </summary>
internal static string SavePDFSuccess {
get {
return ResourceManager.GetString("SavePDFSuccess", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error occurred saving report to CSV.
/// </summary>
internal static string SaveReportCSVError {
get {
return ResourceManager.GetString("SaveReportCSVError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Report saved to CSV succesfully in {0}.
/// </summary>
internal static string SaveReportCSVSuccess {
get {
return ResourceManager.GetString("SaveReportCSVSuccess", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error occurred saving report to PDF.
/// </summary>
internal static string SaveReportPDFError {
get {
return ResourceManager.GetString("SaveReportPDFError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Report saved to PDF succesfully in {0}.
/// </summary>
internal static string SaveReportPDFSuccess {
get {
return ResourceManager.GetString("SaveReportPDFSuccess", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="BadDataFromCustomFilter" xml:space="preserve">
<value>The frequency of selected filter class ({0}Hz) results in out of bounds data for at least one channel. Please choose a filter class with a frequency less than half of the data's sample rate.
{1}</value>
</data>
<data name="BadDataFromTestSetupDefaultFilter" xml:space="preserve">
<value>At least one channel contains data whose test filter results in out of bounds data. To view filtered data, please choose a filter with a frequency less than half of the data's sample rate from Chart Options.
{0}</value>
</data>
<data name="BadDataUnfilteredUnknown" xml:space="preserve">
<value>Data in at least one channel is unviewable.
{0}</value>
</data>
<data name="ReadingChannelData" xml:space="preserve">
<value>Reading channel data...</value>
</data>
<data name="SavePDFError" xml:space="preserve">
<value>Error occurred saving chart to PDF</value>
</data>
<data name="SavePDFSuccess" xml:space="preserve">
<value>Chart saved succesfully as {0}{1} and {2}{3}</value>
</data>
<data name="SaveReportCSVError" xml:space="preserve">
<value>Error occurred saving report to CSV</value>
</data>
<data name="SaveReportCSVSuccess" xml:space="preserve">
<value>Report saved to CSV succesfully in {0}</value>
</data>
<data name="SaveReportPDFError" xml:space="preserve">
<value>Error occurred saving report to PDF</value>
</data>
<data name="SaveReportPDFSuccess" xml:space="preserve">
<value>Report saved to PDF succesfully in {0}</value>
</data>
</root>

View File

@@ -0,0 +1,22 @@
using System;
using System.Windows.Markup;
using DTS.Viewer.Graph.Resources;
namespace DTS.Viewer.Graph
{
[MarkupExtensionReturnType(typeof(string))]
public class TranslateExtension : MarkupExtension
{
private readonly string _key;
public TranslateExtension(string key) { _key = key; }
private const string NotFound = "#stringnotfound#";
public override object ProvideValue(IServiceProvider serviceProvider)
{
if (string.IsNullOrEmpty(_key)) { return NotFound; }
return StringResources.ResourceManager.GetString(_key) ?? NotFound + " " + _key;
}
}
}