init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
279
DataPRO/Modules/Channels/ChannelCodes/Resources/StringResources.Designer.cs
generated
Normal file
279
DataPRO/Modules/Channels/ChannelCodes/Resources/StringResources.Designer.cs
generated
Normal file
@@ -0,0 +1,279 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 ChannelCodes.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("ChannelCodes.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 All.
|
||||
/// </summary>
|
||||
internal static string All {
|
||||
get {
|
||||
return ResourceManager.GetString("All", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Channel code.
|
||||
/// </summary>
|
||||
internal static string ChannelCode {
|
||||
get {
|
||||
return ResourceManager.GetString("ChannelCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Type.
|
||||
/// </summary>
|
||||
internal static string ChannelType {
|
||||
get {
|
||||
return ResourceManager.GetString("ChannelType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Display name.
|
||||
/// </summary>
|
||||
internal static string DisplayName {
|
||||
get {
|
||||
return ResourceManager.GetString("DisplayName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: ISO channel {0} is duplicated.
|
||||
/// </summary>
|
||||
internal static string DuplicateISOChannelCode {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateISOChannelCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} does not have a unique ISO channel name.
|
||||
/// </summary>
|
||||
internal static string DuplicateISOChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateISOChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} does not have a unique ISO code.
|
||||
/// </summary>
|
||||
internal static string DuplicateISOCode {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateISOCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: User channel {0} is duplicated.
|
||||
/// </summary>
|
||||
internal static string DuplicateUserChannelCode {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateUserChannelCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} does not have a unique user channel name.
|
||||
/// </summary>
|
||||
internal static string DuplicateUserChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateUserChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Warning: {0} does not have a unique user code.
|
||||
/// </summary>
|
||||
internal static string DuplicateUserCode {
|
||||
get {
|
||||
return ResourceManager.GetString("DuplicateUserCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Invalid pasted channel code, line: {0}.
|
||||
/// </summary>
|
||||
internal static string InvalidLine {
|
||||
get {
|
||||
return ResourceManager.GetString("InvalidLine", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ISO 13499.
|
||||
/// </summary>
|
||||
internal static string ISO {
|
||||
get {
|
||||
return ResourceManager.GetString("ISO", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ISO 13499 channel name.
|
||||
/// </summary>
|
||||
internal static string ISOChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("ISOChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ISO 13499 code.
|
||||
/// </summary>
|
||||
internal static string ISOCode {
|
||||
get {
|
||||
return ResourceManager.GetString("ISOCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Warning: {0} has an ISO code that is not unique.
|
||||
/// </summary>
|
||||
internal static string ISOConflict {
|
||||
get {
|
||||
return ResourceManager.GetString("ISOConflict", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} missing ISO channel name.
|
||||
/// </summary>
|
||||
internal static string MissingISOChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("MissingISOChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} is missing an ISO code.
|
||||
/// </summary>
|
||||
internal static string MissingISOCode {
|
||||
get {
|
||||
return ResourceManager.GetString("MissingISOCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} is missing a user channel name.
|
||||
/// </summary>
|
||||
internal static string MissingUserChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("MissingUserChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error: {0} is missing a user code.
|
||||
/// </summary>
|
||||
internal static string MissingUserCode {
|
||||
get {
|
||||
return ResourceManager.GetString("MissingUserCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Remove.
|
||||
/// </summary>
|
||||
internal static string Remove {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to User.
|
||||
/// </summary>
|
||||
internal static string User {
|
||||
get {
|
||||
return ResourceManager.GetString("User", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to User channel name.
|
||||
/// </summary>
|
||||
internal static string UserChannelName {
|
||||
get {
|
||||
return ResourceManager.GetString("UserChannelName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to User code.
|
||||
/// </summary>
|
||||
internal static string UserCode {
|
||||
get {
|
||||
return ResourceManager.GetString("UserCode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to There are multiple entries with the same user code and channel name.
|
||||
/// </summary>
|
||||
internal static string UserConflict {
|
||||
get {
|
||||
return ResourceManager.GetString("UserConflict", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
<?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="All" xml:space="preserve">
|
||||
<value>All</value>
|
||||
</data>
|
||||
<data name="ChannelCode" xml:space="preserve">
|
||||
<value>Channel code</value>
|
||||
</data>
|
||||
<data name="ChannelType" xml:space="preserve">
|
||||
<value>Type</value>
|
||||
</data>
|
||||
<data name="DisplayName" xml:space="preserve">
|
||||
<value>Display name</value>
|
||||
</data>
|
||||
<data name="InvalidLine" xml:space="preserve">
|
||||
<value>Invalid pasted channel code, line: {0}</value>
|
||||
</data>
|
||||
<data name="ISO" xml:space="preserve">
|
||||
<value>ISO 13499</value>
|
||||
</data>
|
||||
<data name="ISOChannelName" xml:space="preserve">
|
||||
<value>ISO 13499 channel name</value>
|
||||
</data>
|
||||
<data name="ISOCode" xml:space="preserve">
|
||||
<value>ISO 13499 code</value>
|
||||
</data>
|
||||
<data name="ISOConflict" xml:space="preserve">
|
||||
<value>Warning: {0} has an ISO code that is not unique</value>
|
||||
</data>
|
||||
<data name="MissingISOChannelName" xml:space="preserve">
|
||||
<value>Error: {0} missing ISO channel name</value>
|
||||
</data>
|
||||
<data name="MissingISOCode" xml:space="preserve">
|
||||
<value>Error: {0} is missing an ISO code</value>
|
||||
</data>
|
||||
<data name="MissingUserChannelName" xml:space="preserve">
|
||||
<value>Error: {0} is missing a user channel name</value>
|
||||
</data>
|
||||
<data name="MissingUserCode" xml:space="preserve">
|
||||
<value>Error: {0} is missing a user code</value>
|
||||
</data>
|
||||
<data name="Remove" xml:space="preserve">
|
||||
<value>Remove</value>
|
||||
</data>
|
||||
<data name="User" xml:space="preserve">
|
||||
<value>User</value>
|
||||
</data>
|
||||
<data name="UserChannelName" xml:space="preserve">
|
||||
<value>User channel name</value>
|
||||
</data>
|
||||
<data name="UserCode" xml:space="preserve">
|
||||
<value>User code</value>
|
||||
</data>
|
||||
<data name="UserConflict" xml:space="preserve">
|
||||
<value>There are multiple entries with the same user code and channel name</value>
|
||||
</data>
|
||||
<data name="DuplicateISOChannelName" xml:space="preserve">
|
||||
<value>Error: {0} does not have a unique ISO channel name</value>
|
||||
</data>
|
||||
<data name="DuplicateISOCode" xml:space="preserve">
|
||||
<value>Error: {0} does not have a unique ISO code</value>
|
||||
</data>
|
||||
<data name="DuplicateUserChannelName" xml:space="preserve">
|
||||
<value>Error: {0} does not have a unique user channel name</value>
|
||||
</data>
|
||||
<data name="DuplicateUserCode" xml:space="preserve">
|
||||
<value>Warning: {0} does not have a unique user code</value>
|
||||
</data>
|
||||
<data name="DuplicateISOChannelCode" xml:space="preserve">
|
||||
<value>Error: ISO channel {0} is duplicated</value>
|
||||
</data>
|
||||
<data name="DuplicateUserChannelCode" xml:space="preserve">
|
||||
<value>Error: User channel {0} is duplicated</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Windows.Markup;
|
||||
using ChannelCodes.Resources;
|
||||
|
||||
namespace ChannelCodes
|
||||
{
|
||||
[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