init
This commit is contained in:
252
DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportSettings/Resources/StringResources.Designer.cs
generated
Normal file
252
DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportSettings/Resources/StringResources.Designer.cs
generated
Normal file
@@ -0,0 +1,252 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.PSDReportSettings.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.PSDReportSettings.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 Envelope.
|
||||
/// </summary>
|
||||
internal static string EnvelopeHeader {
|
||||
get {
|
||||
return ResourceManager.GetString("EnvelopeHeader", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Export.
|
||||
/// </summary>
|
||||
internal static string ExportPSDHeader {
|
||||
get {
|
||||
return ResourceManager.GetString("ExportPSDHeader", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Export PSD to CSV.
|
||||
/// </summary>
|
||||
internal static string ExportPSDtoCSV {
|
||||
get {
|
||||
return ResourceManager.GetString("ExportPSDtoCSV", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Export PSD to PDF.
|
||||
/// </summary>
|
||||
internal static string ExportPSDtoPDF {
|
||||
get {
|
||||
return ResourceManager.GetString("ExportPSDtoPDF", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Center frequency.
|
||||
/// </summary>
|
||||
internal static string FilterCenterFrequency {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterCenterFrequency", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Filter order.
|
||||
/// </summary>
|
||||
internal static string FilterOrder {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterOrder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Filters.
|
||||
/// </summary>
|
||||
internal static string FilterSettingsHeader {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterSettingsHeader", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Filter type.
|
||||
/// </summary>
|
||||
internal static string FilterType {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Bessel.
|
||||
/// </summary>
|
||||
internal static string FilterType_Bessel {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterType_Bessel", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Butterworth.
|
||||
/// </summary>
|
||||
internal static string FilterType_Butterworth {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterType_Butterworth", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Linkwitz-Riley.
|
||||
/// </summary>
|
||||
internal static string FilterType_LinkwitzRiley {
|
||||
get {
|
||||
return ResourceManager.GetString("FilterType_LinkwitzRiley", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to High pass filter.
|
||||
/// </summary>
|
||||
internal static string HighPassFilter {
|
||||
get {
|
||||
return ResourceManager.GetString("HighPassFilter", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Hz.
|
||||
/// </summary>
|
||||
internal static string Hz {
|
||||
get {
|
||||
return ResourceManager.GetString("Hz", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Low pass filter.
|
||||
/// </summary>
|
||||
internal static string LowPassFilter {
|
||||
get {
|
||||
return ResourceManager.GetString("LowPassFilter", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to PSD settings.
|
||||
/// </summary>
|
||||
internal static string PSDSettingsHeader {
|
||||
get {
|
||||
return ResourceManager.GetString("PSDSettingsHeader", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show Envelope.
|
||||
/// </summary>
|
||||
internal static string ShowEnvelope {
|
||||
get {
|
||||
return ResourceManager.GetString("ShowEnvelope", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Averaging type.
|
||||
/// </summary>
|
||||
internal static string WindowAveragingType {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowAveragingType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Overlapping %.
|
||||
/// </summary>
|
||||
internal static string WindowOverlappingPercent {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowOverlappingPercent", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Window.
|
||||
/// </summary>
|
||||
internal static string WindowSettingsHeader {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowSettingsHeader", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Window type.
|
||||
/// </summary>
|
||||
internal static string WindowType {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Window width.
|
||||
/// </summary>
|
||||
internal static string WindowWidth {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowWidth", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
<?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="EnvelopeHeader" xml:space="preserve">
|
||||
<value>Envelope</value>
|
||||
</data>
|
||||
<data name="ExportPSDHeader" xml:space="preserve">
|
||||
<value>Export</value>
|
||||
</data>
|
||||
<data name="ExportPSDtoCSV" xml:space="preserve">
|
||||
<value>Export PSD to CSV</value>
|
||||
</data>
|
||||
<data name="ExportPSDtoPDF" xml:space="preserve">
|
||||
<value>Export PSD to PDF</value>
|
||||
</data>
|
||||
<data name="FilterCenterFrequency" xml:space="preserve">
|
||||
<value>Center frequency</value>
|
||||
</data>
|
||||
<data name="FilterOrder" xml:space="preserve">
|
||||
<value>Filter order</value>
|
||||
</data>
|
||||
<data name="FilterSettingsHeader" xml:space="preserve">
|
||||
<value>Filters</value>
|
||||
</data>
|
||||
<data name="FilterType" xml:space="preserve">
|
||||
<value>Filter type</value>
|
||||
</data>
|
||||
<data name="FilterType_Bessel" xml:space="preserve">
|
||||
<value>Bessel</value>
|
||||
</data>
|
||||
<data name="FilterType_Butterworth" xml:space="preserve">
|
||||
<value>Butterworth</value>
|
||||
</data>
|
||||
<data name="FilterType_LinkwitzRiley" xml:space="preserve">
|
||||
<value>Linkwitz-Riley</value>
|
||||
</data>
|
||||
<data name="HighPassFilter" xml:space="preserve">
|
||||
<value>High pass filter</value>
|
||||
</data>
|
||||
<data name="Hz" xml:space="preserve">
|
||||
<value>Hz</value>
|
||||
</data>
|
||||
<data name="LowPassFilter" xml:space="preserve">
|
||||
<value>Low pass filter</value>
|
||||
</data>
|
||||
<data name="PSDSettingsHeader" xml:space="preserve">
|
||||
<value>PSD settings</value>
|
||||
</data>
|
||||
<data name="ShowEnvelope" xml:space="preserve">
|
||||
<value>Show Envelope</value>
|
||||
</data>
|
||||
<data name="WindowAveragingType" xml:space="preserve">
|
||||
<value>Averaging type</value>
|
||||
</data>
|
||||
<data name="WindowOverlappingPercent" xml:space="preserve">
|
||||
<value>Overlapping %</value>
|
||||
</data>
|
||||
<data name="WindowSettingsHeader" xml:space="preserve">
|
||||
<value>Window</value>
|
||||
</data>
|
||||
<data name="WindowType" xml:space="preserve">
|
||||
<value>Window type</value>
|
||||
</data>
|
||||
<data name="WindowWidth" xml:space="preserve">
|
||||
<value>Window width</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Windows.Markup;
|
||||
using DTS.Viewer.PSDReportSettings.Resources;
|
||||
|
||||
namespace DTS.Viewer.PSDReportSettings
|
||||
{
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user