Showing
22 changed files
with
4224 additions
and
0 deletions
Resx2Xls.sln
0 → 100644
| 1 | + | ||
| 2 | +Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| 3 | +# Visual Studio 2013 | ||
| 4 | +VisualStudioVersion = 12.0.21005.1 | ||
| 5 | +MinimumVisualStudioVersion = 10.0.40219.1 | ||
| 6 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Resx2Xls", "Resx2Xls\Resx2Xls.csproj", "{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}" | ||
| 7 | +EndProject | ||
| 8 | +Global | ||
| 9 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| 10 | + Debug|Any CPU = Debug|Any CPU | ||
| 11 | + Release|Any CPU = Release|Any CPU | ||
| 12 | + EndGlobalSection | ||
| 13 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| 14 | + {9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| 15 | + {9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| 16 | + {9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| 17 | + {9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| 18 | + EndGlobalSection | ||
| 19 | + GlobalSection(SolutionProperties) = preSolution | ||
| 20 | + HideSolutionNode = FALSE | ||
| 21 | + EndGlobalSection | ||
| 22 | +EndGlobal |
Resx2Xls/CultureInfoComparer.cs
0 → 100644
| 1 | +using System; | ||
| 2 | +using System.Collections; | ||
| 3 | +using System.Collections.Generic; | ||
| 4 | +using System.Text; | ||
| 5 | + | ||
| 6 | +using System.Globalization; | ||
| 7 | + | ||
| 8 | +namespace Resx2Xls | ||
| 9 | +{ | ||
| 10 | + public class CultureInfoComparer : IComparer | ||
| 11 | + { | ||
| 12 | + // Methods | ||
| 13 | + public int Compare(object x, object y) | ||
| 14 | + { | ||
| 15 | + if (((x == null) && (y == null)) || x.Equals(y)) | ||
| 16 | + { | ||
| 17 | + return 0; | ||
| 18 | + } | ||
| 19 | + if (x.Equals(CultureInfo.InvariantCulture) || (y == null)) | ||
| 20 | + { | ||
| 21 | + return -1; | ||
| 22 | + } | ||
| 23 | + if (y.Equals(CultureInfo.InvariantCulture) || (x == null)) | ||
| 24 | + { | ||
| 25 | + return 1; | ||
| 26 | + } | ||
| 27 | + if (!(x is CultureInfo)) | ||
| 28 | + { | ||
| 29 | + throw new ArgumentException("Can only compare CultureInfo objects.", "x"); | ||
| 30 | + } | ||
| 31 | + string displayName = ((CultureInfo)x).DisplayName; | ||
| 32 | + if (!(y is CultureInfo)) | ||
| 33 | + { | ||
| 34 | + throw new ArgumentException("Can only compare CultureInfo objects.", "y"); | ||
| 35 | + } | ||
| 36 | + string strB = ((CultureInfo)y).DisplayName; | ||
| 37 | + return displayName.CompareTo(strB); | ||
| 38 | + } | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + | ||
| 42 | +} |
Resx2Xls/Program.cs
0 → 100644
| 1 | +using System; | ||
| 2 | +using System.Collections.Generic; | ||
| 3 | +using System.Windows.Forms; | ||
| 4 | + | ||
| 5 | +namespace Resx2Xls | ||
| 6 | +{ | ||
| 7 | + static class Program | ||
| 8 | + { | ||
| 9 | + /// <summary> | ||
| 10 | + /// The main entry point for the application. | ||
| 11 | + /// </summary> | ||
| 12 | + [STAThread] | ||
| 13 | + static void Main() | ||
| 14 | + { | ||
| 15 | + Application.EnableVisualStyles(); | ||
| 16 | + Application.SetCompatibleTextRenderingDefault(false); | ||
| 17 | + Application.Run(new Resx2XlsForm()); | ||
| 18 | + } | ||
| 19 | + } | ||
| 20 | +} |
Resx2Xls/Properties/AssemblyInfo.cs
0 → 100644
| 1 | +using System.Reflection; | ||
| 2 | +using System.Runtime.CompilerServices; | ||
| 3 | +using System.Runtime.InteropServices; | ||
| 4 | + | ||
| 5 | +// General Information about an assembly is controlled through the following | ||
| 6 | +// set of attributes. Change these attribute values to modify the information | ||
| 7 | +// associated with an assembly. | ||
| 8 | +[assembly: AssemblyTitle("Resx2Xls")] | ||
| 9 | +[assembly: AssemblyDescription("")] | ||
| 10 | +[assembly: AssemblyConfiguration("")] | ||
| 11 | +[assembly: AssemblyCompany("")] | ||
| 12 | +[assembly: AssemblyProduct("Resx2Xls")] | ||
| 13 | +[assembly: AssemblyCopyright("Copyright © 2007")] | ||
| 14 | +[assembly: AssemblyTrademark("")] | ||
| 15 | +[assembly: AssemblyCulture("")] | ||
| 16 | + | ||
| 17 | +// Setting ComVisible to false makes the types in this assembly not visible | ||
| 18 | +// to COM components. If you need to access a type in this assembly from | ||
| 19 | +// COM, set the ComVisible attribute to true on that type. | ||
| 20 | +[assembly: ComVisible(false)] | ||
| 21 | + | ||
| 22 | +// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
| 23 | +[assembly: Guid("75dcb539-33f2-4e3d-bf2b-67bfde92b00a")] | ||
| 24 | + | ||
| 25 | +// Version information for an assembly consists of the following four values: | ||
| 26 | +// | ||
| 27 | +// Major Version | ||
| 28 | +// Minor Version | ||
| 29 | +// Build Number | ||
| 30 | +// Revision | ||
| 31 | +// | ||
| 32 | +[assembly: AssemblyVersion("1.0.0.0")] | ||
| 33 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
Resx2Xls/Properties/Resources.Designer.cs
0 → 100644
| 1 | +//------------------------------------------------------------------------------ | ||
| 2 | +// <auto-generated> | ||
| 3 | +// This code was generated by a tool. | ||
| 4 | +// Runtime Version:4.0.30319.18408 | ||
| 5 | +// | ||
| 6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
| 7 | +// the code is regenerated. | ||
| 8 | +// </auto-generated> | ||
| 9 | +//------------------------------------------------------------------------------ | ||
| 10 | + | ||
| 11 | +namespace Resx2Xls.Properties { | ||
| 12 | + using System; | ||
| 13 | + | ||
| 14 | + | ||
| 15 | + /// <summary> | ||
| 16 | + /// A strongly-typed resource class, for looking up localized strings, etc. | ||
| 17 | + /// </summary> | ||
| 18 | + // This class was auto-generated by the StronglyTypedResourceBuilder | ||
| 19 | + // class via a tool like ResGen or Visual Studio. | ||
| 20 | + // To add or remove a member, edit your .ResX file then rerun ResGen | ||
| 21 | + // with the /str option, or rebuild your VS project. | ||
| 22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | ||
| 23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
| 25 | + internal class Resources { | ||
| 26 | + | ||
| 27 | + private static global::System.Resources.ResourceManager resourceMan; | ||
| 28 | + | ||
| 29 | + private static global::System.Globalization.CultureInfo resourceCulture; | ||
| 30 | + | ||
| 31 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
| 32 | + internal Resources() { | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + /// <summary> | ||
| 36 | + /// Returns the cached ResourceManager instance used by this class. | ||
| 37 | + /// </summary> | ||
| 38 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
| 39 | + internal static global::System.Resources.ResourceManager ResourceManager { | ||
| 40 | + get { | ||
| 41 | + if (object.ReferenceEquals(resourceMan, null)) { | ||
| 42 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resx2Xls.Properties.Resources", typeof(Resources).Assembly); | ||
| 43 | + resourceMan = temp; | ||
| 44 | + } | ||
| 45 | + return resourceMan; | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + /// <summary> | ||
| 50 | + /// Overrides the current thread's CurrentUICulture property for all | ||
| 51 | + /// resource lookups using this strongly typed resource class. | ||
| 52 | + /// </summary> | ||
| 53 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
| 54 | + internal static global::System.Globalization.CultureInfo Culture { | ||
| 55 | + get { | ||
| 56 | + return resourceCulture; | ||
| 57 | + } | ||
| 58 | + set { | ||
| 59 | + resourceCulture = value; | ||
| 60 | + } | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + /// <summary> | ||
| 64 | + /// Looks up a localized resource of type System.Drawing.Bitmap. | ||
| 65 | + /// </summary> | ||
| 66 | + internal static System.Drawing.Bitmap finishbar { | ||
| 67 | + get { | ||
| 68 | + object obj = ResourceManager.GetObject("finishbar", resourceCulture); | ||
| 69 | + return ((System.Drawing.Bitmap)(obj)); | ||
| 70 | + } | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + /// <summary> | ||
| 74 | + /// Looks up a localized resource of type System.Drawing.Bitmap. | ||
| 75 | + /// </summary> | ||
| 76 | + internal static System.Drawing.Bitmap icon { | ||
| 77 | + get { | ||
| 78 | + object obj = ResourceManager.GetObject("icon", resourceCulture); | ||
| 79 | + return ((System.Drawing.Bitmap)(obj)); | ||
| 80 | + } | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + /// <summary> | ||
| 84 | + /// Looks up a localized resource of type System.Drawing.Bitmap. | ||
| 85 | + /// </summary> | ||
| 86 | + internal static System.Drawing.Bitmap leftbar { | ||
| 87 | + get { | ||
| 88 | + object obj = ResourceManager.GetObject("leftbar", resourceCulture); | ||
| 89 | + return ((System.Drawing.Bitmap)(obj)); | ||
| 90 | + } | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + /// <summary> | ||
| 94 | + /// Looks up a localized resource of type System.Drawing.Bitmap. | ||
| 95 | + /// </summary> | ||
| 96 | + internal static System.Drawing.Bitmap topbar { | ||
| 97 | + get { | ||
| 98 | + object obj = ResourceManager.GetObject("topbar", resourceCulture); | ||
| 99 | + return ((System.Drawing.Bitmap)(obj)); | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + } | ||
| 103 | +} |
Resx2Xls/Properties/Resources.resx
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<root> | ||
| 3 | + <!-- | ||
| 4 | + Microsoft ResX Schema | ||
| 5 | + | ||
| 6 | + Version 2.0 | ||
| 7 | + | ||
| 8 | + The primary goals of this format is to allow a simple XML format | ||
| 9 | + that is mostly human readable. The generation and parsing of the | ||
| 10 | + various data types are done through the TypeConverter classes | ||
| 11 | + associated with the data types. | ||
| 12 | + | ||
| 13 | + Example: | ||
| 14 | + | ||
| 15 | + ... ado.net/XML headers & schema ... | ||
| 16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | ||
| 17 | + <resheader name="version">2.0</resheader> | ||
| 18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
| 19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
| 20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
| 21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
| 22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
| 23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | ||
| 24 | + </data> | ||
| 25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
| 26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
| 27 | + <comment>This is a comment</comment> | ||
| 28 | + </data> | ||
| 29 | + | ||
| 30 | + There are any number of "resheader" rows that contain simple | ||
| 31 | + name/value pairs. | ||
| 32 | + | ||
| 33 | + Each data row contains a name, and value. The row also contains a | ||
| 34 | + type or mimetype. Type corresponds to a .NET class that support | ||
| 35 | + text/value conversion through the TypeConverter architecture. | ||
| 36 | + Classes that don't support this are serialized and stored with the | ||
| 37 | + mimetype set. | ||
| 38 | + | ||
| 39 | + The mimetype is used for serialized objects, and tells the | ||
| 40 | + ResXResourceReader how to depersist the object. This is currently not | ||
| 41 | + extensible. For a given mimetype the value must be set accordingly: | ||
| 42 | + | ||
| 43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | ||
| 44 | + that the ResXResourceWriter will generate, however the reader can | ||
| 45 | + read any of the formats listed below. | ||
| 46 | + | ||
| 47 | + mimetype: application/x-microsoft.net.object.binary.base64 | ||
| 48 | + value : The object must be serialized with | ||
| 49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||
| 50 | + : and then encoded with base64 encoding. | ||
| 51 | + | ||
| 52 | + mimetype: application/x-microsoft.net.object.soap.base64 | ||
| 53 | + value : The object must be serialized with | ||
| 54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
| 55 | + : and then encoded with base64 encoding. | ||
| 56 | + | ||
| 57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
| 58 | + value : The object must be serialized into a byte array | ||
| 59 | + : using a System.ComponentModel.TypeConverter | ||
| 60 | + : and then encoded with base64 encoding. | ||
| 61 | + --> | ||
| 62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
| 63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
| 64 | + <xsd:element name="root" msdata:IsDataSet="true"> | ||
| 65 | + <xsd:complexType> | ||
| 66 | + <xsd:choice maxOccurs="unbounded"> | ||
| 67 | + <xsd:element name="metadata"> | ||
| 68 | + <xsd:complexType> | ||
| 69 | + <xsd:sequence> | ||
| 70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
| 71 | + </xsd:sequence> | ||
| 72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | ||
| 73 | + <xsd:attribute name="type" type="xsd:string" /> | ||
| 74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | ||
| 75 | + <xsd:attribute ref="xml:space" /> | ||
| 76 | + </xsd:complexType> | ||
| 77 | + </xsd:element> | ||
| 78 | + <xsd:element name="assembly"> | ||
| 79 | + <xsd:complexType> | ||
| 80 | + <xsd:attribute name="alias" type="xsd:string" /> | ||
| 81 | + <xsd:attribute name="name" type="xsd:string" /> | ||
| 82 | + </xsd:complexType> | ||
| 83 | + </xsd:element> | ||
| 84 | + <xsd:element name="data"> | ||
| 85 | + <xsd:complexType> | ||
| 86 | + <xsd:sequence> | ||
| 87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
| 89 | + </xsd:sequence> | ||
| 90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
| 91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
| 92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
| 93 | + <xsd:attribute ref="xml:space" /> | ||
| 94 | + </xsd:complexType> | ||
| 95 | + </xsd:element> | ||
| 96 | + <xsd:element name="resheader"> | ||
| 97 | + <xsd:complexType> | ||
| 98 | + <xsd:sequence> | ||
| 99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 100 | + </xsd:sequence> | ||
| 101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | ||
| 102 | + </xsd:complexType> | ||
| 103 | + </xsd:element> | ||
| 104 | + </xsd:choice> | ||
| 105 | + </xsd:complexType> | ||
| 106 | + </xsd:element> | ||
| 107 | + </xsd:schema> | ||
| 108 | + <resheader name="resmimetype"> | ||
| 109 | + <value>text/microsoft-resx</value> | ||
| 110 | + </resheader> | ||
| 111 | + <resheader name="version"> | ||
| 112 | + <value>2.0</value> | ||
| 113 | + </resheader> | ||
| 114 | + <resheader name="reader"> | ||
| 115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 116 | + </resheader> | ||
| 117 | + <resheader name="writer"> | ||
| 118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 119 | + </resheader> | ||
| 120 | + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| 121 | + <data name="topbar" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||
| 122 | + <value>..\Resources\topbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | ||
| 123 | + </data> | ||
| 124 | + <data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||
| 125 | + <value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | ||
| 126 | + </data> | ||
| 127 | + <data name="leftbar" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||
| 128 | + <value>..\Resources\leftbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | ||
| 129 | + </data> | ||
| 130 | + <data name="finishbar" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||
| 131 | + <value>..\Resources\finishbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | ||
| 132 | + </data> | ||
| 133 | +</root> |
Resx2Xls/Properties/Settings.Designer.cs
0 → 100644
| 1 | +//------------------------------------------------------------------------------ | ||
| 2 | +// <auto-generated> | ||
| 3 | +// This code was generated by a tool. | ||
| 4 | +// Runtime Version:4.0.30319.18408 | ||
| 5 | +// | ||
| 6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
| 7 | +// the code is regenerated. | ||
| 8 | +// </auto-generated> | ||
| 9 | +//------------------------------------------------------------------------------ | ||
| 10 | + | ||
| 11 | +namespace Resx2Xls.Properties { | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
| 15 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] | ||
| 16 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | ||
| 17 | + | ||
| 18 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | ||
| 19 | + | ||
| 20 | + public static Settings Default { | ||
| 21 | + get { | ||
| 22 | + return defaultInstance; | ||
| 23 | + } | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + [global::System.Configuration.UserScopedSettingAttribute()] | ||
| 27 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 28 | + [global::System.Configuration.DefaultSettingValueAttribute("")] | ||
| 29 | + public string FolderPath { | ||
| 30 | + get { | ||
| 31 | + return ((string)(this["FolderPath"])); | ||
| 32 | + } | ||
| 33 | + set { | ||
| 34 | + this["FolderPath"] = value; | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + [global::System.Configuration.UserScopedSettingAttribute()] | ||
| 39 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 40 | + [global::System.Configuration.DefaultSettingValueAttribute(".Name;.Parent;.ZOrder;.Type")] | ||
| 41 | + public string ExcludeList { | ||
| 42 | + get { | ||
| 43 | + return ((string)(this["ExcludeList"])); | ||
| 44 | + } | ||
| 45 | + set { | ||
| 46 | + this["ExcludeList"] = value; | ||
| 47 | + } | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + [global::System.Configuration.UserScopedSettingAttribute()] | ||
| 51 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 52 | + [global::System.Configuration.DefaultSettingValueAttribute("it-IT;en-US;fr-FR;de-DE;es-ES")] | ||
| 53 | + public string CultureList { | ||
| 54 | + get { | ||
| 55 | + return ((string)(this["CultureList"])); | ||
| 56 | + } | ||
| 57 | + set { | ||
| 58 | + this["CultureList"] = value; | ||
| 59 | + } | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + [global::System.Configuration.UserScopedSettingAttribute()] | ||
| 63 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 64 | + [global::System.Configuration.DefaultSettingValueAttribute("True")] | ||
| 65 | + public bool FolderNamespaceNaming { | ||
| 66 | + get { | ||
| 67 | + return ((bool)(this["FolderNamespaceNaming"])); | ||
| 68 | + } | ||
| 69 | + set { | ||
| 70 | + this["FolderNamespaceNaming"] = value; | ||
| 71 | + } | ||
| 72 | + } | ||
| 73 | + } | ||
| 74 | +} |
Resx2Xls/Properties/Settings.settings
0 → 100644
| 1 | +<?xml version='1.0' encoding='utf-8'?> | ||
| 2 | +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Resx2Xls.Properties" GeneratedClassName="Settings"> | ||
| 3 | + <Profiles /> | ||
| 4 | + <Settings> | ||
| 5 | + <Setting Name="FolderPath" Type="System.String" Scope="User"> | ||
| 6 | + <Value Profile="(Default)" /> | ||
| 7 | + </Setting> | ||
| 8 | + <Setting Name="ExcludeList" Type="System.String" Scope="User"> | ||
| 9 | + <Value Profile="(Default)">.Name;.Parent;.ZOrder;.Type</Value> | ||
| 10 | + </Setting> | ||
| 11 | + <Setting Name="CultureList" Type="System.String" Scope="User"> | ||
| 12 | + <Value Profile="(Default)">it-IT;en-US;fr-FR;de-DE;es-ES</Value> | ||
| 13 | + </Setting> | ||
| 14 | + <Setting Name="FolderNamespaceNaming" Type="System.Boolean" Scope="User"> | ||
| 15 | + <Value Profile="(Default)">True</Value> | ||
| 16 | + </Setting> | ||
| 17 | + </Settings> | ||
| 18 | +</SettingsFile> |
Resx2Xls/Resources/finishbar.png
0 → 100644
2.28 KB
Resx2Xls/Resources/icon.png
0 → 100644
211 Bytes
Resx2Xls/Resources/leftbar.png
0 → 100644
1.19 KB
Resx2Xls/Resources/topbar.png
0 → 100644
553 Bytes
Resx2Xls/Resx2Xls.csproj
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0"> | ||
| 3 | + <PropertyGroup> | ||
| 4 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 5 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| 6 | + <ProductVersion>8.0.50727</ProductVersion> | ||
| 7 | + <SchemaVersion>2.0</SchemaVersion> | ||
| 8 | + <ProjectGuid>{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}</ProjectGuid> | ||
| 9 | + <OutputType>WinExe</OutputType> | ||
| 10 | + <AppDesignerFolder>Properties</AppDesignerFolder> | ||
| 11 | + <RootNamespace>Resx2Xls</RootNamespace> | ||
| 12 | + <AssemblyName>Resx2Xls</AssemblyName> | ||
| 13 | + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||
| 14 | + <FileUpgradeFlags> | ||
| 15 | + </FileUpgradeFlags> | ||
| 16 | + <UpgradeBackupLocation> | ||
| 17 | + </UpgradeBackupLocation> | ||
| 18 | + <OldToolsVersion>2.0</OldToolsVersion> | ||
| 19 | + </PropertyGroup> | ||
| 20 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
| 21 | + <DebugSymbols>true</DebugSymbols> | ||
| 22 | + <DebugType>full</DebugType> | ||
| 23 | + <Optimize>false</Optimize> | ||
| 24 | + <OutputPath>bin\Debug\</OutputPath> | ||
| 25 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
| 26 | + <ErrorReport>prompt</ErrorReport> | ||
| 27 | + <WarningLevel>4</WarningLevel> | ||
| 28 | + </PropertyGroup> | ||
| 29 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
| 30 | + <DebugType>pdbonly</DebugType> | ||
| 31 | + <Optimize>true</Optimize> | ||
| 32 | + <OutputPath>bin\Release\</OutputPath> | ||
| 33 | + <DefineConstants>TRACE</DefineConstants> | ||
| 34 | + <ErrorReport>prompt</ErrorReport> | ||
| 35 | + <WarningLevel>4</WarningLevel> | ||
| 36 | + </PropertyGroup> | ||
| 37 | + <PropertyGroup> | ||
| 38 | + <StartupObject> | ||
| 39 | + </StartupObject> | ||
| 40 | + </PropertyGroup> | ||
| 41 | + <ItemGroup> | ||
| 42 | + <Reference Include="System" /> | ||
| 43 | + <Reference Include="System.Data" /> | ||
| 44 | + <Reference Include="System.Deployment" /> | ||
| 45 | + <Reference Include="System.Drawing" /> | ||
| 46 | + <Reference Include="System.Windows.Forms" /> | ||
| 47 | + <Reference Include="System.Xml" /> | ||
| 48 | + <Reference Include="WizardBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
| 49 | + <SpecificVersion>False</SpecificVersion> | ||
| 50 | + <HintPath>..\WizardBase.dll</HintPath> | ||
| 51 | + </Reference> | ||
| 52 | + </ItemGroup> | ||
| 53 | + <ItemGroup> | ||
| 54 | + <Compile Include="CultureInfoComparer.cs" /> | ||
| 55 | + <Compile Include="Resx2XlsForm.cs"> | ||
| 56 | + <SubType>Form</SubType> | ||
| 57 | + </Compile> | ||
| 58 | + <Compile Include="Resx2XlsForm.Designer.cs"> | ||
| 59 | + <DependentUpon>Resx2XlsForm.cs</DependentUpon> | ||
| 60 | + </Compile> | ||
| 61 | + <Compile Include="Program.cs" /> | ||
| 62 | + <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| 63 | + <EmbeddedResource Include="Properties\Resources.resx"> | ||
| 64 | + <Generator>ResXFileCodeGenerator</Generator> | ||
| 65 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
| 66 | + <SubType>Designer</SubType> | ||
| 67 | + </EmbeddedResource> | ||
| 68 | + <EmbeddedResource Include="Resx2XlsForm.resx"> | ||
| 69 | + <SubType>Designer</SubType> | ||
| 70 | + <DependentUpon>Resx2XlsForm.cs</DependentUpon> | ||
| 71 | + </EmbeddedResource> | ||
| 72 | + <Compile Include="Properties\Resources.Designer.cs"> | ||
| 73 | + <AutoGen>True</AutoGen> | ||
| 74 | + <DependentUpon>Resources.resx</DependentUpon> | ||
| 75 | + <DesignTime>True</DesignTime> | ||
| 76 | + </Compile> | ||
| 77 | + <None Include="app.config" /> | ||
| 78 | + <None Include="Properties\Settings.settings"> | ||
| 79 | + <Generator>SettingsSingleFileGenerator</Generator> | ||
| 80 | + <LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
| 81 | + </None> | ||
| 82 | + <None Include="ResxData.xsc"> | ||
| 83 | + <DependentUpon>ResxData.xsd</DependentUpon> | ||
| 84 | + </None> | ||
| 85 | + <None Include="ResxData.xsd"> | ||
| 86 | + <SubType>Designer</SubType> | ||
| 87 | + <Generator>MSDataSetGenerator</Generator> | ||
| 88 | + <LastGenOutput>ResxData.Designer.cs</LastGenOutput> | ||
| 89 | + </None> | ||
| 90 | + <None Include="ResxData.xss"> | ||
| 91 | + <DependentUpon>ResxData.xsd</DependentUpon> | ||
| 92 | + </None> | ||
| 93 | + <Compile Include="Properties\Settings.Designer.cs"> | ||
| 94 | + <AutoGen>True</AutoGen> | ||
| 95 | + <DependentUpon>Settings.settings</DependentUpon> | ||
| 96 | + <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
| 97 | + </Compile> | ||
| 98 | + <Compile Include="ResxData.cs"> | ||
| 99 | + <DependentUpon>ResxData.xsd</DependentUpon> | ||
| 100 | + <SubType>Component</SubType> | ||
| 101 | + </Compile> | ||
| 102 | + <Compile Include="ResxData.Designer.cs"> | ||
| 103 | + <AutoGen>True</AutoGen> | ||
| 104 | + <DesignTime>True</DesignTime> | ||
| 105 | + <DependentUpon>ResxData.xsd</DependentUpon> | ||
| 106 | + </Compile> | ||
| 107 | + </ItemGroup> | ||
| 108 | + <ItemGroup> | ||
| 109 | + <COMReference Include="Excel"> | ||
| 110 | + <Guid>{00020813-0000-0000-C000-000000000046}</Guid> | ||
| 111 | + <VersionMajor>1</VersionMajor> | ||
| 112 | + <VersionMinor>5</VersionMinor> | ||
| 113 | + <Lcid>0</Lcid> | ||
| 114 | + <WrapperTool>primary</WrapperTool> | ||
| 115 | + <Isolated>False</Isolated> | ||
| 116 | + <Private>True</Private> | ||
| 117 | + </COMReference> | ||
| 118 | + <COMReference Include="Microsoft.Office.Core"> | ||
| 119 | + <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid> | ||
| 120 | + <VersionMajor>2</VersionMajor> | ||
| 121 | + <VersionMinor>3</VersionMinor> | ||
| 122 | + <Lcid>0</Lcid> | ||
| 123 | + <WrapperTool>primary</WrapperTool> | ||
| 124 | + <Isolated>False</Isolated> | ||
| 125 | + <Private>True</Private> | ||
| 126 | + </COMReference> | ||
| 127 | + <COMReference Include="VBIDE"> | ||
| 128 | + <Guid>{0002E157-0000-0000-C000-000000000046}</Guid> | ||
| 129 | + <VersionMajor>5</VersionMajor> | ||
| 130 | + <VersionMinor>3</VersionMinor> | ||
| 131 | + <Lcid>0</Lcid> | ||
| 132 | + <WrapperTool>primary</WrapperTool> | ||
| 133 | + <Isolated>False</Isolated> | ||
| 134 | + </COMReference> | ||
| 135 | + </ItemGroup> | ||
| 136 | + <ItemGroup> | ||
| 137 | + <None Include="Resources\leftbar.png" /> | ||
| 138 | + </ItemGroup> | ||
| 139 | + <ItemGroup> | ||
| 140 | + <None Include="Resources\icon.png" /> | ||
| 141 | + </ItemGroup> | ||
| 142 | + <ItemGroup> | ||
| 143 | + <None Include="Resources\topbar.png" /> | ||
| 144 | + </ItemGroup> | ||
| 145 | + <ItemGroup> | ||
| 146 | + <None Include="Resources\finishbar.png" /> | ||
| 147 | + </ItemGroup> | ||
| 148 | + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
| 149 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
| 150 | + Other similar extension points exist, see Microsoft.Common.targets. | ||
| 151 | + <Target Name="BeforeBuild"> | ||
| 152 | + </Target> | ||
| 153 | + <Target Name="AfterBuild"> | ||
| 154 | + </Target> | ||
| 155 | + --> | ||
| 156 | +</Project> |
Resx2Xls/Resx2XlsForm.Designer.cs
0 → 100644
| 1 | +namespace Resx2Xls | ||
| 2 | +{ | ||
| 3 | + partial class Resx2XlsForm | ||
| 4 | + { | ||
| 5 | + /// <summary> | ||
| 6 | + /// Required designer variable. | ||
| 7 | + /// </summary> | ||
| 8 | + private System.ComponentModel.IContainer components = null; | ||
| 9 | + | ||
| 10 | + /// <summary> | ||
| 11 | + /// Clean up any resources being used. | ||
| 12 | + /// </summary> | ||
| 13 | + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||
| 14 | + protected override void Dispose(bool disposing) | ||
| 15 | + { | ||
| 16 | + if (disposing && (components != null)) | ||
| 17 | + { | ||
| 18 | + components.Dispose(); | ||
| 19 | + } | ||
| 20 | + base.Dispose(disposing); | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + #region Windows Form Designer generated code | ||
| 24 | + | ||
| 25 | + /// <summary> | ||
| 26 | + /// Required method for Designer support - do not modify | ||
| 27 | + /// the contents of this method with the code editor. | ||
| 28 | + /// </summary> | ||
| 29 | + private void InitializeComponent() | ||
| 30 | + { | ||
| 31 | + this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); | ||
| 32 | + this.openFileDialogXls = new System.Windows.Forms.OpenFileDialog(); | ||
| 33 | + this.saveFileDialogXls = new System.Windows.Forms.SaveFileDialog(); | ||
| 34 | + this.wizardControl1 = new WizardBase.WizardControl(); | ||
| 35 | + this.startStep1 = new WizardBase.StartStep(); | ||
| 36 | + this.groupBox1 = new System.Windows.Forms.GroupBox(); | ||
| 37 | + this.radioButtonUpdateXls = new System.Windows.Forms.RadioButton(); | ||
| 38 | + this.radioButtonBuildXls = new System.Windows.Forms.RadioButton(); | ||
| 39 | + this.radioButtonCreateXls = new System.Windows.Forms.RadioButton(); | ||
| 40 | + this.intermediateStepProject = new WizardBase.IntermediateStep(); | ||
| 41 | + this.labelFolder = new System.Windows.Forms.Label(); | ||
| 42 | + this.textBoxFolder = new System.Windows.Forms.TextBox(); | ||
| 43 | + this.checkBoxSubFolders = new System.Windows.Forms.CheckBox(); | ||
| 44 | + this.buttonBrowse = new System.Windows.Forms.Button(); | ||
| 45 | + this.intermediateStepCultures = new WizardBase.IntermediateStep(); | ||
| 46 | + this.label5 = new System.Windows.Forms.Label(); | ||
| 47 | + this.label4 = new System.Windows.Forms.Label(); | ||
| 48 | + this.label3 = new System.Windows.Forms.Label(); | ||
| 49 | + this.label1 = new System.Windows.Forms.Label(); | ||
| 50 | + this.buttonAdd = new System.Windows.Forms.Button(); | ||
| 51 | + this.listBoxCultures = new System.Windows.Forms.ListBox(); | ||
| 52 | + this.listBoxSelected = new System.Windows.Forms.ListBox(); | ||
| 53 | + this.intermediateStepOptions = new WizardBase.IntermediateStep(); | ||
| 54 | + this.checkBoxFolderNaming = new System.Windows.Forms.CheckBox(); | ||
| 55 | + this.label2 = new System.Windows.Forms.Label(); | ||
| 56 | + this.textBoxExclude = new System.Windows.Forms.TextBox(); | ||
| 57 | + this.intermediateStepXlsSelect = new WizardBase.IntermediateStep(); | ||
| 58 | + this.labelXlsFile = new System.Windows.Forms.Label(); | ||
| 59 | + this.textBoxXls = new System.Windows.Forms.TextBox(); | ||
| 60 | + this.buttonBrowseXls = new System.Windows.Forms.Button(); | ||
| 61 | + this.finishStep1 = new WizardBase.FinishStep(); | ||
| 62 | + this.label6 = new System.Windows.Forms.Label(); | ||
| 63 | + this.textBoxSummary = new System.Windows.Forms.TextBox(); | ||
| 64 | + this.startStep1.SuspendLayout(); | ||
| 65 | + this.groupBox1.SuspendLayout(); | ||
| 66 | + this.intermediateStepProject.SuspendLayout(); | ||
| 67 | + this.intermediateStepCultures.SuspendLayout(); | ||
| 68 | + this.intermediateStepOptions.SuspendLayout(); | ||
| 69 | + this.intermediateStepXlsSelect.SuspendLayout(); | ||
| 70 | + this.finishStep1.SuspendLayout(); | ||
| 71 | + this.SuspendLayout(); | ||
| 72 | + // | ||
| 73 | + // openFileDialogXls | ||
| 74 | + // | ||
| 75 | + this.openFileDialogXls.DefaultExt = "xlsx"; | ||
| 76 | + this.openFileDialogXls.Filter = "*.xlsx|*.xlsx"; | ||
| 77 | + // | ||
| 78 | + // saveFileDialogXls | ||
| 79 | + // | ||
| 80 | + this.saveFileDialogXls.DefaultExt = "xlsx"; | ||
| 81 | + this.saveFileDialogXls.Filter = "*.xlsx|*.xlsx"; | ||
| 82 | + // | ||
| 83 | + // wizardControl1 | ||
| 84 | + // | ||
| 85 | + this.wizardControl1.BackButtonEnabled = true; | ||
| 86 | + this.wizardControl1.BackButtonVisible = true; | ||
| 87 | + this.wizardControl1.CancelButtonEnabled = true; | ||
| 88 | + this.wizardControl1.CancelButtonVisible = true; | ||
| 89 | + this.wizardControl1.Dock = System.Windows.Forms.DockStyle.Fill; | ||
| 90 | + this.wizardControl1.HelpButtonEnabled = true; | ||
| 91 | + this.wizardControl1.HelpButtonVisible = false; | ||
| 92 | + this.wizardControl1.Location = new System.Drawing.Point(0, 0); | ||
| 93 | + this.wizardControl1.Name = "wizardControl1"; | ||
| 94 | + this.wizardControl1.NextButtonEnabled = true; | ||
| 95 | + this.wizardControl1.NextButtonVisible = true; | ||
| 96 | + this.wizardControl1.Size = new System.Drawing.Size(704, 466); | ||
| 97 | + this.wizardControl1.WizardSteps.Add(this.startStep1); | ||
| 98 | + this.wizardControl1.WizardSteps.Add(this.intermediateStepProject); | ||
| 99 | + this.wizardControl1.WizardSteps.Add(this.intermediateStepCultures); | ||
| 100 | + this.wizardControl1.WizardSteps.Add(this.intermediateStepOptions); | ||
| 101 | + this.wizardControl1.WizardSteps.Add(this.intermediateStepXlsSelect); | ||
| 102 | + this.wizardControl1.WizardSteps.Add(this.finishStep1); | ||
| 103 | + this.wizardControl1.FinishButtonClick += new System.EventHandler(this.wizardControl1_FinishButtonClick); | ||
| 104 | + this.wizardControl1.CurrentStepIndexChanged += new System.EventHandler(this.wizardControl1_CurrentStepIndexChanged); | ||
| 105 | + this.wizardControl1.NextButtonClick += new WizardBase.WizardNextButtonClickEventHandler(this.wizardControl1_NextButtonClick); | ||
| 106 | + this.wizardControl1.BackButtonClick += new WizardBase.WizardClickEventHandler(this.wizardControl1_BackButtonClick); | ||
| 107 | + // | ||
| 108 | + // startStep1 | ||
| 109 | + // | ||
| 110 | + this.startStep1.BindingImage = global::Resx2Xls.Properties.Resources.leftbar; | ||
| 111 | + this.startStep1.Controls.Add(this.groupBox1); | ||
| 112 | + this.startStep1.Icon = global::Resx2Xls.Properties.Resources.icon; | ||
| 113 | + this.startStep1.Name = "startStep1"; | ||
| 114 | + this.startStep1.Subtitle = "This wizard helps you to localize your .Net Project"; | ||
| 115 | + this.startStep1.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); | ||
| 116 | + this.startStep1.Title = "Welcome to the Resx to Xls Wizard."; | ||
| 117 | + this.startStep1.TitleFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold); | ||
| 118 | + this.startStep1.Click += new System.EventHandler(this.startStep1_Click); | ||
| 119 | + // | ||
| 120 | + // groupBox1 | ||
| 121 | + // | ||
| 122 | + this.groupBox1.Controls.Add(this.radioButtonUpdateXls); | ||
| 123 | + this.groupBox1.Controls.Add(this.radioButtonBuildXls); | ||
| 124 | + this.groupBox1.Controls.Add(this.radioButtonCreateXls); | ||
| 125 | + this.groupBox1.Location = new System.Drawing.Point(198, 93); | ||
| 126 | + this.groupBox1.Name = "groupBox1"; | ||
| 127 | + this.groupBox1.Size = new System.Drawing.Size(373, 100); | ||
| 128 | + this.groupBox1.TabIndex = 0; | ||
| 129 | + this.groupBox1.TabStop = false; | ||
| 130 | + this.groupBox1.Text = "Options"; | ||
| 131 | + // | ||
| 132 | + // radioButtonUpdateXls | ||
| 133 | + // | ||
| 134 | + this.radioButtonUpdateXls.AutoSize = true; | ||
| 135 | + this.radioButtonUpdateXls.Location = new System.Drawing.Point(45, 75); | ||
| 136 | + this.radioButtonUpdateXls.Name = "radioButtonUpdateXls"; | ||
| 137 | + this.radioButtonUpdateXls.Size = new System.Drawing.Size(310, 17); | ||
| 138 | + this.radioButtonUpdateXls.TabIndex = 2; | ||
| 139 | + this.radioButtonUpdateXls.Text = "Update your Excel document with your .Net Project changes"; | ||
| 140 | + this.radioButtonUpdateXls.UseVisualStyleBackColor = true; | ||
| 141 | + // | ||
| 142 | + // radioButtonBuildXls | ||
| 143 | + // | ||
| 144 | + this.radioButtonBuildXls.AutoSize = true; | ||
| 145 | + this.radioButtonBuildXls.Location = new System.Drawing.Point(45, 52); | ||
| 146 | + this.radioButtonBuildXls.Name = "radioButtonBuildXls"; | ||
| 147 | + this.radioButtonBuildXls.Size = new System.Drawing.Size(258, 17); | ||
| 148 | + this.radioButtonBuildXls.TabIndex = 1; | ||
| 149 | + this.radioButtonBuildXls.Text = "Generate resx files from localized Excel document"; | ||
| 150 | + this.radioButtonBuildXls.UseVisualStyleBackColor = true; | ||
| 151 | + // | ||
| 152 | + // radioButtonCreateXls | ||
| 153 | + // | ||
| 154 | + this.radioButtonCreateXls.AutoSize = true; | ||
| 155 | + this.radioButtonCreateXls.Checked = true; | ||
| 156 | + this.radioButtonCreateXls.Location = new System.Drawing.Point(45, 29); | ||
| 157 | + this.radioButtonCreateXls.Name = "radioButtonCreateXls"; | ||
| 158 | + this.radioButtonCreateXls.Size = new System.Drawing.Size(267, 17); | ||
| 159 | + this.radioButtonCreateXls.TabIndex = 0; | ||
| 160 | + this.radioButtonCreateXls.TabStop = true; | ||
| 161 | + this.radioButtonCreateXls.Text = "Create a new Excel document ready to be localized"; | ||
| 162 | + this.radioButtonCreateXls.UseVisualStyleBackColor = true; | ||
| 163 | + // | ||
| 164 | + // intermediateStepProject | ||
| 165 | + // | ||
| 166 | + this.intermediateStepProject.BindingImage = global::Resx2Xls.Properties.Resources.topbar; | ||
| 167 | + this.intermediateStepProject.Controls.Add(this.labelFolder); | ||
| 168 | + this.intermediateStepProject.Controls.Add(this.textBoxFolder); | ||
| 169 | + this.intermediateStepProject.Controls.Add(this.checkBoxSubFolders); | ||
| 170 | + this.intermediateStepProject.Controls.Add(this.buttonBrowse); | ||
| 171 | + this.intermediateStepProject.ForeColor = System.Drawing.SystemColors.HighlightText; | ||
| 172 | + this.intermediateStepProject.Name = "intermediateStepProject"; | ||
| 173 | + this.intermediateStepProject.Subtitle = "Browse the root folder of your .Net Project.."; | ||
| 174 | + this.intermediateStepProject.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); | ||
| 175 | + this.intermediateStepProject.Title = "Select your .Net Project."; | ||
| 176 | + this.intermediateStepProject.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); | ||
| 177 | + // | ||
| 178 | + // labelFolder | ||
| 179 | + // | ||
| 180 | + this.labelFolder.AutoSize = true; | ||
| 181 | + this.labelFolder.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 182 | + this.labelFolder.Location = new System.Drawing.Point(20, 120); | ||
| 183 | + this.labelFolder.Name = "labelFolder"; | ||
| 184 | + this.labelFolder.Size = new System.Drawing.Size(217, 13); | ||
| 185 | + this.labelFolder.TabIndex = 10; | ||
| 186 | + this.labelFolder.Text = "Project Root (that contains neutral resx files):"; | ||
| 187 | + // | ||
| 188 | + // textBoxFolder | ||
| 189 | + // | ||
| 190 | + this.textBoxFolder.Location = new System.Drawing.Point(23, 136); | ||
| 191 | + this.textBoxFolder.Name = "textBoxFolder"; | ||
| 192 | + this.textBoxFolder.Size = new System.Drawing.Size(438, 20); | ||
| 193 | + this.textBoxFolder.TabIndex = 9; | ||
| 194 | + this.textBoxFolder.TextChanged += new System.EventHandler(this.textBoxFolder_TextChanged); | ||
| 195 | + // | ||
| 196 | + // checkBoxSubFolders | ||
| 197 | + // | ||
| 198 | + this.checkBoxSubFolders.AutoSize = true; | ||
| 199 | + this.checkBoxSubFolders.Checked = true; | ||
| 200 | + this.checkBoxSubFolders.CheckState = System.Windows.Forms.CheckState.Checked; | ||
| 201 | + this.checkBoxSubFolders.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 202 | + this.checkBoxSubFolders.Location = new System.Drawing.Point(23, 162); | ||
| 203 | + this.checkBoxSubFolders.Name = "checkBoxSubFolders"; | ||
| 204 | + this.checkBoxSubFolders.Size = new System.Drawing.Size(110, 17); | ||
| 205 | + this.checkBoxSubFolders.TabIndex = 12; | ||
| 206 | + this.checkBoxSubFolders.Text = "Scan Sub Folders"; | ||
| 207 | + this.checkBoxSubFolders.UseVisualStyleBackColor = true; | ||
| 208 | + // | ||
| 209 | + // buttonBrowse | ||
| 210 | + // | ||
| 211 | + this.buttonBrowse.Location = new System.Drawing.Point(467, 136); | ||
| 212 | + this.buttonBrowse.Name = "buttonBrowse"; | ||
| 213 | + this.buttonBrowse.Size = new System.Drawing.Size(75, 23); | ||
| 214 | + this.buttonBrowse.TabIndex = 11; | ||
| 215 | + this.buttonBrowse.Text = "Browse"; | ||
| 216 | + this.buttonBrowse.UseVisualStyleBackColor = true; | ||
| 217 | + this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); | ||
| 218 | + // | ||
| 219 | + // intermediateStepCultures | ||
| 220 | + // | ||
| 221 | + this.intermediateStepCultures.BindingImage = global::Resx2Xls.Properties.Resources.topbar; | ||
| 222 | + this.intermediateStepCultures.Controls.Add(this.label5); | ||
| 223 | + this.intermediateStepCultures.Controls.Add(this.label4); | ||
| 224 | + this.intermediateStepCultures.Controls.Add(this.label3); | ||
| 225 | + this.intermediateStepCultures.Controls.Add(this.label1); | ||
| 226 | + this.intermediateStepCultures.Controls.Add(this.buttonAdd); | ||
| 227 | + this.intermediateStepCultures.Controls.Add(this.listBoxCultures); | ||
| 228 | + this.intermediateStepCultures.Controls.Add(this.listBoxSelected); | ||
| 229 | + this.intermediateStepCultures.ForeColor = System.Drawing.SystemColors.HighlightText; | ||
| 230 | + this.intermediateStepCultures.Name = "intermediateStepCultures"; | ||
| 231 | + this.intermediateStepCultures.Subtitle = "This step creates a new xls file that contains all your resource keys."; | ||
| 232 | + this.intermediateStepCultures.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); | ||
| 233 | + this.intermediateStepCultures.Title = "Select the Cultures that you want include in the project."; | ||
| 234 | + this.intermediateStepCultures.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); | ||
| 235 | + // | ||
| 236 | + // label5 | ||
| 237 | + // | ||
| 238 | + this.label5.AutoSize = true; | ||
| 239 | + this.label5.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 240 | + this.label5.Location = new System.Drawing.Point(278, 224); | ||
| 241 | + this.label5.Name = "label5"; | ||
| 242 | + this.label5.Size = new System.Drawing.Size(160, 13); | ||
| 243 | + this.label5.TabIndex = 10; | ||
| 244 | + this.label5.Text = "Double click to remove a culture"; | ||
| 245 | + // | ||
| 246 | + // label4 | ||
| 247 | + // | ||
| 248 | + this.label4.AutoSize = true; | ||
| 249 | + this.label4.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 250 | + this.label4.Location = new System.Drawing.Point(64, 224); | ||
| 251 | + this.label4.Name = "label4"; | ||
| 252 | + this.label4.Size = new System.Drawing.Size(143, 13); | ||
| 253 | + this.label4.TabIndex = 9; | ||
| 254 | + this.label4.Text = "Double click to add a culture"; | ||
| 255 | + // | ||
| 256 | + // label3 | ||
| 257 | + // | ||
| 258 | + this.label3.AutoSize = true; | ||
| 259 | + this.label3.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 260 | + this.label3.Location = new System.Drawing.Point(277, 84); | ||
| 261 | + this.label3.Name = "label3"; | ||
| 262 | + this.label3.Size = new System.Drawing.Size(93, 13); | ||
| 263 | + this.label3.TabIndex = 8; | ||
| 264 | + this.label3.Text = "Selected Cultures:"; | ||
| 265 | + // | ||
| 266 | + // label1 | ||
| 267 | + // | ||
| 268 | + this.label1.AutoSize = true; | ||
| 269 | + this.label1.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 270 | + this.label1.Location = new System.Drawing.Point(64, 84); | ||
| 271 | + this.label1.Name = "label1"; | ||
| 272 | + this.label1.Size = new System.Drawing.Size(94, 13); | ||
| 273 | + this.label1.TabIndex = 5; | ||
| 274 | + this.label1.Text = "Available Cultures:"; | ||
| 275 | + // | ||
| 276 | + // buttonAdd | ||
| 277 | + // | ||
| 278 | + this.buttonAdd.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 279 | + this.buttonAdd.Location = new System.Drawing.Point(222, 100); | ||
| 280 | + this.buttonAdd.Name = "buttonAdd"; | ||
| 281 | + this.buttonAdd.Size = new System.Drawing.Size(52, 23); | ||
| 282 | + this.buttonAdd.TabIndex = 7; | ||
| 283 | + this.buttonAdd.Text = ">>"; | ||
| 284 | + this.buttonAdd.UseVisualStyleBackColor = true; | ||
| 285 | + this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click); | ||
| 286 | + // | ||
| 287 | + // listBoxCultures | ||
| 288 | + // | ||
| 289 | + this.listBoxCultures.FormattingEnabled = true; | ||
| 290 | + this.listBoxCultures.Location = new System.Drawing.Point(67, 100); | ||
| 291 | + this.listBoxCultures.Name = "listBoxCultures"; | ||
| 292 | + this.listBoxCultures.Size = new System.Drawing.Size(149, 121); | ||
| 293 | + this.listBoxCultures.TabIndex = 4; | ||
| 294 | + this.listBoxCultures.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBoxCultures_MouseDoubleClick); | ||
| 295 | + // | ||
| 296 | + // listBoxSelected | ||
| 297 | + // | ||
| 298 | + this.listBoxSelected.FormattingEnabled = true; | ||
| 299 | + this.listBoxSelected.Location = new System.Drawing.Point(280, 100); | ||
| 300 | + this.listBoxSelected.Name = "listBoxSelected"; | ||
| 301 | + this.listBoxSelected.Size = new System.Drawing.Size(149, 121); | ||
| 302 | + this.listBoxSelected.TabIndex = 6; | ||
| 303 | + this.listBoxSelected.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBoxSelected_MouseDoubleClick); | ||
| 304 | + // | ||
| 305 | + // intermediateStepOptions | ||
| 306 | + // | ||
| 307 | + this.intermediateStepOptions.BindingImage = global::Resx2Xls.Properties.Resources.topbar; | ||
| 308 | + this.intermediateStepOptions.Controls.Add(this.checkBoxFolderNaming); | ||
| 309 | + this.intermediateStepOptions.Controls.Add(this.label2); | ||
| 310 | + this.intermediateStepOptions.Controls.Add(this.textBoxExclude); | ||
| 311 | + this.intermediateStepOptions.ForeColor = System.Drawing.SystemColors.HighlightText; | ||
| 312 | + this.intermediateStepOptions.Name = "intermediateStepOptions"; | ||
| 313 | + this.intermediateStepOptions.Subtitle = "Advanced configuration."; | ||
| 314 | + this.intermediateStepOptions.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); | ||
| 315 | + this.intermediateStepOptions.Title = "Options."; | ||
| 316 | + this.intermediateStepOptions.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); | ||
| 317 | + // | ||
| 318 | + // checkBoxFolderNaming | ||
| 319 | + // | ||
| 320 | + this.checkBoxFolderNaming.AutoSize = true; | ||
| 321 | + this.checkBoxFolderNaming.Checked = true; | ||
| 322 | + this.checkBoxFolderNaming.CheckState = System.Windows.Forms.CheckState.Checked; | ||
| 323 | + this.checkBoxFolderNaming.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 324 | + this.checkBoxFolderNaming.Location = new System.Drawing.Point(247, 103); | ||
| 325 | + this.checkBoxFolderNaming.Name = "checkBoxFolderNaming"; | ||
| 326 | + this.checkBoxFolderNaming.Size = new System.Drawing.Size(316, 17); | ||
| 327 | + this.checkBoxFolderNaming.TabIndex = 11; | ||
| 328 | + this.checkBoxFolderNaming.Text = "Use Folder Namespace Resource Naming (VS 2005 Projects)"; | ||
| 329 | + this.checkBoxFolderNaming.UseVisualStyleBackColor = true; | ||
| 330 | + // | ||
| 331 | + // label2 | ||
| 332 | + // | ||
| 333 | + this.label2.AutoSize = true; | ||
| 334 | + this.label2.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 335 | + this.label2.Location = new System.Drawing.Point(33, 85); | ||
| 336 | + this.label2.Name = "label2"; | ||
| 337 | + this.label2.Size = new System.Drawing.Size(138, 13); | ||
| 338 | + this.label2.TabIndex = 14; | ||
| 339 | + this.label2.Text = "Exclude Keys that end with:"; | ||
| 340 | + // | ||
| 341 | + // textBoxExclude | ||
| 342 | + // | ||
| 343 | + this.textBoxExclude.Location = new System.Drawing.Point(33, 101); | ||
| 344 | + this.textBoxExclude.Multiline = true; | ||
| 345 | + this.textBoxExclude.Name = "textBoxExclude"; | ||
| 346 | + this.textBoxExclude.Size = new System.Drawing.Size(179, 121); | ||
| 347 | + this.textBoxExclude.TabIndex = 13; | ||
| 348 | + this.textBoxExclude.TextChanged += new System.EventHandler(this.textBoxExclude_TextChanged); | ||
| 349 | + // | ||
| 350 | + // intermediateStepXlsSelect | ||
| 351 | + // | ||
| 352 | + this.intermediateStepXlsSelect.BindingImage = global::Resx2Xls.Properties.Resources.topbar; | ||
| 353 | + this.intermediateStepXlsSelect.Controls.Add(this.labelXlsFile); | ||
| 354 | + this.intermediateStepXlsSelect.Controls.Add(this.textBoxXls); | ||
| 355 | + this.intermediateStepXlsSelect.Controls.Add(this.buttonBrowseXls); | ||
| 356 | + this.intermediateStepXlsSelect.ForeColor = System.Drawing.SystemColors.HighlightText; | ||
| 357 | + this.intermediateStepXlsSelect.Name = "intermediateStepXlsSelect"; | ||
| 358 | + this.intermediateStepXlsSelect.Subtitle = "Give a valid xls document that contains localization info."; | ||
| 359 | + this.intermediateStepXlsSelect.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); | ||
| 360 | + this.intermediateStepXlsSelect.Title = "Select your Excel document."; | ||
| 361 | + this.intermediateStepXlsSelect.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold); | ||
| 362 | + // | ||
| 363 | + // labelXlsFile | ||
| 364 | + // | ||
| 365 | + this.labelXlsFile.AutoSize = true; | ||
| 366 | + this.labelXlsFile.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 367 | + this.labelXlsFile.Location = new System.Drawing.Point(32, 94); | ||
| 368 | + this.labelXlsFile.Name = "labelXlsFile"; | ||
| 369 | + this.labelXlsFile.Size = new System.Drawing.Size(96, 13); | ||
| 370 | + this.labelXlsFile.TabIndex = 2; | ||
| 371 | + this.labelXlsFile.Text = "Excel resource file:"; | ||
| 372 | + // | ||
| 373 | + // textBoxXls | ||
| 374 | + // | ||
| 375 | + this.textBoxXls.Location = new System.Drawing.Point(35, 110); | ||
| 376 | + this.textBoxXls.Name = "textBoxXls"; | ||
| 377 | + this.textBoxXls.Size = new System.Drawing.Size(385, 20); | ||
| 378 | + this.textBoxXls.TabIndex = 0; | ||
| 379 | + // | ||
| 380 | + // buttonBrowseXls | ||
| 381 | + // | ||
| 382 | + this.buttonBrowseXls.ForeColor = System.Drawing.SystemColors.ControlText; | ||
| 383 | + this.buttonBrowseXls.Location = new System.Drawing.Point(426, 108); | ||
| 384 | + this.buttonBrowseXls.Name = "buttonBrowseXls"; | ||
| 385 | + this.buttonBrowseXls.Size = new System.Drawing.Size(75, 23); | ||
| 386 | + this.buttonBrowseXls.TabIndex = 1; | ||
| 387 | + this.buttonBrowseXls.Text = "Browse"; | ||
| 388 | + this.buttonBrowseXls.UseVisualStyleBackColor = true; | ||
| 389 | + this.buttonBrowseXls.Click += new System.EventHandler(this.buttonBrowseXls_Click); | ||
| 390 | + // | ||
| 391 | + // finishStep1 | ||
| 392 | + // | ||
| 393 | + this.finishStep1.BackgroundImage = global::Resx2Xls.Properties.Resources.finishbar; | ||
| 394 | + this.finishStep1.Controls.Add(this.label6); | ||
| 395 | + this.finishStep1.Controls.Add(this.textBoxSummary); | ||
| 396 | + this.finishStep1.Name = "finishStep1"; | ||
| 397 | + // | ||
| 398 | + // label6 | ||
| 399 | + // | ||
| 400 | + this.label6.AutoSize = true; | ||
| 401 | + this.label6.Location = new System.Drawing.Point(24, 88); | ||
| 402 | + this.label6.Name = "label6"; | ||
| 403 | + this.label6.Size = new System.Drawing.Size(53, 13); | ||
| 404 | + this.label6.TabIndex = 1; | ||
| 405 | + this.label6.Text = "Summary:"; | ||
| 406 | + // | ||
| 407 | + // textBoxSummary | ||
| 408 | + // | ||
| 409 | + this.textBoxSummary.Location = new System.Drawing.Point(27, 103); | ||
| 410 | + this.textBoxSummary.Multiline = true; | ||
| 411 | + this.textBoxSummary.Name = "textBoxSummary"; | ||
| 412 | + this.textBoxSummary.ReadOnly = true; | ||
| 413 | + this.textBoxSummary.Size = new System.Drawing.Size(646, 255); | ||
| 414 | + this.textBoxSummary.TabIndex = 0; | ||
| 415 | + // | ||
| 416 | + // Resx2XlsForm | ||
| 417 | + // | ||
| 418 | + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); | ||
| 419 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||
| 420 | + this.ClientSize = new System.Drawing.Size(704, 466); | ||
| 421 | + this.Controls.Add(this.wizardControl1); | ||
| 422 | + this.Name = "Resx2XlsForm"; | ||
| 423 | + this.Text = "Resx To Xls"; | ||
| 424 | + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Resx2XlsForm_FormClosing); | ||
| 425 | + this.startStep1.ResumeLayout(false); | ||
| 426 | + this.groupBox1.ResumeLayout(false); | ||
| 427 | + this.groupBox1.PerformLayout(); | ||
| 428 | + this.intermediateStepProject.ResumeLayout(false); | ||
| 429 | + this.intermediateStepProject.PerformLayout(); | ||
| 430 | + this.intermediateStepCultures.ResumeLayout(false); | ||
| 431 | + this.intermediateStepCultures.PerformLayout(); | ||
| 432 | + this.intermediateStepOptions.ResumeLayout(false); | ||
| 433 | + this.intermediateStepOptions.PerformLayout(); | ||
| 434 | + this.intermediateStepXlsSelect.ResumeLayout(false); | ||
| 435 | + this.intermediateStepXlsSelect.PerformLayout(); | ||
| 436 | + this.finishStep1.ResumeLayout(false); | ||
| 437 | + this.finishStep1.PerformLayout(); | ||
| 438 | + this.ResumeLayout(false); | ||
| 439 | + | ||
| 440 | + } | ||
| 441 | + | ||
| 442 | + #endregion | ||
| 443 | + | ||
| 444 | + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; | ||
| 445 | + private System.Windows.Forms.Label label1; | ||
| 446 | + private System.Windows.Forms.ListBox listBoxCultures; | ||
| 447 | + private System.Windows.Forms.Button buttonAdd; | ||
| 448 | + private System.Windows.Forms.ListBox listBoxSelected; | ||
| 449 | + private System.Windows.Forms.OpenFileDialog openFileDialogXls; | ||
| 450 | + private System.Windows.Forms.Label labelXlsFile; | ||
| 451 | + private System.Windows.Forms.Button buttonBrowseXls; | ||
| 452 | + private System.Windows.Forms.TextBox textBoxXls; | ||
| 453 | + private System.Windows.Forms.CheckBox checkBoxFolderNaming; | ||
| 454 | + private System.Windows.Forms.CheckBox checkBoxSubFolders; | ||
| 455 | + private System.Windows.Forms.Button buttonBrowse; | ||
| 456 | + private System.Windows.Forms.TextBox textBoxFolder; | ||
| 457 | + private System.Windows.Forms.Label labelFolder; | ||
| 458 | + private System.Windows.Forms.Label label2; | ||
| 459 | + private System.Windows.Forms.TextBox textBoxExclude; | ||
| 460 | + private System.Windows.Forms.SaveFileDialog saveFileDialogXls; | ||
| 461 | + private WizardBase.WizardControl wizardControl1; | ||
| 462 | + private WizardBase.StartStep startStep1; | ||
| 463 | + private WizardBase.IntermediateStep intermediateStepProject; | ||
| 464 | + private WizardBase.IntermediateStep intermediateStepCultures; | ||
| 465 | + private WizardBase.FinishStep finishStep1; | ||
| 466 | + private WizardBase.IntermediateStep intermediateStepXlsSelect; | ||
| 467 | + private System.Windows.Forms.GroupBox groupBox1; | ||
| 468 | + private System.Windows.Forms.RadioButton radioButtonUpdateXls; | ||
| 469 | + private System.Windows.Forms.RadioButton radioButtonBuildXls; | ||
| 470 | + private System.Windows.Forms.RadioButton radioButtonCreateXls; | ||
| 471 | + private WizardBase.IntermediateStep intermediateStepOptions; | ||
| 472 | + private System.Windows.Forms.Label label3; | ||
| 473 | + private System.Windows.Forms.Label label5; | ||
| 474 | + private System.Windows.Forms.Label label4; | ||
| 475 | + private System.Windows.Forms.TextBox textBoxSummary; | ||
| 476 | + private System.Windows.Forms.Label label6; | ||
| 477 | + } | ||
| 478 | +} | ||
| 479 | + |
Resx2Xls/Resx2XlsForm.cs
0 → 100644
| 1 | +using System; | ||
| 2 | +using System.Collections.Generic; | ||
| 3 | +using System.ComponentModel; | ||
| 4 | +using System.Data; | ||
| 5 | +using System.Drawing; | ||
| 6 | +using System.Text; | ||
| 7 | +using System.Windows.Forms; | ||
| 8 | + | ||
| 9 | +using System.Globalization; | ||
| 10 | +using System.Collections; | ||
| 11 | +using System.Resources; | ||
| 12 | +using System.IO; | ||
| 13 | + | ||
| 14 | +using Excel = Microsoft.Office.Interop.Excel; | ||
| 15 | +using System.Data.OleDb; | ||
| 16 | + | ||
| 17 | +namespace Resx2Xls | ||
| 18 | +{ | ||
| 19 | + public partial class Resx2XlsForm : Form | ||
| 20 | + { | ||
| 21 | + object m_objOpt = System.Reflection.Missing.Value; | ||
| 22 | + | ||
| 23 | + enum ResxToXlsOperation { Create, Build, Update }; | ||
| 24 | + | ||
| 25 | + private ResxToXlsOperation _operation; | ||
| 26 | + | ||
| 27 | + string _summary1; | ||
| 28 | + string _summary2; | ||
| 29 | + string _summary3; | ||
| 30 | + | ||
| 31 | + public Resx2XlsForm() | ||
| 32 | + { | ||
| 33 | + //CultureInfo ci = new CultureInfo("en-US"); | ||
| 34 | + //System.Threading.Thread.CurrentThread.CurrentCulture = ci; | ||
| 35 | + //System.Threading.Thread.CurrentThread.CurrentUICulture = ci; | ||
| 36 | + | ||
| 37 | + InitializeComponent(); | ||
| 38 | + | ||
| 39 | + this.textBoxFolder.Text = Properties.Settings.Default.FolderPath; | ||
| 40 | + this.textBoxExclude.Text = Properties.Settings.Default.ExcludeList; | ||
| 41 | + this.checkBoxFolderNaming.Checked = Properties.Settings.Default.FolderNamespaceNaming; | ||
| 42 | + | ||
| 43 | + FillCultures(); | ||
| 44 | + | ||
| 45 | + this.radioButtonCreateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 46 | + this.radioButtonBuildXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 47 | + this.radioButtonUpdateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 48 | + | ||
| 49 | + _summary1 = "Operation:\r\nCreate a new Excel document ready for localization."; | ||
| 50 | + _summary2 = "Operation:\r\nBuild your localized Resource files from a Filled Excel Document."; | ||
| 51 | + _summary3 = "Operation:\r\nUpdate your Excel document with your Project Resource changes."; | ||
| 52 | + | ||
| 53 | + this.textBoxSummary.Text = _summary1; | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + void radioButton_CheckedChanged(object sender, EventArgs e) | ||
| 57 | + { | ||
| 58 | + this.radioButtonCreateXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged); | ||
| 59 | + this.radioButtonBuildXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged); | ||
| 60 | + this.radioButtonUpdateXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged); | ||
| 61 | + | ||
| 62 | + if (this.radioButtonCreateXls.Checked) | ||
| 63 | + { | ||
| 64 | + _operation = ResxToXlsOperation.Create; | ||
| 65 | + this.textBoxSummary.Text = _summary1; | ||
| 66 | + } | ||
| 67 | + if (this.radioButtonBuildXls.Checked) | ||
| 68 | + { | ||
| 69 | + _operation = ResxToXlsOperation.Build; | ||
| 70 | + this.textBoxSummary.Text = _summary2; | ||
| 71 | + } | ||
| 72 | + if (this.radioButtonUpdateXls.Checked) | ||
| 73 | + { | ||
| 74 | + _operation = ResxToXlsOperation.Update; | ||
| 75 | + this.textBoxSummary.Text = _summary3; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + if (((RadioButton)sender).Checked) | ||
| 79 | + { | ||
| 80 | + if (((RadioButton)sender) == this.radioButtonCreateXls) | ||
| 81 | + { | ||
| 82 | + this.radioButtonBuildXls.Checked = false; | ||
| 83 | + this.radioButtonUpdateXls.Checked = false; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + if (((RadioButton)sender) == this.radioButtonBuildXls) | ||
| 87 | + { | ||
| 88 | + this.radioButtonCreateXls.Checked = false; | ||
| 89 | + this.radioButtonUpdateXls.Checked = false; | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + if (((RadioButton)sender) == this.radioButtonUpdateXls) | ||
| 93 | + { | ||
| 94 | + this.radioButtonCreateXls.Checked = false; | ||
| 95 | + this.radioButtonBuildXls.Checked = false; | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | + this.radioButtonCreateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 99 | + this.radioButtonBuildXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 100 | + this.radioButtonUpdateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged); | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + #region ResxToXL | ||
| 104 | + | ||
| 105 | + public void ResxToXls(string path, bool deepSearch, string xslFile, string[] cultures, string[] excludeList, bool useFolderNamespacePrefix) | ||
| 106 | + { | ||
| 107 | + if (!System.IO.Directory.Exists(path)) | ||
| 108 | + return; | ||
| 109 | + | ||
| 110 | + ResxData rd = ResxToDataSet(path, deepSearch, cultures, excludeList, useFolderNamespacePrefix); | ||
| 111 | + | ||
| 112 | + DataSetToXls(rd, xslFile); | ||
| 113 | + | ||
| 114 | + ShowXls(xslFile); | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + private ResxData ResxToDataSet(string path, bool deepSearch, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix) | ||
| 118 | + { | ||
| 119 | + ResxData rd = new ResxData(); | ||
| 120 | + | ||
| 121 | + string[] files; | ||
| 122 | + | ||
| 123 | + if (deepSearch) | ||
| 124 | + files = System.IO.Directory.GetFiles(path, "*.resx", SearchOption.AllDirectories); | ||
| 125 | + else | ||
| 126 | + files = System.IO.Directory.GetFiles(path, "*.resx", SearchOption.TopDirectoryOnly); | ||
| 127 | + | ||
| 128 | + | ||
| 129 | + foreach (string f in files) | ||
| 130 | + { | ||
| 131 | + if (!IsResxCultureSpecific_checkByFilePath(f)) | ||
| 132 | + { | ||
| 133 | + string filePathWOExt = f.Replace(".resx", ""); | ||
| 134 | + var cultureSpecificFiles = Array.FindAll<string>(files, a => a != f && a.Substring(0, filePathWOExt.Length) == filePathWOExt); | ||
| 135 | + | ||
| 136 | + ResxData.ResxFilesMasterRow r = rd.ResxFilesMaster.NewResxFilesMasterRow(); | ||
| 137 | + r.FileSource = f; | ||
| 138 | + rd.ResxFilesMaster.AddResxFilesMasterRow(r); | ||
| 139 | + | ||
| 140 | + ReadResx(f, path, rd, cultureList, excludeList, useFolderNamespacePrefix, cultureSpecificFiles); | ||
| 141 | + } | ||
| 142 | + | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + return rd; | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + #endregion ResxToXL | ||
| 149 | + | ||
| 150 | + #region XLToResx | ||
| 151 | + | ||
| 152 | + private void XlsToResx(string xlsFile) | ||
| 153 | + { | ||
| 154 | + if (!File.Exists(xlsFile)) | ||
| 155 | + return; | ||
| 156 | + | ||
| 157 | + | ||
| 158 | + //string query = "Select * from Localize"; | ||
| 159 | + | ||
| 160 | + //DataSet ds= GetDataSetFromExcel(xlsFile, query); | ||
| 161 | + | ||
| 162 | + string path = new FileInfo(xlsFile).DirectoryName; | ||
| 163 | + | ||
| 164 | + Excel.Application app = new Excel.Application(); | ||
| 165 | + Excel.Workbook wb = app.Workbooks.Open(xlsFile, | ||
| 166 | + 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", | ||
| 167 | + true, false, 0, true, false, false); | ||
| 168 | + | ||
| 169 | + Excel.Sheets sheets = wb.Worksheets; | ||
| 170 | + | ||
| 171 | + Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1); | ||
| 172 | + | ||
| 173 | + bool hasLanguage = true; | ||
| 174 | + int col = 4; | ||
| 175 | + | ||
| 176 | + while (hasLanguage) | ||
| 177 | + { | ||
| 178 | + object val = (sheet.Cells[2, col] as Excel.Range).Text; | ||
| 179 | + | ||
| 180 | + if (val is string) | ||
| 181 | + { | ||
| 182 | + string cult = val.ToString(); | ||
| 183 | + if (!String.IsNullOrEmpty(cult)) | ||
| 184 | + { | ||
| 185 | + //string pathCulture = path + @"\" + cult; | ||
| 186 | + | ||
| 187 | + //if (!System.IO.Directory.Exists(pathCulture)) | ||
| 188 | + // System.IO.Directory.CreateDirectory(pathCulture); | ||
| 189 | + | ||
| 190 | + | ||
| 191 | + ResXResourceWriter rw = null; | ||
| 192 | + | ||
| 193 | + int row = 3; | ||
| 194 | + | ||
| 195 | + string fileSrc; | ||
| 196 | + string fileDest; | ||
| 197 | + bool readrow = true; | ||
| 198 | + | ||
| 199 | + while (readrow) | ||
| 200 | + { | ||
| 201 | + fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString(); | ||
| 202 | + fileDest = (sheet.Cells[row, 2] as Excel.Range).Text.ToString(); | ||
| 203 | + | ||
| 204 | + if (String.IsNullOrEmpty(fileDest)) | ||
| 205 | + break; | ||
| 206 | + string f = ""; | ||
| 207 | + | ||
| 208 | + f = cult.ToUpper() =="[DEFAULT]" ? fileSrc : Path.GetDirectoryName(fileSrc) + @"\" + Path.GetFileNameWithoutExtension(fileSrc) + "." + cult + ".resx"; | ||
| 209 | + //string f = pathCulture + @"\" + JustStem(fileDest) + "." + cult + ".resx"; | ||
| 210 | + | ||
| 211 | + rw = new ResXResourceWriter(f); | ||
| 212 | + | ||
| 213 | + while (readrow) | ||
| 214 | + { | ||
| 215 | + string key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString(); | ||
| 216 | + object data = (sheet.Cells[row, col] as Excel.Range).Text.ToString(); | ||
| 217 | + | ||
| 218 | + if ((key is String) & !String.IsNullOrEmpty(key)) | ||
| 219 | + { | ||
| 220 | + if (data is string) | ||
| 221 | + { | ||
| 222 | + string text = data as string; | ||
| 223 | + | ||
| 224 | + text = text.Replace("\\r", "\r"); | ||
| 225 | + text = text.Replace("\\n", "\n"); | ||
| 226 | + | ||
| 227 | + rw.AddResource(new ResXDataNode(key, text)); | ||
| 228 | + } | ||
| 229 | + | ||
| 230 | + row++; | ||
| 231 | + | ||
| 232 | + string file = (sheet.Cells[row, 2] as Excel.Range).Text.ToString(); | ||
| 233 | + | ||
| 234 | + if (file != fileDest) | ||
| 235 | + break; | ||
| 236 | + } | ||
| 237 | + else | ||
| 238 | + { | ||
| 239 | + readrow = false; | ||
| 240 | + } | ||
| 241 | + } | ||
| 242 | + | ||
| 243 | + rw.Generate(); | ||
| 244 | + rw.Close(); | ||
| 245 | + | ||
| 246 | + } | ||
| 247 | + } | ||
| 248 | + else | ||
| 249 | + hasLanguage = false; | ||
| 250 | + } | ||
| 251 | + else | ||
| 252 | + hasLanguage = false; | ||
| 253 | + | ||
| 254 | + col++; | ||
| 255 | + } | ||
| 256 | + } | ||
| 257 | + | ||
| 258 | + #endregion XLToResx | ||
| 259 | + | ||
| 260 | + private void XlsToResx_old(string xlsFile) | ||
| 261 | + { | ||
| 262 | + if (!File.Exists(xlsFile)) | ||
| 263 | + return; | ||
| 264 | + | ||
| 265 | + string path = new FileInfo(xlsFile).DirectoryName; | ||
| 266 | + | ||
| 267 | + Excel.Application app = new Excel.Application(); | ||
| 268 | + Excel.Workbook wb = app.Workbooks.Open(xlsFile, | ||
| 269 | + 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", | ||
| 270 | + true, false, 0, true, false, false); | ||
| 271 | + | ||
| 272 | + Excel.Sheets sheets = wb.Worksheets; | ||
| 273 | + | ||
| 274 | + Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1); | ||
| 275 | + | ||
| 276 | + bool hasLanguage = true; | ||
| 277 | + int col = 5; | ||
| 278 | + | ||
| 279 | + while (hasLanguage) | ||
| 280 | + { | ||
| 281 | + object val = (sheet.Cells[2, col] as Excel.Range).Text; | ||
| 282 | + | ||
| 283 | + if (val is string) | ||
| 284 | + { | ||
| 285 | + if (!String.IsNullOrEmpty((string)val)) | ||
| 286 | + { | ||
| 287 | + string cult = (string)val; | ||
| 288 | + | ||
| 289 | + string pathCulture = path + @"\" + cult; | ||
| 290 | + | ||
| 291 | + if (!System.IO.Directory.Exists(pathCulture)) | ||
| 292 | + System.IO.Directory.CreateDirectory(pathCulture); | ||
| 293 | + | ||
| 294 | + | ||
| 295 | + ResXResourceWriter rw = null; | ||
| 296 | + | ||
| 297 | + int row = 3; | ||
| 298 | + | ||
| 299 | + string fileSrc; | ||
| 300 | + string fileDest; | ||
| 301 | + bool readrow = true; | ||
| 302 | + | ||
| 303 | + while (readrow) | ||
| 304 | + { | ||
| 305 | + fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString(); | ||
| 306 | + fileDest = (sheet.Cells[row, 2] as Excel.Range).Text.ToString(); | ||
| 307 | + | ||
| 308 | + if (String.IsNullOrEmpty(fileDest)) | ||
| 309 | + break; | ||
| 310 | + | ||
| 311 | + string f = pathCulture + @"\" + JustStem(fileDest) + "." + cult + ".resx"; | ||
| 312 | + | ||
| 313 | + rw = new ResXResourceWriter(f); | ||
| 314 | + | ||
| 315 | + while (readrow) | ||
| 316 | + { | ||
| 317 | + string key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString(); | ||
| 318 | + object data = (sheet.Cells[row, col] as Excel.Range).Text.ToString(); | ||
| 319 | + | ||
| 320 | + if ((key is String) & !String.IsNullOrEmpty(key)) | ||
| 321 | + { | ||
| 322 | + if (data is string) | ||
| 323 | + { | ||
| 324 | + string text = data as string; | ||
| 325 | + | ||
| 326 | + text = text.Replace("\\r", "\r"); | ||
| 327 | + text = text.Replace("\\n", "\n"); | ||
| 328 | + | ||
| 329 | + rw.AddResource(new ResXDataNode(key, text)); | ||
| 330 | + } | ||
| 331 | + | ||
| 332 | + row++; | ||
| 333 | + | ||
| 334 | + string file = (sheet.Cells[row, 2] as Excel.Range).Text.ToString(); | ||
| 335 | + | ||
| 336 | + if (file != fileDest) | ||
| 337 | + break; | ||
| 338 | + } | ||
| 339 | + else | ||
| 340 | + { | ||
| 341 | + readrow = false; | ||
| 342 | + } | ||
| 343 | + } | ||
| 344 | + | ||
| 345 | + rw.Close(); | ||
| 346 | + | ||
| 347 | + } | ||
| 348 | + } | ||
| 349 | + else | ||
| 350 | + hasLanguage = false; | ||
| 351 | + } | ||
| 352 | + else | ||
| 353 | + hasLanguage = false; | ||
| 354 | + | ||
| 355 | + col++; | ||
| 356 | + } | ||
| 357 | + } | ||
| 358 | + | ||
| 359 | + | ||
| 360 | + | ||
| 361 | + private bool IsResxCultureSpecific_checkByFilePath(string path) | ||
| 362 | + { | ||
| 363 | + string cult = GetCultureByFileName(path); | ||
| 364 | + return IsResxCultureSpecific_checkByCultureString(cult); | ||
| 365 | + } | ||
| 366 | + | ||
| 367 | + private bool IsResxCultureSpecific_checkByCultureString(string culture) | ||
| 368 | + { | ||
| 369 | + if (culture == String.Empty) | ||
| 370 | + return false; | ||
| 371 | + | ||
| 372 | + try | ||
| 373 | + { | ||
| 374 | + System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(culture); | ||
| 375 | + | ||
| 376 | + return true; | ||
| 377 | + } | ||
| 378 | + catch | ||
| 379 | + { | ||
| 380 | + return false; | ||
| 381 | + } | ||
| 382 | + } | ||
| 383 | + | ||
| 384 | + private string GetCultureByFileName(string fileName) | ||
| 385 | + { | ||
| 386 | + string culture = ""; | ||
| 387 | + | ||
| 388 | + string fileNameWOExt = Path.GetFileNameWithoutExtension(fileName); | ||
| 389 | + | ||
| 390 | + if (fileNameWOExt.IndexOf(".") != -1) | ||
| 391 | + culture = fileNameWOExt.Substring(fileNameWOExt.LastIndexOf('.') + 1); | ||
| 392 | + | ||
| 393 | + return culture; | ||
| 394 | + } | ||
| 395 | + | ||
| 396 | + private string GetNamespacePrefix(string projectRoot, string path) | ||
| 397 | + { | ||
| 398 | + path = path.Remove(0, projectRoot.Length); | ||
| 399 | + | ||
| 400 | + if (path.StartsWith(@"\")) | ||
| 401 | + path = path.Remove(0, 1); | ||
| 402 | + | ||
| 403 | + path = path.Replace(@"\", "."); | ||
| 404 | + | ||
| 405 | + return path; | ||
| 406 | + } | ||
| 407 | + | ||
| 408 | + private void ReadResx(string fileName, string projectRoot, ResxData rd, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix, string[] cultureSpecificFiles) | ||
| 409 | + { | ||
| 410 | + string parentFileName = ReadResx(fileName, projectRoot, rd, cultureList, excludeList, useFolderNamespacePrefix); | ||
| 411 | + | ||
| 412 | + foreach(string f in cultureSpecificFiles) | ||
| 413 | + { | ||
| 414 | + ReadResx(f, projectRoot, rd, cultureList, excludeList, useFolderNamespacePrefix, parentFileName); | ||
| 415 | + } | ||
| 416 | + } | ||
| 417 | + | ||
| 418 | + private string ReadResx(string fileName, string projectRoot, ResxData rd, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix, string parentFileName="") | ||
| 419 | + { | ||
| 420 | + FileInfo fi = new FileInfo(fileName); | ||
| 421 | + | ||
| 422 | + string fileRelativePath = fi.FullName; // fi.FullName.Remove(0, AddBS(projectRoot).Length); | ||
| 423 | + | ||
| 424 | + string fileDestination; | ||
| 425 | + if (useFolderNamespacePrefix) | ||
| 426 | + fileDestination = GetNamespacePrefix(AddBS(projectRoot), AddBS(fi.DirectoryName)) + fi.Name; | ||
| 427 | + else | ||
| 428 | + fileDestination = fi.Name; | ||
| 429 | + | ||
| 430 | + ResXResourceReader reader = new ResXResourceReader(fileName); | ||
| 431 | + reader.BasePath = fi.DirectoryName; | ||
| 432 | + | ||
| 433 | + try | ||
| 434 | + { | ||
| 435 | + IDictionaryEnumerator ide = reader.GetEnumerator(); | ||
| 436 | + | ||
| 437 | + #region read | ||
| 438 | + foreach (DictionaryEntry de in reader) | ||
| 439 | + { | ||
| 440 | + if (de.Value is string) | ||
| 441 | + { | ||
| 442 | + string key = (string)de.Key; | ||
| 443 | + | ||
| 444 | + bool exclude = false; | ||
| 445 | + foreach (string e in excludeList) | ||
| 446 | + { | ||
| 447 | + if (key.EndsWith(e)) | ||
| 448 | + { | ||
| 449 | + exclude = true; | ||
| 450 | + break; | ||
| 451 | + } | ||
| 452 | + } | ||
| 453 | + | ||
| 454 | + if (!exclude) | ||
| 455 | + { | ||
| 456 | + string value = de.Value.ToString(); | ||
| 457 | + | ||
| 458 | + if (string.IsNullOrEmpty(parentFileName)) | ||
| 459 | + { | ||
| 460 | + ResxData.ResxRow r = rd.Resx.NewResxRow(); | ||
| 461 | + | ||
| 462 | + r.FileSource = fileRelativePath; | ||
| 463 | + r.FileDestination = fileDestination; | ||
| 464 | + r.Key = key; | ||
| 465 | + | ||
| 466 | + value = value.Replace("\r", "\\r"); | ||
| 467 | + value = value.Replace("\n", "\\n"); | ||
| 468 | + | ||
| 469 | + r.Value = value; | ||
| 470 | + | ||
| 471 | + rd.Resx.AddResxRow(r); | ||
| 472 | + | ||
| 473 | + | ||
| 474 | + } | ||
| 475 | + else | ||
| 476 | + { | ||
| 477 | + ResxData.ResxLocalizedRow lr = rd.ResxLocalized.NewResxLocalizedRow(); | ||
| 478 | + | ||
| 479 | + lr.Key = key; | ||
| 480 | + | ||
| 481 | + value = value.Replace("\r", "\\r"); | ||
| 482 | + value = value.Replace("\n", "\\n"); | ||
| 483 | + | ||
| 484 | + lr.Value = value; | ||
| 485 | + lr.Culture = GetCultureByFileName(fileName); | ||
| 486 | + | ||
| 487 | + lr.ParentFileFullName = parentFileName; | ||
| 488 | + //lr.ParentId = parentId; | ||
| 489 | + //lr.SetParentRow(parentRow); | ||
| 490 | + | ||
| 491 | + rd.ResxLocalized.AddResxLocalizedRow(lr); | ||
| 492 | + } | ||
| 493 | + } | ||
| 494 | + } | ||
| 495 | + } | ||
| 496 | + #endregion | ||
| 497 | + } | ||
| 498 | + catch(Exception ex) | ||
| 499 | + { | ||
| 500 | + MessageBox.Show("A problem occured reading " + fileName + "\n" + ex.Message, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 501 | + } | ||
| 502 | + | ||
| 503 | + reader.Close(); | ||
| 504 | + | ||
| 505 | + return fileRelativePath; | ||
| 506 | + } | ||
| 507 | + | ||
| 508 | + | ||
| 509 | + | ||
| 510 | + private void FillCultures() | ||
| 511 | + { | ||
| 512 | + CultureInfo[] array = CultureInfo.GetCultures(CultureTypes.AllCultures); | ||
| 513 | + Array.Sort(array, new CultureInfoComparer()); | ||
| 514 | + foreach (CultureInfo info in array) | ||
| 515 | + { | ||
| 516 | + if (info.Equals(CultureInfo.InvariantCulture)) | ||
| 517 | + { | ||
| 518 | + //this.listBoxCultures.Items.Add(info, "Default (Invariant Language)"); | ||
| 519 | + } | ||
| 520 | + else | ||
| 521 | + { | ||
| 522 | + this.listBoxCultures.Items.Add(info); | ||
| 523 | + } | ||
| 524 | + | ||
| 525 | + } | ||
| 526 | + | ||
| 527 | + string cList = Properties.Settings.Default.CultureList; | ||
| 528 | + | ||
| 529 | + string[] cultureList = cList.Split(';'); | ||
| 530 | + | ||
| 531 | + foreach (string cult in cultureList) | ||
| 532 | + { | ||
| 533 | + CultureInfo info = new CultureInfo(cult); | ||
| 534 | + | ||
| 535 | + this.listBoxSelected.Items.Add(info); | ||
| 536 | + } | ||
| 537 | + } | ||
| 538 | + | ||
| 539 | + private void AddCultures() | ||
| 540 | + { | ||
| 541 | + for (int i = 0; i < this.listBoxCultures.SelectedItems.Count; i++) | ||
| 542 | + { | ||
| 543 | + CultureInfo ci = (CultureInfo)this.listBoxCultures.SelectedItems[i]; | ||
| 544 | + | ||
| 545 | + if (this.listBoxSelected.Items.IndexOf(ci) == -1) | ||
| 546 | + this.listBoxSelected.Items.Add(ci); | ||
| 547 | + } | ||
| 548 | + } | ||
| 549 | + | ||
| 550 | + private void SaveCultures() | ||
| 551 | + { | ||
| 552 | + string cultures = String.Empty; | ||
| 553 | + for (int i = 0; i < this.listBoxSelected.Items.Count; i++) | ||
| 554 | + { | ||
| 555 | + CultureInfo info = (CultureInfo)this.listBoxSelected.Items[i]; | ||
| 556 | + | ||
| 557 | + if (cultures != String.Empty) | ||
| 558 | + cultures = cultures + ";"; | ||
| 559 | + | ||
| 560 | + cultures = cultures + info.Name; | ||
| 561 | + } | ||
| 562 | + | ||
| 563 | + Properties.Settings.Default.CultureList = cultures; | ||
| 564 | + } | ||
| 565 | + | ||
| 566 | + private void buttonBrowse_Click(object sender, EventArgs e) | ||
| 567 | + { | ||
| 568 | + if (this.folderBrowserDialog.ShowDialog() == DialogResult.OK) | ||
| 569 | + { | ||
| 570 | + this.textBoxFolder.Text = this.folderBrowserDialog.SelectedPath; | ||
| 571 | + } | ||
| 572 | + } | ||
| 573 | + | ||
| 574 | + private void buttonAdd_Click(object sender, EventArgs e) | ||
| 575 | + { | ||
| 576 | + AddCultures(); | ||
| 577 | + } | ||
| 578 | + | ||
| 579 | + private void listBoxCultures_MouseDoubleClick(object sender, MouseEventArgs e) | ||
| 580 | + { | ||
| 581 | + AddCultures(); | ||
| 582 | + } | ||
| 583 | + | ||
| 584 | + private void buttonBrowseXls_Click(object sender, EventArgs e) | ||
| 585 | + { | ||
| 586 | + if (this.openFileDialogXls.ShowDialog() == DialogResult.OK) | ||
| 587 | + { | ||
| 588 | + this.textBoxXls.Text = this.openFileDialogXls.FileName; | ||
| 589 | + } | ||
| 590 | + } | ||
| 591 | + | ||
| 592 | + | ||
| 593 | + private void listBoxSelected_MouseDoubleClick(object sender, MouseEventArgs e) | ||
| 594 | + { | ||
| 595 | + if (this.listBoxSelected.SelectedItems.Count > 0) | ||
| 596 | + { | ||
| 597 | + this.listBoxSelected.Items.Remove(this.listBoxSelected.SelectedItems[0]); | ||
| 598 | + } | ||
| 599 | + } | ||
| 600 | + | ||
| 601 | + private void textBoxExclude_TextChanged(object sender, EventArgs e) | ||
| 602 | + { | ||
| 603 | + Properties.Settings.Default.ExcludeList = this.textBoxExclude.Text; | ||
| 604 | + | ||
| 605 | + } | ||
| 606 | + | ||
| 607 | + private void Resx2XlsForm_FormClosing(object sender, FormClosingEventArgs e) | ||
| 608 | + { | ||
| 609 | + SaveCultures(); | ||
| 610 | + | ||
| 611 | + Properties.Settings.Default.FolderNamespaceNaming = this.checkBoxFolderNaming.Checked; | ||
| 612 | + | ||
| 613 | + Properties.Settings.Default.Save(); | ||
| 614 | + } | ||
| 615 | + | ||
| 616 | + private void textBoxFolder_TextChanged(object sender, EventArgs e) | ||
| 617 | + { | ||
| 618 | + Properties.Settings.Default.FolderPath = this.textBoxFolder.Text; | ||
| 619 | + } | ||
| 620 | + | ||
| 621 | + private void UpdateXls(string xlsFile, string projectRoot, bool deepSearch, string[] excludeList, bool useFolderNamespacePrefix) | ||
| 622 | + { | ||
| 623 | + if (!File.Exists(xlsFile)) | ||
| 624 | + return; | ||
| 625 | + | ||
| 626 | + string path = new FileInfo(xlsFile).DirectoryName; | ||
| 627 | + | ||
| 628 | + string[] files; | ||
| 629 | + | ||
| 630 | + if (deepSearch) | ||
| 631 | + files = System.IO.Directory.GetFiles(projectRoot, "*.resx", SearchOption.AllDirectories); | ||
| 632 | + else | ||
| 633 | + files = System.IO.Directory.GetFiles(projectRoot, "*.resx", SearchOption.TopDirectoryOnly); | ||
| 634 | + | ||
| 635 | + | ||
| 636 | + ResxData rd = XlsToDataSet(xlsFile); | ||
| 637 | + | ||
| 638 | + foreach (string f in files) | ||
| 639 | + { | ||
| 640 | + FileInfo fi = new FileInfo(f); | ||
| 641 | + | ||
| 642 | + string fileRelativePath = fi.FullName.Remove(0, AddBS(projectRoot).Length); | ||
| 643 | + | ||
| 644 | + string fileDestination; | ||
| 645 | + if (useFolderNamespacePrefix) | ||
| 646 | + fileDestination = GetNamespacePrefix(AddBS(projectRoot), AddBS(fi.DirectoryName)) + fi.Name; | ||
| 647 | + else | ||
| 648 | + fileDestination = fi.Name; | ||
| 649 | + | ||
| 650 | + ResXResourceReader reader = new ResXResourceReader(f); | ||
| 651 | + reader.BasePath = fi.DirectoryName; | ||
| 652 | + | ||
| 653 | + foreach (DictionaryEntry d in reader) | ||
| 654 | + { | ||
| 655 | + if (d.Value is string) | ||
| 656 | + { | ||
| 657 | + bool exclude = false; | ||
| 658 | + foreach (string e in excludeList) | ||
| 659 | + { | ||
| 660 | + if (d.Key.ToString().EndsWith(e)) | ||
| 661 | + { | ||
| 662 | + exclude = true; | ||
| 663 | + break; | ||
| 664 | + } | ||
| 665 | + } | ||
| 666 | + | ||
| 667 | + if (!exclude) | ||
| 668 | + { | ||
| 669 | + string strWhere = String.Format("FileSource ='{0}' AND Key='{1}'", fileRelativePath, d.Key.ToString()); | ||
| 670 | + ResxData.ResxRow[] rows = (ResxData.ResxRow[])rd.Resx.Select(strWhere); | ||
| 671 | + | ||
| 672 | + ResxData.ResxRow row = null; | ||
| 673 | + if ((rows == null) | (rows.Length == 0)) | ||
| 674 | + { | ||
| 675 | + // add row | ||
| 676 | + row = rd.Resx.NewResxRow(); | ||
| 677 | + | ||
| 678 | + row.FileSource = fileRelativePath; | ||
| 679 | + row.FileDestination = fileDestination; | ||
| 680 | + // I update the neutral value | ||
| 681 | + row.Key = d.Key.ToString(); | ||
| 682 | + | ||
| 683 | + rd.Resx.AddResxRow(row); | ||
| 684 | + | ||
| 685 | + } | ||
| 686 | + else | ||
| 687 | + row = rows[0]; | ||
| 688 | + | ||
| 689 | + // update row | ||
| 690 | + row.BeginEdit(); | ||
| 691 | + | ||
| 692 | + string value = d.Value.ToString(); | ||
| 693 | + value = value.Replace("\r", "\\r"); | ||
| 694 | + value = value.Replace("\n", "\\n"); | ||
| 695 | + row.Value = value; | ||
| 696 | + | ||
| 697 | + row.EndEdit(); | ||
| 698 | + } | ||
| 699 | + } | ||
| 700 | + } | ||
| 701 | + | ||
| 702 | + } | ||
| 703 | + | ||
| 704 | + //delete unchenged rows | ||
| 705 | + foreach (ResxData.ResxRow r in rd.Resx.Rows) | ||
| 706 | + { | ||
| 707 | + if (r.RowState == DataRowState.Unchanged) | ||
| 708 | + { | ||
| 709 | + r.Delete(); | ||
| 710 | + } | ||
| 711 | + } | ||
| 712 | + rd.AcceptChanges(); | ||
| 713 | + | ||
| 714 | + DataSetToXls(rd, xlsFile); | ||
| 715 | + } | ||
| 716 | + | ||
| 717 | + private ResxData XlsToDataSet(string xlsFile) | ||
| 718 | + { | ||
| 719 | + Excel.Application app = new Excel.Application(); | ||
| 720 | + Excel.Workbook wb = app.Workbooks.Open(xlsFile, | ||
| 721 | + 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", | ||
| 722 | + true, false, 0, true, false, false); | ||
| 723 | + | ||
| 724 | + Excel.Sheets sheets = wb.Worksheets; | ||
| 725 | + | ||
| 726 | + Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1); | ||
| 727 | + | ||
| 728 | + ResxData rd = new ResxData(); | ||
| 729 | + | ||
| 730 | + int row = 3; | ||
| 731 | + | ||
| 732 | + bool continueLoop = true; | ||
| 733 | + while (continueLoop) | ||
| 734 | + { | ||
| 735 | + string fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString(); | ||
| 736 | + | ||
| 737 | + if (String.IsNullOrEmpty(fileSrc)) | ||
| 738 | + break; | ||
| 739 | + | ||
| 740 | + ResxData.ResxRow r = rd.Resx.NewResxRow(); | ||
| 741 | + | ||
| 742 | + r.FileSource = (sheet.Cells[row, 1] as Excel.Range).Text.ToString(); | ||
| 743 | + r.FileDestination = (sheet.Cells[row, 2] as Excel.Range).Text.ToString(); | ||
| 744 | + r.Key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString(); | ||
| 745 | + r.Value = (sheet.Cells[row, 4] as Excel.Range).Text.ToString(); | ||
| 746 | + | ||
| 747 | + rd.Resx.AddResxRow(r); | ||
| 748 | + | ||
| 749 | + bool hasCulture = true; | ||
| 750 | + int col = 5; | ||
| 751 | + while (hasCulture) | ||
| 752 | + { | ||
| 753 | + string cult = (sheet.Cells[2, col] as Excel.Range).Text.ToString(); | ||
| 754 | + | ||
| 755 | + if (String.IsNullOrEmpty(cult)) | ||
| 756 | + break; | ||
| 757 | + | ||
| 758 | + ResxData.ResxLocalizedRow lr = rd.ResxLocalized.NewResxLocalizedRow(); | ||
| 759 | + | ||
| 760 | + lr.Culture = cult; | ||
| 761 | + lr.Key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString(); | ||
| 762 | + lr.Value = (sheet.Cells[row, col] as Excel.Range).Text.ToString(); | ||
| 763 | + lr.ParentId = r.Id; | ||
| 764 | + | ||
| 765 | + lr.SetParentRow(r); | ||
| 766 | + | ||
| 767 | + rd.ResxLocalized.AddResxLocalizedRow(lr); | ||
| 768 | + | ||
| 769 | + col++; | ||
| 770 | + } | ||
| 771 | + | ||
| 772 | + row++; | ||
| 773 | + } | ||
| 774 | + | ||
| 775 | + rd.AcceptChanges(); | ||
| 776 | + | ||
| 777 | + wb.Close(false, m_objOpt, m_objOpt); | ||
| 778 | + app.Quit(); | ||
| 779 | + | ||
| 780 | + return rd; | ||
| 781 | + } | ||
| 782 | + | ||
| 783 | + private void DataSetToXls(ResxData rd, string fileName) | ||
| 784 | + { | ||
| 785 | + Excel.Application app = new Excel.Application(); | ||
| 786 | + Excel.Workbook wb = app.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet); | ||
| 787 | + | ||
| 788 | + Excel.Sheets sheets = wb.Worksheets; | ||
| 789 | + Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1); | ||
| 790 | + sheet.Name = "Localize"; | ||
| 791 | + | ||
| 792 | + sheet.Cells[1, 1] = "Resx source"; | ||
| 793 | + sheet.Cells[1, 2] = "Resx Name"; | ||
| 794 | + sheet.Cells[1, 3] = "Key"; | ||
| 795 | + sheet.Cells[1, 4] = "Value"; | ||
| 796 | + sheet.Cells[2, 4] = "[DEFAULT]"; | ||
| 797 | + string[] cultures = GetCulturesFromDataSet(rd); | ||
| 798 | + | ||
| 799 | + int index = 5; | ||
| 800 | + foreach (string cult in cultures) | ||
| 801 | + { | ||
| 802 | + CultureInfo ci = new CultureInfo(cult); | ||
| 803 | + | ||
| 804 | + sheet.Cells[1, index] = ci.DisplayName; | ||
| 805 | + sheet.Cells[2, index] = ci.Name; | ||
| 806 | + index++; | ||
| 807 | + } | ||
| 808 | + | ||
| 809 | + DataView dw = rd.Resx.DefaultView; | ||
| 810 | + dw.Sort = "FileSource, Key"; | ||
| 811 | + | ||
| 812 | + int row = 3; | ||
| 813 | + | ||
| 814 | + //New Code | ||
| 815 | + DataView dwFiles = rd.ResxFilesMaster.DefaultView; | ||
| 816 | + dwFiles.Sort = "FileSource"; | ||
| 817 | + | ||
| 818 | + foreach (DataRowView file in dwFiles) | ||
| 819 | + { | ||
| 820 | + ResxData.ResxFilesMasterRow f = (ResxData.ResxFilesMasterRow)file.Row; | ||
| 821 | + | ||
| 822 | + DataRow[] resources = rd.Resx.Select("FileSource='" + f.FileSource + "'"); | ||
| 823 | + | ||
| 824 | + ResxData.ResxLocalizedRow[] localizedResxRows = (ResxData.ResxLocalizedRow[])rd.ResxLocalized.Select("ParentFileFullName='" + f.FileSource + "'"); | ||
| 825 | + | ||
| 826 | + foreach (DataRow dr in resources) | ||
| 827 | + { | ||
| 828 | + ResxData.ResxRow r = (ResxData.ResxRow)dr; | ||
| 829 | + | ||
| 830 | + sheet.Cells[row, 1] = r.FileSource; | ||
| 831 | + sheet.Cells[row, 2] = r.FileDestination; | ||
| 832 | + sheet.Cells[row, 3] = r.Key; | ||
| 833 | + sheet.Cells[row, 4] = r.Value; | ||
| 834 | + | ||
| 835 | + //ResxData.ResxLocalizedRow[] rows = r.GetResxLocalizedRow; | ||
| 836 | + //ResxData.ResxLocalizedRow[] rows = (ResxData.ResxLocalizedRow[])rd.ResxLocalized.Select("ParentFileFullName='" + r.FileSource + "' and key = '" + r.Key + "'"); | ||
| 837 | + ResxData.ResxLocalizedRow[] rows = Array.FindAll<ResxData.ResxLocalizedRow>(localizedResxRows, l => l.Key == r.Key); | ||
| 838 | + | ||
| 839 | + foreach (ResxData.ResxLocalizedRow lr in rows) | ||
| 840 | + { | ||
| 841 | + lr.Read = true; | ||
| 842 | + string culture = lr.Culture; | ||
| 843 | + | ||
| 844 | + int col = Array.IndexOf(cultures, culture); | ||
| 845 | + | ||
| 846 | + if (col >= 0) | ||
| 847 | + sheet.Cells[row, col + 5] = lr.Value; | ||
| 848 | + } | ||
| 849 | + | ||
| 850 | + row++; | ||
| 851 | + } | ||
| 852 | + //For keys that are missing in the main files | ||
| 853 | + ResxData.ResxLocalizedRow[] unreadRows = Array.FindAll<ResxData.ResxLocalizedRow>(localizedResxRows, l => l.Read == false); | ||
| 854 | + | ||
| 855 | + foreach (ResxData.ResxLocalizedRow lr in unreadRows) | ||
| 856 | + { | ||
| 857 | + lr.Read = true; | ||
| 858 | + string culture = lr.Culture; | ||
| 859 | + | ||
| 860 | + int col = Array.IndexOf(cultures, culture); | ||
| 861 | + | ||
| 862 | + if (col >= 0) | ||
| 863 | + { | ||
| 864 | + sheet.Cells[row, 1] = f.FileSource; | ||
| 865 | + sheet.Cells[row, 2] = Path.GetFileName(f.FileSource); | ||
| 866 | + sheet.Cells[row, 3] = lr.Key; | ||
| 867 | + sheet.Cells[row, col + 5] = lr.Value; | ||
| 868 | + } | ||
| 869 | + } | ||
| 870 | + | ||
| 871 | + row++; | ||
| 872 | + | ||
| 873 | + } | ||
| 874 | + //New Code End | ||
| 875 | + | ||
| 876 | + //foreach (DataRowView drw in dw ) | ||
| 877 | + //{ | ||
| 878 | + // ResxData.ResxRow r = (ResxData.ResxRow)drw.Row; | ||
| 879 | + | ||
| 880 | + // sheet.Cells[row, 1] = r.FileSource; | ||
| 881 | + // sheet.Cells[row, 2] = r.FileDestination; | ||
| 882 | + // sheet.Cells[row, 3] = r.Key; | ||
| 883 | + // sheet.Cells[row, 4] = r.Value; | ||
| 884 | + | ||
| 885 | + // //ResxData.ResxLocalizedRow[] rows = r.GetResxLocalizedRow; | ||
| 886 | + // ResxData.ResxLocalizedRow[] rows = (ResxData.ResxLocalizedRow[]) rd.ResxLocalized.Select("ParentFileFullName='" + r.FileSource + "' and key = '" + r.Key + "'"); | ||
| 887 | + | ||
| 888 | + | ||
| 889 | + // foreach (ResxData.ResxLocalizedRow lr in rows) | ||
| 890 | + // { | ||
| 891 | + // string culture = lr.Culture; | ||
| 892 | + | ||
| 893 | + // int col = Array.IndexOf(cultures, culture); | ||
| 894 | + | ||
| 895 | + // if (col >= 0) | ||
| 896 | + // sheet.Cells[row, col + 5] = lr.Value; | ||
| 897 | + // } | ||
| 898 | + | ||
| 899 | + // row++; | ||
| 900 | + | ||
| 901 | + //} | ||
| 902 | + | ||
| 903 | + sheet.Cells.get_Range("A1", "Z1").EntireColumn.AutoFit(); | ||
| 904 | + | ||
| 905 | + // Save the Workbook and quit Excel. | ||
| 906 | + wb.SaveAs(fileName, m_objOpt, m_objOpt, | ||
| 907 | + m_objOpt, m_objOpt, m_objOpt, Excel.XlSaveAsAccessMode.xlNoChange, | ||
| 908 | + m_objOpt, m_objOpt, m_objOpt, m_objOpt, m_objOpt); | ||
| 909 | + wb.Close(false, m_objOpt, m_objOpt); | ||
| 910 | + app.Quit(); | ||
| 911 | + } | ||
| 912 | + | ||
| 913 | + private string[] GetCulturesFromDataSet(ResxData rd) | ||
| 914 | + { | ||
| 915 | + if (rd.ResxLocalized.Rows.Count > 0) | ||
| 916 | + { | ||
| 917 | + ArrayList list = new ArrayList(); | ||
| 918 | + foreach (ResxData.ResxLocalizedRow r in rd.ResxLocalized.Rows) | ||
| 919 | + { | ||
| 920 | + if (r.Culture != String.Empty) | ||
| 921 | + { | ||
| 922 | + if (list.IndexOf(r.Culture) < 0) | ||
| 923 | + { | ||
| 924 | + list.Add(r.Culture); | ||
| 925 | + } | ||
| 926 | + } | ||
| 927 | + } | ||
| 928 | + | ||
| 929 | + string[] cultureList = new string[list.Count]; | ||
| 930 | + | ||
| 931 | + int i = 0; | ||
| 932 | + foreach (string c in list) | ||
| 933 | + { | ||
| 934 | + cultureList[i] = c; | ||
| 935 | + | ||
| 936 | + i++; | ||
| 937 | + } | ||
| 938 | + | ||
| 939 | + return cultureList; | ||
| 940 | + } | ||
| 941 | + else | ||
| 942 | + return null; | ||
| 943 | + } | ||
| 944 | + | ||
| 945 | + public static string JustStem(string cPath) | ||
| 946 | + { | ||
| 947 | + //Get the name of the file | ||
| 948 | + string lcFileName = JustFName(cPath.Trim()); | ||
| 949 | + | ||
| 950 | + //Remove the extension and return the string | ||
| 951 | + if (lcFileName.IndexOf(".") == -1) | ||
| 952 | + return lcFileName; | ||
| 953 | + else | ||
| 954 | + return lcFileName.Substring(0, lcFileName.LastIndexOf('.')); | ||
| 955 | + } | ||
| 956 | + | ||
| 957 | + public static string JustFName(string cFileName) | ||
| 958 | + { | ||
| 959 | + //Create the FileInfo object | ||
| 960 | + FileInfo fi = new FileInfo(cFileName); | ||
| 961 | + | ||
| 962 | + //Return the file name | ||
| 963 | + return fi.Name; | ||
| 964 | + } | ||
| 965 | + | ||
| 966 | + public static string AddBS(string cPath) | ||
| 967 | + { | ||
| 968 | + if (cPath.Trim().EndsWith("\\")) | ||
| 969 | + { | ||
| 970 | + return cPath.Trim(); | ||
| 971 | + } | ||
| 972 | + else | ||
| 973 | + { | ||
| 974 | + return cPath.Trim() + "\\"; | ||
| 975 | + } | ||
| 976 | + } | ||
| 977 | + | ||
| 978 | + public void ShowXls(string xslFilePath) | ||
| 979 | + { | ||
| 980 | + if (!System.IO.File.Exists(xslFilePath)) | ||
| 981 | + return; | ||
| 982 | + | ||
| 983 | + Excel.Application app = new Excel.Application(); | ||
| 984 | + Excel.Workbook wb = app.Workbooks.Open(xslFilePath, | ||
| 985 | + 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", | ||
| 986 | + true, false, 0, true, false, false); | ||
| 987 | + | ||
| 988 | + app.Visible = true; | ||
| 989 | + } | ||
| 990 | + | ||
| 991 | + private void FinishWizard() | ||
| 992 | + { | ||
| 993 | + Cursor = Cursors.WaitCursor; | ||
| 994 | + | ||
| 995 | + string[] excludeList = this.textBoxExclude.Text.Split(';'); | ||
| 996 | + | ||
| 997 | + string[] cultures = null; | ||
| 998 | + | ||
| 999 | + cultures = new string[this.listBoxSelected.Items.Count]; | ||
| 1000 | + for (int i = 0; i < this.listBoxSelected.Items.Count; i++) | ||
| 1001 | + { | ||
| 1002 | + cultures[i] = ((CultureInfo)this.listBoxSelected.Items[i]).Name; | ||
| 1003 | + } | ||
| 1004 | + | ||
| 1005 | + switch (_operation) | ||
| 1006 | + { | ||
| 1007 | + case ResxToXlsOperation.Create: | ||
| 1008 | + | ||
| 1009 | + if (String.IsNullOrEmpty(this.textBoxFolder.Text)) | ||
| 1010 | + { | ||
| 1011 | + MessageBox.Show("You must select a the .Net Project root wich contains your updated resx files", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1012 | + | ||
| 1013 | + this.wizardControl1.CurrentStepIndex = this.intermediateStepProject.StepIndex; | ||
| 1014 | + | ||
| 1015 | + return; | ||
| 1016 | + } | ||
| 1017 | + | ||
| 1018 | + if (this.saveFileDialogXls.ShowDialog() == DialogResult.OK) | ||
| 1019 | + { | ||
| 1020 | + Application.DoEvents(); | ||
| 1021 | + | ||
| 1022 | + string path = this.saveFileDialogXls.FileName; | ||
| 1023 | + | ||
| 1024 | + ResxToXls(this.textBoxFolder.Text, this.checkBoxSubFolders.Checked, path, cultures, excludeList, this.checkBoxFolderNaming.Checked); | ||
| 1025 | + | ||
| 1026 | + MessageBox.Show("Excel Document created.", "Create", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1027 | + } | ||
| 1028 | + break; | ||
| 1029 | + case ResxToXlsOperation.Build: | ||
| 1030 | + if (String.IsNullOrEmpty(this.textBoxXls.Text)) | ||
| 1031 | + { | ||
| 1032 | + MessageBox.Show("You must select the Excel document to update", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1033 | + | ||
| 1034 | + this.wizardControl1.CurrentStepIndex = this.intermediateStepXlsSelect.StepIndex; | ||
| 1035 | + | ||
| 1036 | + return; | ||
| 1037 | + } | ||
| 1038 | + | ||
| 1039 | + XlsToResx(this.textBoxXls.Text); | ||
| 1040 | + | ||
| 1041 | + MessageBox.Show("Localized Resources created.", "Build", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1042 | + | ||
| 1043 | + break; | ||
| 1044 | + case ResxToXlsOperation.Update: | ||
| 1045 | + if (String.IsNullOrEmpty(this.textBoxFolder.Text)) | ||
| 1046 | + { | ||
| 1047 | + MessageBox.Show("You must select a the .Net Project root wich contains your updated resx files", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1048 | + | ||
| 1049 | + this.wizardControl1.CurrentStepIndex = this.intermediateStepProject.StepIndex; | ||
| 1050 | + | ||
| 1051 | + return; | ||
| 1052 | + } | ||
| 1053 | + | ||
| 1054 | + if (String.IsNullOrEmpty(this.textBoxXls.Text)) | ||
| 1055 | + { | ||
| 1056 | + MessageBox.Show("You must select the Excel document to update", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1057 | + | ||
| 1058 | + this.wizardControl1.CurrentStepIndex = this.intermediateStepXlsSelect.StepIndex; | ||
| 1059 | + | ||
| 1060 | + return; | ||
| 1061 | + } | ||
| 1062 | + | ||
| 1063 | + | ||
| 1064 | + UpdateXls(this.textBoxXls.Text, this.textBoxFolder.Text, this.checkBoxSubFolders.Checked, excludeList, this.checkBoxFolderNaming.Checked); | ||
| 1065 | + | ||
| 1066 | + MessageBox.Show("Excel Document Updated.", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
| 1067 | + break; | ||
| 1068 | + default: | ||
| 1069 | + break; | ||
| 1070 | + } | ||
| 1071 | + | ||
| 1072 | + Cursor = Cursors.Default; | ||
| 1073 | + | ||
| 1074 | + this.Close(); | ||
| 1075 | + } | ||
| 1076 | + | ||
| 1077 | + private void wizardControl1_CurrentStepIndexChanged(object sender, EventArgs e) | ||
| 1078 | + { | ||
| 1079 | + | ||
| 1080 | + } | ||
| 1081 | + | ||
| 1082 | + private void wizardControl1_NextButtonClick(WizardBase.WizardControl sender, WizardBase.WizardNextButtonClickEventArgs args) | ||
| 1083 | + { | ||
| 1084 | + int index = this.wizardControl1.CurrentStepIndex; | ||
| 1085 | + | ||
| 1086 | + int offset = 1; // un bug? se non faccio cos | ||
| 1087 | + | ||
| 1088 | + switch (index) | ||
| 1089 | + { | ||
| 1090 | + case 0: | ||
| 1091 | + | ||
| 1092 | + switch (_operation) | ||
| 1093 | + { | ||
| 1094 | + case ResxToXlsOperation.Create: | ||
| 1095 | + this.wizardControl1.CurrentStepIndex = 1 - offset; | ||
| 1096 | + break; | ||
| 1097 | + case ResxToXlsOperation.Build: | ||
| 1098 | + this.wizardControl1.CurrentStepIndex = 4 - offset; | ||
| 1099 | + break; | ||
| 1100 | + case ResxToXlsOperation.Update: | ||
| 1101 | + this.wizardControl1.CurrentStepIndex = 1 - offset; | ||
| 1102 | + break; | ||
| 1103 | + default: | ||
| 1104 | + break; | ||
| 1105 | + } | ||
| 1106 | + break; | ||
| 1107 | + | ||
| 1108 | + case 1: | ||
| 1109 | + | ||
| 1110 | + switch (_operation) | ||
| 1111 | + { | ||
| 1112 | + case ResxToXlsOperation.Update: | ||
| 1113 | + this.wizardControl1.CurrentStepIndex = 4 - offset; | ||
| 1114 | + break; | ||
| 1115 | + default: | ||
| 1116 | + break; | ||
| 1117 | + } | ||
| 1118 | + break; | ||
| 1119 | + | ||
| 1120 | + | ||
| 1121 | + case 3: | ||
| 1122 | + | ||
| 1123 | + switch (_operation) | ||
| 1124 | + { | ||
| 1125 | + case ResxToXlsOperation.Create: | ||
| 1126 | + this.wizardControl1.CurrentStepIndex = 5 - offset; | ||
| 1127 | + break; | ||
| 1128 | + default: | ||
| 1129 | + break; | ||
| 1130 | + } | ||
| 1131 | + break; | ||
| 1132 | + } | ||
| 1133 | + } | ||
| 1134 | + | ||
| 1135 | + private void wizardControl1_BackButtonClick(WizardBase.WizardControl sender, WizardBase.WizardClickEventArgs args) | ||
| 1136 | + { | ||
| 1137 | + int index = this.wizardControl1.CurrentStepIndex; | ||
| 1138 | + | ||
| 1139 | + int offset = 1; // un bug? se non faccio cos | ||
| 1140 | + | ||
| 1141 | + switch (index) | ||
| 1142 | + { | ||
| 1143 | + case 5: | ||
| 1144 | + | ||
| 1145 | + switch (_operation) | ||
| 1146 | + { | ||
| 1147 | + case ResxToXlsOperation.Create: | ||
| 1148 | + this.wizardControl1.CurrentStepIndex = 3 + offset; | ||
| 1149 | + break; | ||
| 1150 | + default: | ||
| 1151 | + break; | ||
| 1152 | + } | ||
| 1153 | + break; | ||
| 1154 | + case 4: | ||
| 1155 | + | ||
| 1156 | + switch (_operation) | ||
| 1157 | + { | ||
| 1158 | + case ResxToXlsOperation.Build: | ||
| 1159 | + this.wizardControl1.CurrentStepIndex = 0 + offset; | ||
| 1160 | + break; | ||
| 1161 | + case ResxToXlsOperation.Update: | ||
| 1162 | + this.wizardControl1.CurrentStepIndex = 1 + offset; | ||
| 1163 | + break; | ||
| 1164 | + default: | ||
| 1165 | + break; | ||
| 1166 | + | ||
| 1167 | + } | ||
| 1168 | + break; | ||
| 1169 | + } | ||
| 1170 | + } | ||
| 1171 | + | ||
| 1172 | + private void wizardControl1_FinishButtonClick(object sender, EventArgs e) | ||
| 1173 | + { | ||
| 1174 | + FinishWizard(); | ||
| 1175 | + } | ||
| 1176 | + | ||
| 1177 | + private void startStep1_Click(object sender, EventArgs e) | ||
| 1178 | + { | ||
| 1179 | + | ||
| 1180 | + } | ||
| 1181 | + | ||
| 1182 | + | ||
| 1183 | + } | ||
| 1184 | +} |
Resx2Xls/Resx2XlsForm.resx
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<root> | ||
| 3 | + <!-- | ||
| 4 | + Microsoft ResX Schema | ||
| 5 | + | ||
| 6 | + Version 2.0 | ||
| 7 | + | ||
| 8 | + The primary goals of this format is to allow a simple XML format | ||
| 9 | + that is mostly human readable. The generation and parsing of the | ||
| 10 | + various data types are done through the TypeConverter classes | ||
| 11 | + associated with the data types. | ||
| 12 | + | ||
| 13 | + Example: | ||
| 14 | + | ||
| 15 | + ... ado.net/XML headers & schema ... | ||
| 16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | ||
| 17 | + <resheader name="version">2.0</resheader> | ||
| 18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
| 19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
| 20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
| 21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
| 22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
| 23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | ||
| 24 | + </data> | ||
| 25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
| 26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
| 27 | + <comment>This is a comment</comment> | ||
| 28 | + </data> | ||
| 29 | + | ||
| 30 | + There are any number of "resheader" rows that contain simple | ||
| 31 | + name/value pairs. | ||
| 32 | + | ||
| 33 | + Each data row contains a name, and value. The row also contains a | ||
| 34 | + type or mimetype. Type corresponds to a .NET class that support | ||
| 35 | + text/value conversion through the TypeConverter architecture. | ||
| 36 | + Classes that don't support this are serialized and stored with the | ||
| 37 | + mimetype set. | ||
| 38 | + | ||
| 39 | + The mimetype is used for serialized objects, and tells the | ||
| 40 | + ResXResourceReader how to depersist the object. This is currently not | ||
| 41 | + extensible. For a given mimetype the value must be set accordingly: | ||
| 42 | + | ||
| 43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | ||
| 44 | + that the ResXResourceWriter will generate, however the reader can | ||
| 45 | + read any of the formats listed below. | ||
| 46 | + | ||
| 47 | + mimetype: application/x-microsoft.net.object.binary.base64 | ||
| 48 | + value : The object must be serialized with | ||
| 49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||
| 50 | + : and then encoded with base64 encoding. | ||
| 51 | + | ||
| 52 | + mimetype: application/x-microsoft.net.object.soap.base64 | ||
| 53 | + value : The object must be serialized with | ||
| 54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
| 55 | + : and then encoded with base64 encoding. | ||
| 56 | + | ||
| 57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
| 58 | + value : The object must be serialized into a byte array | ||
| 59 | + : using a System.ComponentModel.TypeConverter | ||
| 60 | + : and then encoded with base64 encoding. | ||
| 61 | + --> | ||
| 62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
| 63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
| 64 | + <xsd:element name="root" msdata:IsDataSet="true"> | ||
| 65 | + <xsd:complexType> | ||
| 66 | + <xsd:choice maxOccurs="unbounded"> | ||
| 67 | + <xsd:element name="metadata"> | ||
| 68 | + <xsd:complexType> | ||
| 69 | + <xsd:sequence> | ||
| 70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
| 71 | + </xsd:sequence> | ||
| 72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | ||
| 73 | + <xsd:attribute name="type" type="xsd:string" /> | ||
| 74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | ||
| 75 | + <xsd:attribute ref="xml:space" /> | ||
| 76 | + </xsd:complexType> | ||
| 77 | + </xsd:element> | ||
| 78 | + <xsd:element name="assembly"> | ||
| 79 | + <xsd:complexType> | ||
| 80 | + <xsd:attribute name="alias" type="xsd:string" /> | ||
| 81 | + <xsd:attribute name="name" type="xsd:string" /> | ||
| 82 | + </xsd:complexType> | ||
| 83 | + </xsd:element> | ||
| 84 | + <xsd:element name="data"> | ||
| 85 | + <xsd:complexType> | ||
| 86 | + <xsd:sequence> | ||
| 87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
| 89 | + </xsd:sequence> | ||
| 90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
| 91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
| 92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
| 93 | + <xsd:attribute ref="xml:space" /> | ||
| 94 | + </xsd:complexType> | ||
| 95 | + </xsd:element> | ||
| 96 | + <xsd:element name="resheader"> | ||
| 97 | + <xsd:complexType> | ||
| 98 | + <xsd:sequence> | ||
| 99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 100 | + </xsd:sequence> | ||
| 101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | ||
| 102 | + </xsd:complexType> | ||
| 103 | + </xsd:element> | ||
| 104 | + </xsd:choice> | ||
| 105 | + </xsd:complexType> | ||
| 106 | + </xsd:element> | ||
| 107 | + </xsd:schema> | ||
| 108 | + <resheader name="resmimetype"> | ||
| 109 | + <value>text/microsoft-resx</value> | ||
| 110 | + </resheader> | ||
| 111 | + <resheader name="version"> | ||
| 112 | + <value>2.0</value> | ||
| 113 | + </resheader> | ||
| 114 | + <resheader name="reader"> | ||
| 115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 116 | + </resheader> | ||
| 117 | + <resheader name="writer"> | ||
| 118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 119 | + </resheader> | ||
| 120 | + <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
| 121 | + <value>17, 17</value> | ||
| 122 | + </metadata> | ||
| 123 | + <metadata name="openFileDialogXls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
| 124 | + <value>168, 17</value> | ||
| 125 | + </metadata> | ||
| 126 | + <metadata name="saveFileDialogXls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
| 127 | + <value>306, 17</value> | ||
| 128 | + </metadata> | ||
| 129 | +</root> |
Resx2Xls/ResxData.Designer.cs
0 → 100644
| 1 | +//------------------------------------------------------------------------------ | ||
| 2 | +// <auto-generated> | ||
| 3 | +// This code was generated by a tool. | ||
| 4 | +// Runtime Version:4.0.30319.18444 | ||
| 5 | +// | ||
| 6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
| 7 | +// the code is regenerated. | ||
| 8 | +// </auto-generated> | ||
| 9 | +//------------------------------------------------------------------------------ | ||
| 10 | + | ||
| 11 | +#pragma warning disable 1591 | ||
| 12 | + | ||
| 13 | +namespace Resx2Xls { | ||
| 14 | + | ||
| 15 | + | ||
| 16 | + /// <summary> | ||
| 17 | + ///Represents a strongly typed in-memory cache of data. | ||
| 18 | + ///</summary> | ||
| 19 | + [global::System.Serializable()] | ||
| 20 | + [global::System.ComponentModel.DesignerCategoryAttribute("code")] | ||
| 21 | + [global::System.ComponentModel.ToolboxItem(true)] | ||
| 22 | + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] | ||
| 23 | + [global::System.Xml.Serialization.XmlRootAttribute("ResxData")] | ||
| 24 | + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] | ||
| 25 | + public partial class ResxData : global::System.Data.DataSet { | ||
| 26 | + | ||
| 27 | + private ResxDataTable tableResx; | ||
| 28 | + | ||
| 29 | + private ResxLocalizedDataTable tableResxLocalized; | ||
| 30 | + | ||
| 31 | + private ResxFilesMasterDataTable tableResxFilesMaster; | ||
| 32 | + | ||
| 33 | + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; | ||
| 34 | + | ||
| 35 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 36 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 37 | + public ResxData() { | ||
| 38 | + this.BeginInit(); | ||
| 39 | + this.InitClass(); | ||
| 40 | + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); | ||
| 41 | + base.Tables.CollectionChanged += schemaChangedHandler; | ||
| 42 | + base.Relations.CollectionChanged += schemaChangedHandler; | ||
| 43 | + this.EndInit(); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 47 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 48 | + protected ResxData(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : | ||
| 49 | + base(info, context, false) { | ||
| 50 | + if ((this.IsBinarySerialized(info, context) == true)) { | ||
| 51 | + this.InitVars(false); | ||
| 52 | + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); | ||
| 53 | + this.Tables.CollectionChanged += schemaChangedHandler1; | ||
| 54 | + this.Relations.CollectionChanged += schemaChangedHandler1; | ||
| 55 | + return; | ||
| 56 | + } | ||
| 57 | + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); | ||
| 58 | + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { | ||
| 59 | + global::System.Data.DataSet ds = new global::System.Data.DataSet(); | ||
| 60 | + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); | ||
| 61 | + if ((ds.Tables["Resx"] != null)) { | ||
| 62 | + base.Tables.Add(new ResxDataTable(ds.Tables["Resx"])); | ||
| 63 | + } | ||
| 64 | + if ((ds.Tables["ResxLocalized"] != null)) { | ||
| 65 | + base.Tables.Add(new ResxLocalizedDataTable(ds.Tables["ResxLocalized"])); | ||
| 66 | + } | ||
| 67 | + if ((ds.Tables["ResxFilesMaster"] != null)) { | ||
| 68 | + base.Tables.Add(new ResxFilesMasterDataTable(ds.Tables["ResxFilesMaster"])); | ||
| 69 | + } | ||
| 70 | + this.DataSetName = ds.DataSetName; | ||
| 71 | + this.Prefix = ds.Prefix; | ||
| 72 | + this.Namespace = ds.Namespace; | ||
| 73 | + this.Locale = ds.Locale; | ||
| 74 | + this.CaseSensitive = ds.CaseSensitive; | ||
| 75 | + this.EnforceConstraints = ds.EnforceConstraints; | ||
| 76 | + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); | ||
| 77 | + this.InitVars(); | ||
| 78 | + } | ||
| 79 | + else { | ||
| 80 | + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); | ||
| 81 | + } | ||
| 82 | + this.GetSerializationData(info, context); | ||
| 83 | + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); | ||
| 84 | + base.Tables.CollectionChanged += schemaChangedHandler; | ||
| 85 | + this.Relations.CollectionChanged += schemaChangedHandler; | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 89 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 90 | + [global::System.ComponentModel.Browsable(false)] | ||
| 91 | + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] | ||
| 92 | + public ResxDataTable Resx { | ||
| 93 | + get { | ||
| 94 | + return this.tableResx; | ||
| 95 | + } | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 99 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 100 | + [global::System.ComponentModel.Browsable(false)] | ||
| 101 | + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] | ||
| 102 | + public ResxLocalizedDataTable ResxLocalized { | ||
| 103 | + get { | ||
| 104 | + return this.tableResxLocalized; | ||
| 105 | + } | ||
| 106 | + } | ||
| 107 | + | ||
| 108 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 109 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 110 | + [global::System.ComponentModel.Browsable(false)] | ||
| 111 | + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] | ||
| 112 | + public ResxFilesMasterDataTable ResxFilesMaster { | ||
| 113 | + get { | ||
| 114 | + return this.tableResxFilesMaster; | ||
| 115 | + } | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 119 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 120 | + [global::System.ComponentModel.BrowsableAttribute(true)] | ||
| 121 | + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] | ||
| 122 | + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { | ||
| 123 | + get { | ||
| 124 | + return this._schemaSerializationMode; | ||
| 125 | + } | ||
| 126 | + set { | ||
| 127 | + this._schemaSerializationMode = value; | ||
| 128 | + } | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 132 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 133 | + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] | ||
| 134 | + public new global::System.Data.DataTableCollection Tables { | ||
| 135 | + get { | ||
| 136 | + return base.Tables; | ||
| 137 | + } | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 141 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 142 | + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] | ||
| 143 | + public new global::System.Data.DataRelationCollection Relations { | ||
| 144 | + get { | ||
| 145 | + return base.Relations; | ||
| 146 | + } | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 150 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 151 | + protected override void InitializeDerivedDataSet() { | ||
| 152 | + this.BeginInit(); | ||
| 153 | + this.InitClass(); | ||
| 154 | + this.EndInit(); | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 158 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 159 | + public override global::System.Data.DataSet Clone() { | ||
| 160 | + ResxData cln = ((ResxData)(base.Clone())); | ||
| 161 | + cln.InitVars(); | ||
| 162 | + cln.SchemaSerializationMode = this.SchemaSerializationMode; | ||
| 163 | + return cln; | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 167 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 168 | + protected override bool ShouldSerializeTables() { | ||
| 169 | + return false; | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 173 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 174 | + protected override bool ShouldSerializeRelations() { | ||
| 175 | + return false; | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 179 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 180 | + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { | ||
| 181 | + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { | ||
| 182 | + this.Reset(); | ||
| 183 | + global::System.Data.DataSet ds = new global::System.Data.DataSet(); | ||
| 184 | + ds.ReadXml(reader); | ||
| 185 | + if ((ds.Tables["Resx"] != null)) { | ||
| 186 | + base.Tables.Add(new ResxDataTable(ds.Tables["Resx"])); | ||
| 187 | + } | ||
| 188 | + if ((ds.Tables["ResxLocalized"] != null)) { | ||
| 189 | + base.Tables.Add(new ResxLocalizedDataTable(ds.Tables["ResxLocalized"])); | ||
| 190 | + } | ||
| 191 | + if ((ds.Tables["ResxFilesMaster"] != null)) { | ||
| 192 | + base.Tables.Add(new ResxFilesMasterDataTable(ds.Tables["ResxFilesMaster"])); | ||
| 193 | + } | ||
| 194 | + this.DataSetName = ds.DataSetName; | ||
| 195 | + this.Prefix = ds.Prefix; | ||
| 196 | + this.Namespace = ds.Namespace; | ||
| 197 | + this.Locale = ds.Locale; | ||
| 198 | + this.CaseSensitive = ds.CaseSensitive; | ||
| 199 | + this.EnforceConstraints = ds.EnforceConstraints; | ||
| 200 | + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); | ||
| 201 | + this.InitVars(); | ||
| 202 | + } | ||
| 203 | + else { | ||
| 204 | + this.ReadXml(reader); | ||
| 205 | + this.InitVars(); | ||
| 206 | + } | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 210 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 211 | + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { | ||
| 212 | + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); | ||
| 213 | + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); | ||
| 214 | + stream.Position = 0; | ||
| 215 | + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 219 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 220 | + internal void InitVars() { | ||
| 221 | + this.InitVars(true); | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 225 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 226 | + internal void InitVars(bool initTable) { | ||
| 227 | + this.tableResx = ((ResxDataTable)(base.Tables["Resx"])); | ||
| 228 | + if ((initTable == true)) { | ||
| 229 | + if ((this.tableResx != null)) { | ||
| 230 | + this.tableResx.InitVars(); | ||
| 231 | + } | ||
| 232 | + } | ||
| 233 | + this.tableResxLocalized = ((ResxLocalizedDataTable)(base.Tables["ResxLocalized"])); | ||
| 234 | + if ((initTable == true)) { | ||
| 235 | + if ((this.tableResxLocalized != null)) { | ||
| 236 | + this.tableResxLocalized.InitVars(); | ||
| 237 | + } | ||
| 238 | + } | ||
| 239 | + this.tableResxFilesMaster = ((ResxFilesMasterDataTable)(base.Tables["ResxFilesMaster"])); | ||
| 240 | + if ((initTable == true)) { | ||
| 241 | + if ((this.tableResxFilesMaster != null)) { | ||
| 242 | + this.tableResxFilesMaster.InitVars(); | ||
| 243 | + } | ||
| 244 | + } | ||
| 245 | + } | ||
| 246 | + | ||
| 247 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 248 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 249 | + private void InitClass() { | ||
| 250 | + this.DataSetName = "ResxData"; | ||
| 251 | + this.Prefix = ""; | ||
| 252 | + this.Namespace = "http://tempuri.org/ResxData.xsd"; | ||
| 253 | + this.EnforceConstraints = true; | ||
| 254 | + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; | ||
| 255 | + this.tableResx = new ResxDataTable(); | ||
| 256 | + base.Tables.Add(this.tableResx); | ||
| 257 | + this.tableResxLocalized = new ResxLocalizedDataTable(); | ||
| 258 | + base.Tables.Add(this.tableResxLocalized); | ||
| 259 | + this.tableResxFilesMaster = new ResxFilesMasterDataTable(); | ||
| 260 | + base.Tables.Add(this.tableResxFilesMaster); | ||
| 261 | + } | ||
| 262 | + | ||
| 263 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 264 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 265 | + private bool ShouldSerializeResx() { | ||
| 266 | + return false; | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 270 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 271 | + private bool ShouldSerializeResxLocalized() { | ||
| 272 | + return false; | ||
| 273 | + } | ||
| 274 | + | ||
| 275 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 276 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 277 | + private bool ShouldSerializeResxFilesMaster() { | ||
| 278 | + return false; | ||
| 279 | + } | ||
| 280 | + | ||
| 281 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 282 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 283 | + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { | ||
| 284 | + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { | ||
| 285 | + this.InitVars(); | ||
| 286 | + } | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 290 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 291 | + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { | ||
| 292 | + ResxData ds = new ResxData(); | ||
| 293 | + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); | ||
| 294 | + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); | ||
| 295 | + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 296 | + any.Namespace = ds.Namespace; | ||
| 297 | + sequence.Items.Add(any); | ||
| 298 | + type.Particle = sequence; | ||
| 299 | + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); | ||
| 300 | + if (xs.Contains(dsSchema.TargetNamespace)) { | ||
| 301 | + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); | ||
| 302 | + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); | ||
| 303 | + try { | ||
| 304 | + global::System.Xml.Schema.XmlSchema schema = null; | ||
| 305 | + dsSchema.Write(s1); | ||
| 306 | + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { | ||
| 307 | + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); | ||
| 308 | + s2.SetLength(0); | ||
| 309 | + schema.Write(s2); | ||
| 310 | + if ((s1.Length == s2.Length)) { | ||
| 311 | + s1.Position = 0; | ||
| 312 | + s2.Position = 0; | ||
| 313 | + for (; ((s1.Position != s1.Length) | ||
| 314 | + && (s1.ReadByte() == s2.ReadByte())); ) { | ||
| 315 | + ; | ||
| 316 | + } | ||
| 317 | + if ((s1.Position == s1.Length)) { | ||
| 318 | + return type; | ||
| 319 | + } | ||
| 320 | + } | ||
| 321 | + } | ||
| 322 | + } | ||
| 323 | + finally { | ||
| 324 | + if ((s1 != null)) { | ||
| 325 | + s1.Close(); | ||
| 326 | + } | ||
| 327 | + if ((s2 != null)) { | ||
| 328 | + s2.Close(); | ||
| 329 | + } | ||
| 330 | + } | ||
| 331 | + } | ||
| 332 | + xs.Add(dsSchema); | ||
| 333 | + return type; | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 337 | + public delegate void ResxRowChangeEventHandler(object sender, ResxRowChangeEvent e); | ||
| 338 | + | ||
| 339 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 340 | + public delegate void ResxLocalizedRowChangeEventHandler(object sender, ResxLocalizedRowChangeEvent e); | ||
| 341 | + | ||
| 342 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 343 | + public delegate void ResxFilesMasterRowChangeEventHandler(object sender, ResxFilesMasterRowChangeEvent e); | ||
| 344 | + | ||
| 345 | + /// <summary> | ||
| 346 | + ///Represents the strongly named DataTable class. | ||
| 347 | + ///</summary> | ||
| 348 | + [global::System.Serializable()] | ||
| 349 | + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] | ||
| 350 | + public partial class ResxDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { | ||
| 351 | + | ||
| 352 | + private global::System.Data.DataColumn columnFileSource; | ||
| 353 | + | ||
| 354 | + private global::System.Data.DataColumn columnFileDestination; | ||
| 355 | + | ||
| 356 | + private global::System.Data.DataColumn columnKey; | ||
| 357 | + | ||
| 358 | + private global::System.Data.DataColumn columnValue; | ||
| 359 | + | ||
| 360 | + private global::System.Data.DataColumn columnId; | ||
| 361 | + | ||
| 362 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 363 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 364 | + public ResxDataTable() { | ||
| 365 | + this.TableName = "Resx"; | ||
| 366 | + this.BeginInit(); | ||
| 367 | + this.InitClass(); | ||
| 368 | + this.EndInit(); | ||
| 369 | + } | ||
| 370 | + | ||
| 371 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 372 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 373 | + internal ResxDataTable(global::System.Data.DataTable table) { | ||
| 374 | + this.TableName = table.TableName; | ||
| 375 | + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { | ||
| 376 | + this.CaseSensitive = table.CaseSensitive; | ||
| 377 | + } | ||
| 378 | + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { | ||
| 379 | + this.Locale = table.Locale; | ||
| 380 | + } | ||
| 381 | + if ((table.Namespace != table.DataSet.Namespace)) { | ||
| 382 | + this.Namespace = table.Namespace; | ||
| 383 | + } | ||
| 384 | + this.Prefix = table.Prefix; | ||
| 385 | + this.MinimumCapacity = table.MinimumCapacity; | ||
| 386 | + } | ||
| 387 | + | ||
| 388 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 389 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 390 | + protected ResxDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : | ||
| 391 | + base(info, context) { | ||
| 392 | + this.InitVars(); | ||
| 393 | + } | ||
| 394 | + | ||
| 395 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 396 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 397 | + public global::System.Data.DataColumn FileSourceColumn { | ||
| 398 | + get { | ||
| 399 | + return this.columnFileSource; | ||
| 400 | + } | ||
| 401 | + } | ||
| 402 | + | ||
| 403 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 404 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 405 | + public global::System.Data.DataColumn FileDestinationColumn { | ||
| 406 | + get { | ||
| 407 | + return this.columnFileDestination; | ||
| 408 | + } | ||
| 409 | + } | ||
| 410 | + | ||
| 411 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 412 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 413 | + public global::System.Data.DataColumn KeyColumn { | ||
| 414 | + get { | ||
| 415 | + return this.columnKey; | ||
| 416 | + } | ||
| 417 | + } | ||
| 418 | + | ||
| 419 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 420 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 421 | + public global::System.Data.DataColumn ValueColumn { | ||
| 422 | + get { | ||
| 423 | + return this.columnValue; | ||
| 424 | + } | ||
| 425 | + } | ||
| 426 | + | ||
| 427 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 428 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 429 | + public global::System.Data.DataColumn IdColumn { | ||
| 430 | + get { | ||
| 431 | + return this.columnId; | ||
| 432 | + } | ||
| 433 | + } | ||
| 434 | + | ||
| 435 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 436 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 437 | + [global::System.ComponentModel.Browsable(false)] | ||
| 438 | + public int Count { | ||
| 439 | + get { | ||
| 440 | + return this.Rows.Count; | ||
| 441 | + } | ||
| 442 | + } | ||
| 443 | + | ||
| 444 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 445 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 446 | + public ResxRow this[int index] { | ||
| 447 | + get { | ||
| 448 | + return ((ResxRow)(this.Rows[index])); | ||
| 449 | + } | ||
| 450 | + } | ||
| 451 | + | ||
| 452 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 453 | + public event ResxRowChangeEventHandler ResxRowChanging; | ||
| 454 | + | ||
| 455 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 456 | + public event ResxRowChangeEventHandler ResxRowChanged; | ||
| 457 | + | ||
| 458 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 459 | + public event ResxRowChangeEventHandler ResxRowDeleting; | ||
| 460 | + | ||
| 461 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 462 | + public event ResxRowChangeEventHandler ResxRowDeleted; | ||
| 463 | + | ||
| 464 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 465 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 466 | + public void AddResxRow(ResxRow row) { | ||
| 467 | + this.Rows.Add(row); | ||
| 468 | + } | ||
| 469 | + | ||
| 470 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 471 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 472 | + public ResxRow AddResxRow(string FileSource, string FileDestination, string Key, string Value) { | ||
| 473 | + ResxRow rowResxRow = ((ResxRow)(this.NewRow())); | ||
| 474 | + object[] columnValuesArray = new object[] { | ||
| 475 | + FileSource, | ||
| 476 | + FileDestination, | ||
| 477 | + Key, | ||
| 478 | + Value, | ||
| 479 | + null}; | ||
| 480 | + rowResxRow.ItemArray = columnValuesArray; | ||
| 481 | + this.Rows.Add(rowResxRow); | ||
| 482 | + return rowResxRow; | ||
| 483 | + } | ||
| 484 | + | ||
| 485 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 486 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 487 | + public ResxRow FindById(int Id) { | ||
| 488 | + return ((ResxRow)(this.Rows.Find(new object[] { | ||
| 489 | + Id}))); | ||
| 490 | + } | ||
| 491 | + | ||
| 492 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 493 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 494 | + public virtual global::System.Collections.IEnumerator GetEnumerator() { | ||
| 495 | + return this.Rows.GetEnumerator(); | ||
| 496 | + } | ||
| 497 | + | ||
| 498 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 499 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 500 | + public override global::System.Data.DataTable Clone() { | ||
| 501 | + ResxDataTable cln = ((ResxDataTable)(base.Clone())); | ||
| 502 | + cln.InitVars(); | ||
| 503 | + return cln; | ||
| 504 | + } | ||
| 505 | + | ||
| 506 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 507 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 508 | + protected override global::System.Data.DataTable CreateInstance() { | ||
| 509 | + return new ResxDataTable(); | ||
| 510 | + } | ||
| 511 | + | ||
| 512 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 513 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 514 | + internal void InitVars() { | ||
| 515 | + this.columnFileSource = base.Columns["FileSource"]; | ||
| 516 | + this.columnFileDestination = base.Columns["FileDestination"]; | ||
| 517 | + this.columnKey = base.Columns["Key"]; | ||
| 518 | + this.columnValue = base.Columns["Value"]; | ||
| 519 | + this.columnId = base.Columns["Id"]; | ||
| 520 | + } | ||
| 521 | + | ||
| 522 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 523 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 524 | + private void InitClass() { | ||
| 525 | + this.columnFileSource = new global::System.Data.DataColumn("FileSource", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 526 | + base.Columns.Add(this.columnFileSource); | ||
| 527 | + this.columnFileDestination = new global::System.Data.DataColumn("FileDestination", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 528 | + base.Columns.Add(this.columnFileDestination); | ||
| 529 | + this.columnKey = new global::System.Data.DataColumn("Key", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 530 | + base.Columns.Add(this.columnKey); | ||
| 531 | + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 532 | + base.Columns.Add(this.columnValue); | ||
| 533 | + this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element); | ||
| 534 | + base.Columns.Add(this.columnId); | ||
| 535 | + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { | ||
| 536 | + this.columnId}, true)); | ||
| 537 | + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] { | ||
| 538 | + this.columnKey, | ||
| 539 | + this.columnFileDestination}, false)); | ||
| 540 | + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint3", new global::System.Data.DataColumn[] { | ||
| 541 | + this.columnKey, | ||
| 542 | + this.columnFileSource}, false)); | ||
| 543 | + this.columnFileSource.AllowDBNull = false; | ||
| 544 | + this.columnKey.AllowDBNull = false; | ||
| 545 | + this.columnId.AutoIncrement = true; | ||
| 546 | + this.columnId.AllowDBNull = false; | ||
| 547 | + this.columnId.Unique = true; | ||
| 548 | + } | ||
| 549 | + | ||
| 550 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 551 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 552 | + public ResxRow NewResxRow() { | ||
| 553 | + return ((ResxRow)(this.NewRow())); | ||
| 554 | + } | ||
| 555 | + | ||
| 556 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 557 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 558 | + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { | ||
| 559 | + return new ResxRow(builder); | ||
| 560 | + } | ||
| 561 | + | ||
| 562 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 563 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 564 | + protected override global::System.Type GetRowType() { | ||
| 565 | + return typeof(ResxRow); | ||
| 566 | + } | ||
| 567 | + | ||
| 568 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 569 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 570 | + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { | ||
| 571 | + base.OnRowChanged(e); | ||
| 572 | + if ((this.ResxRowChanged != null)) { | ||
| 573 | + this.ResxRowChanged(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action)); | ||
| 574 | + } | ||
| 575 | + } | ||
| 576 | + | ||
| 577 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 578 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 579 | + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { | ||
| 580 | + base.OnRowChanging(e); | ||
| 581 | + if ((this.ResxRowChanging != null)) { | ||
| 582 | + this.ResxRowChanging(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action)); | ||
| 583 | + } | ||
| 584 | + } | ||
| 585 | + | ||
| 586 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 587 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 588 | + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { | ||
| 589 | + base.OnRowDeleted(e); | ||
| 590 | + if ((this.ResxRowDeleted != null)) { | ||
| 591 | + this.ResxRowDeleted(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action)); | ||
| 592 | + } | ||
| 593 | + } | ||
| 594 | + | ||
| 595 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 596 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 597 | + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { | ||
| 598 | + base.OnRowDeleting(e); | ||
| 599 | + if ((this.ResxRowDeleting != null)) { | ||
| 600 | + this.ResxRowDeleting(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action)); | ||
| 601 | + } | ||
| 602 | + } | ||
| 603 | + | ||
| 604 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 605 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 606 | + public void RemoveResxRow(ResxRow row) { | ||
| 607 | + this.Rows.Remove(row); | ||
| 608 | + } | ||
| 609 | + | ||
| 610 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 611 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 612 | + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { | ||
| 613 | + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); | ||
| 614 | + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); | ||
| 615 | + ResxData ds = new ResxData(); | ||
| 616 | + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 617 | + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; | ||
| 618 | + any1.MinOccurs = new decimal(0); | ||
| 619 | + any1.MaxOccurs = decimal.MaxValue; | ||
| 620 | + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 621 | + sequence.Items.Add(any1); | ||
| 622 | + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 623 | + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; | ||
| 624 | + any2.MinOccurs = new decimal(1); | ||
| 625 | + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 626 | + sequence.Items.Add(any2); | ||
| 627 | + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 628 | + attribute1.Name = "namespace"; | ||
| 629 | + attribute1.FixedValue = ds.Namespace; | ||
| 630 | + type.Attributes.Add(attribute1); | ||
| 631 | + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 632 | + attribute2.Name = "tableTypeName"; | ||
| 633 | + attribute2.FixedValue = "ResxDataTable"; | ||
| 634 | + type.Attributes.Add(attribute2); | ||
| 635 | + type.Particle = sequence; | ||
| 636 | + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); | ||
| 637 | + if (xs.Contains(dsSchema.TargetNamespace)) { | ||
| 638 | + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); | ||
| 639 | + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); | ||
| 640 | + try { | ||
| 641 | + global::System.Xml.Schema.XmlSchema schema = null; | ||
| 642 | + dsSchema.Write(s1); | ||
| 643 | + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { | ||
| 644 | + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); | ||
| 645 | + s2.SetLength(0); | ||
| 646 | + schema.Write(s2); | ||
| 647 | + if ((s1.Length == s2.Length)) { | ||
| 648 | + s1.Position = 0; | ||
| 649 | + s2.Position = 0; | ||
| 650 | + for (; ((s1.Position != s1.Length) | ||
| 651 | + && (s1.ReadByte() == s2.ReadByte())); ) { | ||
| 652 | + ; | ||
| 653 | + } | ||
| 654 | + if ((s1.Position == s1.Length)) { | ||
| 655 | + return type; | ||
| 656 | + } | ||
| 657 | + } | ||
| 658 | + } | ||
| 659 | + } | ||
| 660 | + finally { | ||
| 661 | + if ((s1 != null)) { | ||
| 662 | + s1.Close(); | ||
| 663 | + } | ||
| 664 | + if ((s2 != null)) { | ||
| 665 | + s2.Close(); | ||
| 666 | + } | ||
| 667 | + } | ||
| 668 | + } | ||
| 669 | + xs.Add(dsSchema); | ||
| 670 | + return type; | ||
| 671 | + } | ||
| 672 | + } | ||
| 673 | + | ||
| 674 | + /// <summary> | ||
| 675 | + ///Represents the strongly named DataTable class. | ||
| 676 | + ///</summary> | ||
| 677 | + [global::System.Serializable()] | ||
| 678 | + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] | ||
| 679 | + public partial class ResxLocalizedDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { | ||
| 680 | + | ||
| 681 | + private global::System.Data.DataColumn columnCulture; | ||
| 682 | + | ||
| 683 | + private global::System.Data.DataColumn columnKey; | ||
| 684 | + | ||
| 685 | + private global::System.Data.DataColumn columnValue; | ||
| 686 | + | ||
| 687 | + private global::System.Data.DataColumn columnId; | ||
| 688 | + | ||
| 689 | + private global::System.Data.DataColumn columnParentId; | ||
| 690 | + | ||
| 691 | + private global::System.Data.DataColumn columnParentFileFullName; | ||
| 692 | + | ||
| 693 | + private global::System.Data.DataColumn columnRead; | ||
| 694 | + | ||
| 695 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 696 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 697 | + public ResxLocalizedDataTable() { | ||
| 698 | + this.TableName = "ResxLocalized"; | ||
| 699 | + this.BeginInit(); | ||
| 700 | + this.InitClass(); | ||
| 701 | + this.EndInit(); | ||
| 702 | + } | ||
| 703 | + | ||
| 704 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 705 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 706 | + internal ResxLocalizedDataTable(global::System.Data.DataTable table) { | ||
| 707 | + this.TableName = table.TableName; | ||
| 708 | + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { | ||
| 709 | + this.CaseSensitive = table.CaseSensitive; | ||
| 710 | + } | ||
| 711 | + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { | ||
| 712 | + this.Locale = table.Locale; | ||
| 713 | + } | ||
| 714 | + if ((table.Namespace != table.DataSet.Namespace)) { | ||
| 715 | + this.Namespace = table.Namespace; | ||
| 716 | + } | ||
| 717 | + this.Prefix = table.Prefix; | ||
| 718 | + this.MinimumCapacity = table.MinimumCapacity; | ||
| 719 | + } | ||
| 720 | + | ||
| 721 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 722 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 723 | + protected ResxLocalizedDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : | ||
| 724 | + base(info, context) { | ||
| 725 | + this.InitVars(); | ||
| 726 | + } | ||
| 727 | + | ||
| 728 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 729 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 730 | + public global::System.Data.DataColumn CultureColumn { | ||
| 731 | + get { | ||
| 732 | + return this.columnCulture; | ||
| 733 | + } | ||
| 734 | + } | ||
| 735 | + | ||
| 736 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 737 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 738 | + public global::System.Data.DataColumn KeyColumn { | ||
| 739 | + get { | ||
| 740 | + return this.columnKey; | ||
| 741 | + } | ||
| 742 | + } | ||
| 743 | + | ||
| 744 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 745 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 746 | + public global::System.Data.DataColumn ValueColumn { | ||
| 747 | + get { | ||
| 748 | + return this.columnValue; | ||
| 749 | + } | ||
| 750 | + } | ||
| 751 | + | ||
| 752 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 753 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 754 | + public global::System.Data.DataColumn IdColumn { | ||
| 755 | + get { | ||
| 756 | + return this.columnId; | ||
| 757 | + } | ||
| 758 | + } | ||
| 759 | + | ||
| 760 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 761 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 762 | + public global::System.Data.DataColumn ParentIdColumn { | ||
| 763 | + get { | ||
| 764 | + return this.columnParentId; | ||
| 765 | + } | ||
| 766 | + } | ||
| 767 | + | ||
| 768 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 769 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 770 | + public global::System.Data.DataColumn ParentFileFullNameColumn { | ||
| 771 | + get { | ||
| 772 | + return this.columnParentFileFullName; | ||
| 773 | + } | ||
| 774 | + } | ||
| 775 | + | ||
| 776 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 777 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 778 | + public global::System.Data.DataColumn ReadColumn { | ||
| 779 | + get { | ||
| 780 | + return this.columnRead; | ||
| 781 | + } | ||
| 782 | + } | ||
| 783 | + | ||
| 784 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 785 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 786 | + [global::System.ComponentModel.Browsable(false)] | ||
| 787 | + public int Count { | ||
| 788 | + get { | ||
| 789 | + return this.Rows.Count; | ||
| 790 | + } | ||
| 791 | + } | ||
| 792 | + | ||
| 793 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 794 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 795 | + public ResxLocalizedRow this[int index] { | ||
| 796 | + get { | ||
| 797 | + return ((ResxLocalizedRow)(this.Rows[index])); | ||
| 798 | + } | ||
| 799 | + } | ||
| 800 | + | ||
| 801 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 802 | + public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowChanging; | ||
| 803 | + | ||
| 804 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 805 | + public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowChanged; | ||
| 806 | + | ||
| 807 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 808 | + public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowDeleting; | ||
| 809 | + | ||
| 810 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 811 | + public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowDeleted; | ||
| 812 | + | ||
| 813 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 814 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 815 | + public void AddResxLocalizedRow(ResxLocalizedRow row) { | ||
| 816 | + this.Rows.Add(row); | ||
| 817 | + } | ||
| 818 | + | ||
| 819 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 820 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 821 | + public ResxLocalizedRow AddResxLocalizedRow(string Culture, string Key, string Value, int ParentId, string ParentFileFullName, bool Read) { | ||
| 822 | + ResxLocalizedRow rowResxLocalizedRow = ((ResxLocalizedRow)(this.NewRow())); | ||
| 823 | + object[] columnValuesArray = new object[] { | ||
| 824 | + Culture, | ||
| 825 | + Key, | ||
| 826 | + Value, | ||
| 827 | + null, | ||
| 828 | + ParentId, | ||
| 829 | + ParentFileFullName, | ||
| 830 | + Read}; | ||
| 831 | + rowResxLocalizedRow.ItemArray = columnValuesArray; | ||
| 832 | + this.Rows.Add(rowResxLocalizedRow); | ||
| 833 | + return rowResxLocalizedRow; | ||
| 834 | + } | ||
| 835 | + | ||
| 836 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 837 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 838 | + public ResxLocalizedRow FindById(int Id) { | ||
| 839 | + return ((ResxLocalizedRow)(this.Rows.Find(new object[] { | ||
| 840 | + Id}))); | ||
| 841 | + } | ||
| 842 | + | ||
| 843 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 844 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 845 | + public virtual global::System.Collections.IEnumerator GetEnumerator() { | ||
| 846 | + return this.Rows.GetEnumerator(); | ||
| 847 | + } | ||
| 848 | + | ||
| 849 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 850 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 851 | + public override global::System.Data.DataTable Clone() { | ||
| 852 | + ResxLocalizedDataTable cln = ((ResxLocalizedDataTable)(base.Clone())); | ||
| 853 | + cln.InitVars(); | ||
| 854 | + return cln; | ||
| 855 | + } | ||
| 856 | + | ||
| 857 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 858 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 859 | + protected override global::System.Data.DataTable CreateInstance() { | ||
| 860 | + return new ResxLocalizedDataTable(); | ||
| 861 | + } | ||
| 862 | + | ||
| 863 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 864 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 865 | + internal void InitVars() { | ||
| 866 | + this.columnCulture = base.Columns["Culture"]; | ||
| 867 | + this.columnKey = base.Columns["Key"]; | ||
| 868 | + this.columnValue = base.Columns["Value"]; | ||
| 869 | + this.columnId = base.Columns["Id"]; | ||
| 870 | + this.columnParentId = base.Columns["ParentId"]; | ||
| 871 | + this.columnParentFileFullName = base.Columns["ParentFileFullName"]; | ||
| 872 | + this.columnRead = base.Columns["Read"]; | ||
| 873 | + } | ||
| 874 | + | ||
| 875 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 876 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 877 | + private void InitClass() { | ||
| 878 | + this.columnCulture = new global::System.Data.DataColumn("Culture", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 879 | + base.Columns.Add(this.columnCulture); | ||
| 880 | + this.columnKey = new global::System.Data.DataColumn("Key", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 881 | + base.Columns.Add(this.columnKey); | ||
| 882 | + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 883 | + base.Columns.Add(this.columnValue); | ||
| 884 | + this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element); | ||
| 885 | + base.Columns.Add(this.columnId); | ||
| 886 | + this.columnParentId = new global::System.Data.DataColumn("ParentId", typeof(int), null, global::System.Data.MappingType.Element); | ||
| 887 | + base.Columns.Add(this.columnParentId); | ||
| 888 | + this.columnParentFileFullName = new global::System.Data.DataColumn("ParentFileFullName", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 889 | + base.Columns.Add(this.columnParentFileFullName); | ||
| 890 | + this.columnRead = new global::System.Data.DataColumn("Read", typeof(bool), null, global::System.Data.MappingType.Element); | ||
| 891 | + base.Columns.Add(this.columnRead); | ||
| 892 | + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { | ||
| 893 | + this.columnId}, true)); | ||
| 894 | + this.columnCulture.AllowDBNull = false; | ||
| 895 | + this.columnKey.AllowDBNull = false; | ||
| 896 | + this.columnId.AutoIncrement = true; | ||
| 897 | + this.columnId.AllowDBNull = false; | ||
| 898 | + this.columnId.Unique = true; | ||
| 899 | + this.columnRead.AllowDBNull = false; | ||
| 900 | + this.columnRead.DefaultValue = ((bool)(false)); | ||
| 901 | + } | ||
| 902 | + | ||
| 903 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 904 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 905 | + public ResxLocalizedRow NewResxLocalizedRow() { | ||
| 906 | + return ((ResxLocalizedRow)(this.NewRow())); | ||
| 907 | + } | ||
| 908 | + | ||
| 909 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 910 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 911 | + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { | ||
| 912 | + return new ResxLocalizedRow(builder); | ||
| 913 | + } | ||
| 914 | + | ||
| 915 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 916 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 917 | + protected override global::System.Type GetRowType() { | ||
| 918 | + return typeof(ResxLocalizedRow); | ||
| 919 | + } | ||
| 920 | + | ||
| 921 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 922 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 923 | + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { | ||
| 924 | + base.OnRowChanged(e); | ||
| 925 | + if ((this.ResxLocalizedRowChanged != null)) { | ||
| 926 | + this.ResxLocalizedRowChanged(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action)); | ||
| 927 | + } | ||
| 928 | + } | ||
| 929 | + | ||
| 930 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 931 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 932 | + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { | ||
| 933 | + base.OnRowChanging(e); | ||
| 934 | + if ((this.ResxLocalizedRowChanging != null)) { | ||
| 935 | + this.ResxLocalizedRowChanging(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action)); | ||
| 936 | + } | ||
| 937 | + } | ||
| 938 | + | ||
| 939 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 940 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 941 | + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { | ||
| 942 | + base.OnRowDeleted(e); | ||
| 943 | + if ((this.ResxLocalizedRowDeleted != null)) { | ||
| 944 | + this.ResxLocalizedRowDeleted(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action)); | ||
| 945 | + } | ||
| 946 | + } | ||
| 947 | + | ||
| 948 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 949 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 950 | + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { | ||
| 951 | + base.OnRowDeleting(e); | ||
| 952 | + if ((this.ResxLocalizedRowDeleting != null)) { | ||
| 953 | + this.ResxLocalizedRowDeleting(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action)); | ||
| 954 | + } | ||
| 955 | + } | ||
| 956 | + | ||
| 957 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 958 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 959 | + public void RemoveResxLocalizedRow(ResxLocalizedRow row) { | ||
| 960 | + this.Rows.Remove(row); | ||
| 961 | + } | ||
| 962 | + | ||
| 963 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 964 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 965 | + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { | ||
| 966 | + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); | ||
| 967 | + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); | ||
| 968 | + ResxData ds = new ResxData(); | ||
| 969 | + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 970 | + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; | ||
| 971 | + any1.MinOccurs = new decimal(0); | ||
| 972 | + any1.MaxOccurs = decimal.MaxValue; | ||
| 973 | + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 974 | + sequence.Items.Add(any1); | ||
| 975 | + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 976 | + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; | ||
| 977 | + any2.MinOccurs = new decimal(1); | ||
| 978 | + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 979 | + sequence.Items.Add(any2); | ||
| 980 | + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 981 | + attribute1.Name = "namespace"; | ||
| 982 | + attribute1.FixedValue = ds.Namespace; | ||
| 983 | + type.Attributes.Add(attribute1); | ||
| 984 | + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 985 | + attribute2.Name = "tableTypeName"; | ||
| 986 | + attribute2.FixedValue = "ResxLocalizedDataTable"; | ||
| 987 | + type.Attributes.Add(attribute2); | ||
| 988 | + type.Particle = sequence; | ||
| 989 | + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); | ||
| 990 | + if (xs.Contains(dsSchema.TargetNamespace)) { | ||
| 991 | + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); | ||
| 992 | + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); | ||
| 993 | + try { | ||
| 994 | + global::System.Xml.Schema.XmlSchema schema = null; | ||
| 995 | + dsSchema.Write(s1); | ||
| 996 | + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { | ||
| 997 | + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); | ||
| 998 | + s2.SetLength(0); | ||
| 999 | + schema.Write(s2); | ||
| 1000 | + if ((s1.Length == s2.Length)) { | ||
| 1001 | + s1.Position = 0; | ||
| 1002 | + s2.Position = 0; | ||
| 1003 | + for (; ((s1.Position != s1.Length) | ||
| 1004 | + && (s1.ReadByte() == s2.ReadByte())); ) { | ||
| 1005 | + ; | ||
| 1006 | + } | ||
| 1007 | + if ((s1.Position == s1.Length)) { | ||
| 1008 | + return type; | ||
| 1009 | + } | ||
| 1010 | + } | ||
| 1011 | + } | ||
| 1012 | + } | ||
| 1013 | + finally { | ||
| 1014 | + if ((s1 != null)) { | ||
| 1015 | + s1.Close(); | ||
| 1016 | + } | ||
| 1017 | + if ((s2 != null)) { | ||
| 1018 | + s2.Close(); | ||
| 1019 | + } | ||
| 1020 | + } | ||
| 1021 | + } | ||
| 1022 | + xs.Add(dsSchema); | ||
| 1023 | + return type; | ||
| 1024 | + } | ||
| 1025 | + } | ||
| 1026 | + | ||
| 1027 | + /// <summary> | ||
| 1028 | + ///Represents the strongly named DataTable class. | ||
| 1029 | + ///</summary> | ||
| 1030 | + [global::System.Serializable()] | ||
| 1031 | + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] | ||
| 1032 | + public partial class ResxFilesMasterDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { | ||
| 1033 | + | ||
| 1034 | + private global::System.Data.DataColumn columnId; | ||
| 1035 | + | ||
| 1036 | + private global::System.Data.DataColumn columnFileSource; | ||
| 1037 | + | ||
| 1038 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1039 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1040 | + public ResxFilesMasterDataTable() { | ||
| 1041 | + this.TableName = "ResxFilesMaster"; | ||
| 1042 | + this.BeginInit(); | ||
| 1043 | + this.InitClass(); | ||
| 1044 | + this.EndInit(); | ||
| 1045 | + } | ||
| 1046 | + | ||
| 1047 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1048 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1049 | + internal ResxFilesMasterDataTable(global::System.Data.DataTable table) { | ||
| 1050 | + this.TableName = table.TableName; | ||
| 1051 | + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { | ||
| 1052 | + this.CaseSensitive = table.CaseSensitive; | ||
| 1053 | + } | ||
| 1054 | + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { | ||
| 1055 | + this.Locale = table.Locale; | ||
| 1056 | + } | ||
| 1057 | + if ((table.Namespace != table.DataSet.Namespace)) { | ||
| 1058 | + this.Namespace = table.Namespace; | ||
| 1059 | + } | ||
| 1060 | + this.Prefix = table.Prefix; | ||
| 1061 | + this.MinimumCapacity = table.MinimumCapacity; | ||
| 1062 | + } | ||
| 1063 | + | ||
| 1064 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1065 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1066 | + protected ResxFilesMasterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : | ||
| 1067 | + base(info, context) { | ||
| 1068 | + this.InitVars(); | ||
| 1069 | + } | ||
| 1070 | + | ||
| 1071 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1072 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1073 | + public global::System.Data.DataColumn IdColumn { | ||
| 1074 | + get { | ||
| 1075 | + return this.columnId; | ||
| 1076 | + } | ||
| 1077 | + } | ||
| 1078 | + | ||
| 1079 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1080 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1081 | + public global::System.Data.DataColumn FileSourceColumn { | ||
| 1082 | + get { | ||
| 1083 | + return this.columnFileSource; | ||
| 1084 | + } | ||
| 1085 | + } | ||
| 1086 | + | ||
| 1087 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1088 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1089 | + [global::System.ComponentModel.Browsable(false)] | ||
| 1090 | + public int Count { | ||
| 1091 | + get { | ||
| 1092 | + return this.Rows.Count; | ||
| 1093 | + } | ||
| 1094 | + } | ||
| 1095 | + | ||
| 1096 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1097 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1098 | + public ResxFilesMasterRow this[int index] { | ||
| 1099 | + get { | ||
| 1100 | + return ((ResxFilesMasterRow)(this.Rows[index])); | ||
| 1101 | + } | ||
| 1102 | + } | ||
| 1103 | + | ||
| 1104 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1105 | + public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowChanging; | ||
| 1106 | + | ||
| 1107 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1108 | + public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowChanged; | ||
| 1109 | + | ||
| 1110 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1111 | + public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowDeleting; | ||
| 1112 | + | ||
| 1113 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1114 | + public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowDeleted; | ||
| 1115 | + | ||
| 1116 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1117 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1118 | + public void AddResxFilesMasterRow(ResxFilesMasterRow row) { | ||
| 1119 | + this.Rows.Add(row); | ||
| 1120 | + } | ||
| 1121 | + | ||
| 1122 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1123 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1124 | + public ResxFilesMasterRow AddResxFilesMasterRow(string FileSource) { | ||
| 1125 | + ResxFilesMasterRow rowResxFilesMasterRow = ((ResxFilesMasterRow)(this.NewRow())); | ||
| 1126 | + object[] columnValuesArray = new object[] { | ||
| 1127 | + null, | ||
| 1128 | + FileSource}; | ||
| 1129 | + rowResxFilesMasterRow.ItemArray = columnValuesArray; | ||
| 1130 | + this.Rows.Add(rowResxFilesMasterRow); | ||
| 1131 | + return rowResxFilesMasterRow; | ||
| 1132 | + } | ||
| 1133 | + | ||
| 1134 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1135 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1136 | + public virtual global::System.Collections.IEnumerator GetEnumerator() { | ||
| 1137 | + return this.Rows.GetEnumerator(); | ||
| 1138 | + } | ||
| 1139 | + | ||
| 1140 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1141 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1142 | + public override global::System.Data.DataTable Clone() { | ||
| 1143 | + ResxFilesMasterDataTable cln = ((ResxFilesMasterDataTable)(base.Clone())); | ||
| 1144 | + cln.InitVars(); | ||
| 1145 | + return cln; | ||
| 1146 | + } | ||
| 1147 | + | ||
| 1148 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1149 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1150 | + protected override global::System.Data.DataTable CreateInstance() { | ||
| 1151 | + return new ResxFilesMasterDataTable(); | ||
| 1152 | + } | ||
| 1153 | + | ||
| 1154 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1155 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1156 | + internal void InitVars() { | ||
| 1157 | + this.columnId = base.Columns["Id"]; | ||
| 1158 | + this.columnFileSource = base.Columns["FileSource"]; | ||
| 1159 | + } | ||
| 1160 | + | ||
| 1161 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1162 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1163 | + private void InitClass() { | ||
| 1164 | + this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element); | ||
| 1165 | + base.Columns.Add(this.columnId); | ||
| 1166 | + this.columnFileSource = new global::System.Data.DataColumn("FileSource", typeof(string), null, global::System.Data.MappingType.Element); | ||
| 1167 | + base.Columns.Add(this.columnFileSource); | ||
| 1168 | + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { | ||
| 1169 | + this.columnId}, false)); | ||
| 1170 | + this.columnId.AutoIncrement = true; | ||
| 1171 | + this.columnId.AutoIncrementSeed = -1; | ||
| 1172 | + this.columnId.AutoIncrementStep = -1; | ||
| 1173 | + this.columnId.AllowDBNull = false; | ||
| 1174 | + this.columnId.Unique = true; | ||
| 1175 | + } | ||
| 1176 | + | ||
| 1177 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1178 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1179 | + public ResxFilesMasterRow NewResxFilesMasterRow() { | ||
| 1180 | + return ((ResxFilesMasterRow)(this.NewRow())); | ||
| 1181 | + } | ||
| 1182 | + | ||
| 1183 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1184 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1185 | + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { | ||
| 1186 | + return new ResxFilesMasterRow(builder); | ||
| 1187 | + } | ||
| 1188 | + | ||
| 1189 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1190 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1191 | + protected override global::System.Type GetRowType() { | ||
| 1192 | + return typeof(ResxFilesMasterRow); | ||
| 1193 | + } | ||
| 1194 | + | ||
| 1195 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1196 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1197 | + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { | ||
| 1198 | + base.OnRowChanged(e); | ||
| 1199 | + if ((this.ResxFilesMasterRowChanged != null)) { | ||
| 1200 | + this.ResxFilesMasterRowChanged(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action)); | ||
| 1201 | + } | ||
| 1202 | + } | ||
| 1203 | + | ||
| 1204 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1205 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1206 | + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { | ||
| 1207 | + base.OnRowChanging(e); | ||
| 1208 | + if ((this.ResxFilesMasterRowChanging != null)) { | ||
| 1209 | + this.ResxFilesMasterRowChanging(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action)); | ||
| 1210 | + } | ||
| 1211 | + } | ||
| 1212 | + | ||
| 1213 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1214 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1215 | + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { | ||
| 1216 | + base.OnRowDeleted(e); | ||
| 1217 | + if ((this.ResxFilesMasterRowDeleted != null)) { | ||
| 1218 | + this.ResxFilesMasterRowDeleted(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action)); | ||
| 1219 | + } | ||
| 1220 | + } | ||
| 1221 | + | ||
| 1222 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1223 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1224 | + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { | ||
| 1225 | + base.OnRowDeleting(e); | ||
| 1226 | + if ((this.ResxFilesMasterRowDeleting != null)) { | ||
| 1227 | + this.ResxFilesMasterRowDeleting(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action)); | ||
| 1228 | + } | ||
| 1229 | + } | ||
| 1230 | + | ||
| 1231 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1232 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1233 | + public void RemoveResxFilesMasterRow(ResxFilesMasterRow row) { | ||
| 1234 | + this.Rows.Remove(row); | ||
| 1235 | + } | ||
| 1236 | + | ||
| 1237 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1238 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1239 | + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { | ||
| 1240 | + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); | ||
| 1241 | + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); | ||
| 1242 | + ResxData ds = new ResxData(); | ||
| 1243 | + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 1244 | + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; | ||
| 1245 | + any1.MinOccurs = new decimal(0); | ||
| 1246 | + any1.MaxOccurs = decimal.MaxValue; | ||
| 1247 | + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 1248 | + sequence.Items.Add(any1); | ||
| 1249 | + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); | ||
| 1250 | + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; | ||
| 1251 | + any2.MinOccurs = new decimal(1); | ||
| 1252 | + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; | ||
| 1253 | + sequence.Items.Add(any2); | ||
| 1254 | + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 1255 | + attribute1.Name = "namespace"; | ||
| 1256 | + attribute1.FixedValue = ds.Namespace; | ||
| 1257 | + type.Attributes.Add(attribute1); | ||
| 1258 | + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); | ||
| 1259 | + attribute2.Name = "tableTypeName"; | ||
| 1260 | + attribute2.FixedValue = "ResxFilesMasterDataTable"; | ||
| 1261 | + type.Attributes.Add(attribute2); | ||
| 1262 | + type.Particle = sequence; | ||
| 1263 | + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); | ||
| 1264 | + if (xs.Contains(dsSchema.TargetNamespace)) { | ||
| 1265 | + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); | ||
| 1266 | + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); | ||
| 1267 | + try { | ||
| 1268 | + global::System.Xml.Schema.XmlSchema schema = null; | ||
| 1269 | + dsSchema.Write(s1); | ||
| 1270 | + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { | ||
| 1271 | + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); | ||
| 1272 | + s2.SetLength(0); | ||
| 1273 | + schema.Write(s2); | ||
| 1274 | + if ((s1.Length == s2.Length)) { | ||
| 1275 | + s1.Position = 0; | ||
| 1276 | + s2.Position = 0; | ||
| 1277 | + for (; ((s1.Position != s1.Length) | ||
| 1278 | + && (s1.ReadByte() == s2.ReadByte())); ) { | ||
| 1279 | + ; | ||
| 1280 | + } | ||
| 1281 | + if ((s1.Position == s1.Length)) { | ||
| 1282 | + return type; | ||
| 1283 | + } | ||
| 1284 | + } | ||
| 1285 | + } | ||
| 1286 | + } | ||
| 1287 | + finally { | ||
| 1288 | + if ((s1 != null)) { | ||
| 1289 | + s1.Close(); | ||
| 1290 | + } | ||
| 1291 | + if ((s2 != null)) { | ||
| 1292 | + s2.Close(); | ||
| 1293 | + } | ||
| 1294 | + } | ||
| 1295 | + } | ||
| 1296 | + xs.Add(dsSchema); | ||
| 1297 | + return type; | ||
| 1298 | + } | ||
| 1299 | + } | ||
| 1300 | + | ||
| 1301 | + /// <summary> | ||
| 1302 | + ///Represents strongly named DataRow class. | ||
| 1303 | + ///</summary> | ||
| 1304 | + public partial class ResxRow : global::System.Data.DataRow { | ||
| 1305 | + | ||
| 1306 | + private ResxDataTable tableResx; | ||
| 1307 | + | ||
| 1308 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1309 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1310 | + internal ResxRow(global::System.Data.DataRowBuilder rb) : | ||
| 1311 | + base(rb) { | ||
| 1312 | + this.tableResx = ((ResxDataTable)(this.Table)); | ||
| 1313 | + } | ||
| 1314 | + | ||
| 1315 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1316 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1317 | + public string FileSource { | ||
| 1318 | + get { | ||
| 1319 | + return ((string)(this[this.tableResx.FileSourceColumn])); | ||
| 1320 | + } | ||
| 1321 | + set { | ||
| 1322 | + this[this.tableResx.FileSourceColumn] = value; | ||
| 1323 | + } | ||
| 1324 | + } | ||
| 1325 | + | ||
| 1326 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1327 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1328 | + public string FileDestination { | ||
| 1329 | + get { | ||
| 1330 | + try { | ||
| 1331 | + return ((string)(this[this.tableResx.FileDestinationColumn])); | ||
| 1332 | + } | ||
| 1333 | + catch (global::System.InvalidCastException e) { | ||
| 1334 | + throw new global::System.Data.StrongTypingException("The value for column \'FileDestination\' in table \'Resx\' is DBNull.", e); | ||
| 1335 | + } | ||
| 1336 | + } | ||
| 1337 | + set { | ||
| 1338 | + this[this.tableResx.FileDestinationColumn] = value; | ||
| 1339 | + } | ||
| 1340 | + } | ||
| 1341 | + | ||
| 1342 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1343 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1344 | + public string Key { | ||
| 1345 | + get { | ||
| 1346 | + return ((string)(this[this.tableResx.KeyColumn])); | ||
| 1347 | + } | ||
| 1348 | + set { | ||
| 1349 | + this[this.tableResx.KeyColumn] = value; | ||
| 1350 | + } | ||
| 1351 | + } | ||
| 1352 | + | ||
| 1353 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1354 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1355 | + public string Value { | ||
| 1356 | + get { | ||
| 1357 | + try { | ||
| 1358 | + return ((string)(this[this.tableResx.ValueColumn])); | ||
| 1359 | + } | ||
| 1360 | + catch (global::System.InvalidCastException e) { | ||
| 1361 | + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'Resx\' is DBNull.", e); | ||
| 1362 | + } | ||
| 1363 | + } | ||
| 1364 | + set { | ||
| 1365 | + this[this.tableResx.ValueColumn] = value; | ||
| 1366 | + } | ||
| 1367 | + } | ||
| 1368 | + | ||
| 1369 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1370 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1371 | + public int Id { | ||
| 1372 | + get { | ||
| 1373 | + return ((int)(this[this.tableResx.IdColumn])); | ||
| 1374 | + } | ||
| 1375 | + set { | ||
| 1376 | + this[this.tableResx.IdColumn] = value; | ||
| 1377 | + } | ||
| 1378 | + } | ||
| 1379 | + | ||
| 1380 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1381 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1382 | + public bool IsFileDestinationNull() { | ||
| 1383 | + return this.IsNull(this.tableResx.FileDestinationColumn); | ||
| 1384 | + } | ||
| 1385 | + | ||
| 1386 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1387 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1388 | + public void SetFileDestinationNull() { | ||
| 1389 | + this[this.tableResx.FileDestinationColumn] = global::System.Convert.DBNull; | ||
| 1390 | + } | ||
| 1391 | + | ||
| 1392 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1393 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1394 | + public bool IsValueNull() { | ||
| 1395 | + return this.IsNull(this.tableResx.ValueColumn); | ||
| 1396 | + } | ||
| 1397 | + | ||
| 1398 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1399 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1400 | + public void SetValueNull() { | ||
| 1401 | + this[this.tableResx.ValueColumn] = global::System.Convert.DBNull; | ||
| 1402 | + } | ||
| 1403 | + } | ||
| 1404 | + | ||
| 1405 | + /// <summary> | ||
| 1406 | + ///Represents strongly named DataRow class. | ||
| 1407 | + ///</summary> | ||
| 1408 | + public partial class ResxLocalizedRow : global::System.Data.DataRow { | ||
| 1409 | + | ||
| 1410 | + private ResxLocalizedDataTable tableResxLocalized; | ||
| 1411 | + | ||
| 1412 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1413 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1414 | + internal ResxLocalizedRow(global::System.Data.DataRowBuilder rb) : | ||
| 1415 | + base(rb) { | ||
| 1416 | + this.tableResxLocalized = ((ResxLocalizedDataTable)(this.Table)); | ||
| 1417 | + } | ||
| 1418 | + | ||
| 1419 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1420 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1421 | + public string Culture { | ||
| 1422 | + get { | ||
| 1423 | + return ((string)(this[this.tableResxLocalized.CultureColumn])); | ||
| 1424 | + } | ||
| 1425 | + set { | ||
| 1426 | + this[this.tableResxLocalized.CultureColumn] = value; | ||
| 1427 | + } | ||
| 1428 | + } | ||
| 1429 | + | ||
| 1430 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1431 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1432 | + public string Key { | ||
| 1433 | + get { | ||
| 1434 | + return ((string)(this[this.tableResxLocalized.KeyColumn])); | ||
| 1435 | + } | ||
| 1436 | + set { | ||
| 1437 | + this[this.tableResxLocalized.KeyColumn] = value; | ||
| 1438 | + } | ||
| 1439 | + } | ||
| 1440 | + | ||
| 1441 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1442 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1443 | + public string Value { | ||
| 1444 | + get { | ||
| 1445 | + try { | ||
| 1446 | + return ((string)(this[this.tableResxLocalized.ValueColumn])); | ||
| 1447 | + } | ||
| 1448 | + catch (global::System.InvalidCastException e) { | ||
| 1449 | + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'ResxLocalized\' is DBNull.", e); | ||
| 1450 | + } | ||
| 1451 | + } | ||
| 1452 | + set { | ||
| 1453 | + this[this.tableResxLocalized.ValueColumn] = value; | ||
| 1454 | + } | ||
| 1455 | + } | ||
| 1456 | + | ||
| 1457 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1458 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1459 | + public int Id { | ||
| 1460 | + get { | ||
| 1461 | + return ((int)(this[this.tableResxLocalized.IdColumn])); | ||
| 1462 | + } | ||
| 1463 | + set { | ||
| 1464 | + this[this.tableResxLocalized.IdColumn] = value; | ||
| 1465 | + } | ||
| 1466 | + } | ||
| 1467 | + | ||
| 1468 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1469 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1470 | + public int ParentId { | ||
| 1471 | + get { | ||
| 1472 | + try { | ||
| 1473 | + return ((int)(this[this.tableResxLocalized.ParentIdColumn])); | ||
| 1474 | + } | ||
| 1475 | + catch (global::System.InvalidCastException e) { | ||
| 1476 | + throw new global::System.Data.StrongTypingException("The value for column \'ParentId\' in table \'ResxLocalized\' is DBNull.", e); | ||
| 1477 | + } | ||
| 1478 | + } | ||
| 1479 | + set { | ||
| 1480 | + this[this.tableResxLocalized.ParentIdColumn] = value; | ||
| 1481 | + } | ||
| 1482 | + } | ||
| 1483 | + | ||
| 1484 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1485 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1486 | + public string ParentFileFullName { | ||
| 1487 | + get { | ||
| 1488 | + try { | ||
| 1489 | + return ((string)(this[this.tableResxLocalized.ParentFileFullNameColumn])); | ||
| 1490 | + } | ||
| 1491 | + catch (global::System.InvalidCastException e) { | ||
| 1492 | + throw new global::System.Data.StrongTypingException("The value for column \'ParentFileFullName\' in table \'ResxLocalized\' is DBNull.", e); | ||
| 1493 | + } | ||
| 1494 | + } | ||
| 1495 | + set { | ||
| 1496 | + this[this.tableResxLocalized.ParentFileFullNameColumn] = value; | ||
| 1497 | + } | ||
| 1498 | + } | ||
| 1499 | + | ||
| 1500 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1501 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1502 | + public bool Read { | ||
| 1503 | + get { | ||
| 1504 | + return ((bool)(this[this.tableResxLocalized.ReadColumn])); | ||
| 1505 | + } | ||
| 1506 | + set { | ||
| 1507 | + this[this.tableResxLocalized.ReadColumn] = value; | ||
| 1508 | + } | ||
| 1509 | + } | ||
| 1510 | + | ||
| 1511 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1512 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1513 | + public bool IsValueNull() { | ||
| 1514 | + return this.IsNull(this.tableResxLocalized.ValueColumn); | ||
| 1515 | + } | ||
| 1516 | + | ||
| 1517 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1518 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1519 | + public void SetValueNull() { | ||
| 1520 | + this[this.tableResxLocalized.ValueColumn] = global::System.Convert.DBNull; | ||
| 1521 | + } | ||
| 1522 | + | ||
| 1523 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1524 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1525 | + public bool IsParentIdNull() { | ||
| 1526 | + return this.IsNull(this.tableResxLocalized.ParentIdColumn); | ||
| 1527 | + } | ||
| 1528 | + | ||
| 1529 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1530 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1531 | + public void SetParentIdNull() { | ||
| 1532 | + this[this.tableResxLocalized.ParentIdColumn] = global::System.Convert.DBNull; | ||
| 1533 | + } | ||
| 1534 | + | ||
| 1535 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1536 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1537 | + public bool IsParentFileFullNameNull() { | ||
| 1538 | + return this.IsNull(this.tableResxLocalized.ParentFileFullNameColumn); | ||
| 1539 | + } | ||
| 1540 | + | ||
| 1541 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1542 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1543 | + public void SetParentFileFullNameNull() { | ||
| 1544 | + this[this.tableResxLocalized.ParentFileFullNameColumn] = global::System.Convert.DBNull; | ||
| 1545 | + } | ||
| 1546 | + } | ||
| 1547 | + | ||
| 1548 | + /// <summary> | ||
| 1549 | + ///Represents strongly named DataRow class. | ||
| 1550 | + ///</summary> | ||
| 1551 | + public partial class ResxFilesMasterRow : global::System.Data.DataRow { | ||
| 1552 | + | ||
| 1553 | + private ResxFilesMasterDataTable tableResxFilesMaster; | ||
| 1554 | + | ||
| 1555 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1556 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1557 | + internal ResxFilesMasterRow(global::System.Data.DataRowBuilder rb) : | ||
| 1558 | + base(rb) { | ||
| 1559 | + this.tableResxFilesMaster = ((ResxFilesMasterDataTable)(this.Table)); | ||
| 1560 | + } | ||
| 1561 | + | ||
| 1562 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1563 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1564 | + public int Id { | ||
| 1565 | + get { | ||
| 1566 | + return ((int)(this[this.tableResxFilesMaster.IdColumn])); | ||
| 1567 | + } | ||
| 1568 | + set { | ||
| 1569 | + this[this.tableResxFilesMaster.IdColumn] = value; | ||
| 1570 | + } | ||
| 1571 | + } | ||
| 1572 | + | ||
| 1573 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1574 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1575 | + public string FileSource { | ||
| 1576 | + get { | ||
| 1577 | + try { | ||
| 1578 | + return ((string)(this[this.tableResxFilesMaster.FileSourceColumn])); | ||
| 1579 | + } | ||
| 1580 | + catch (global::System.InvalidCastException e) { | ||
| 1581 | + throw new global::System.Data.StrongTypingException("The value for column \'FileSource\' in table \'ResxFilesMaster\' is DBNull.", e); | ||
| 1582 | + } | ||
| 1583 | + } | ||
| 1584 | + set { | ||
| 1585 | + this[this.tableResxFilesMaster.FileSourceColumn] = value; | ||
| 1586 | + } | ||
| 1587 | + } | ||
| 1588 | + | ||
| 1589 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1590 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1591 | + public bool IsFileSourceNull() { | ||
| 1592 | + return this.IsNull(this.tableResxFilesMaster.FileSourceColumn); | ||
| 1593 | + } | ||
| 1594 | + | ||
| 1595 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1596 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1597 | + public void SetFileSourceNull() { | ||
| 1598 | + this[this.tableResxFilesMaster.FileSourceColumn] = global::System.Convert.DBNull; | ||
| 1599 | + } | ||
| 1600 | + } | ||
| 1601 | + | ||
| 1602 | + /// <summary> | ||
| 1603 | + ///Row event argument class | ||
| 1604 | + ///</summary> | ||
| 1605 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1606 | + public class ResxRowChangeEvent : global::System.EventArgs { | ||
| 1607 | + | ||
| 1608 | + private ResxRow eventRow; | ||
| 1609 | + | ||
| 1610 | + private global::System.Data.DataRowAction eventAction; | ||
| 1611 | + | ||
| 1612 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1613 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1614 | + public ResxRowChangeEvent(ResxRow row, global::System.Data.DataRowAction action) { | ||
| 1615 | + this.eventRow = row; | ||
| 1616 | + this.eventAction = action; | ||
| 1617 | + } | ||
| 1618 | + | ||
| 1619 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1620 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1621 | + public ResxRow Row { | ||
| 1622 | + get { | ||
| 1623 | + return this.eventRow; | ||
| 1624 | + } | ||
| 1625 | + } | ||
| 1626 | + | ||
| 1627 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1628 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1629 | + public global::System.Data.DataRowAction Action { | ||
| 1630 | + get { | ||
| 1631 | + return this.eventAction; | ||
| 1632 | + } | ||
| 1633 | + } | ||
| 1634 | + } | ||
| 1635 | + | ||
| 1636 | + /// <summary> | ||
| 1637 | + ///Row event argument class | ||
| 1638 | + ///</summary> | ||
| 1639 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1640 | + public class ResxLocalizedRowChangeEvent : global::System.EventArgs { | ||
| 1641 | + | ||
| 1642 | + private ResxLocalizedRow eventRow; | ||
| 1643 | + | ||
| 1644 | + private global::System.Data.DataRowAction eventAction; | ||
| 1645 | + | ||
| 1646 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1647 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1648 | + public ResxLocalizedRowChangeEvent(ResxLocalizedRow row, global::System.Data.DataRowAction action) { | ||
| 1649 | + this.eventRow = row; | ||
| 1650 | + this.eventAction = action; | ||
| 1651 | + } | ||
| 1652 | + | ||
| 1653 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1654 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1655 | + public ResxLocalizedRow Row { | ||
| 1656 | + get { | ||
| 1657 | + return this.eventRow; | ||
| 1658 | + } | ||
| 1659 | + } | ||
| 1660 | + | ||
| 1661 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1662 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1663 | + public global::System.Data.DataRowAction Action { | ||
| 1664 | + get { | ||
| 1665 | + return this.eventAction; | ||
| 1666 | + } | ||
| 1667 | + } | ||
| 1668 | + } | ||
| 1669 | + | ||
| 1670 | + /// <summary> | ||
| 1671 | + ///Row event argument class | ||
| 1672 | + ///</summary> | ||
| 1673 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1674 | + public class ResxFilesMasterRowChangeEvent : global::System.EventArgs { | ||
| 1675 | + | ||
| 1676 | + private ResxFilesMasterRow eventRow; | ||
| 1677 | + | ||
| 1678 | + private global::System.Data.DataRowAction eventAction; | ||
| 1679 | + | ||
| 1680 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1681 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1682 | + public ResxFilesMasterRowChangeEvent(ResxFilesMasterRow row, global::System.Data.DataRowAction action) { | ||
| 1683 | + this.eventRow = row; | ||
| 1684 | + this.eventAction = action; | ||
| 1685 | + } | ||
| 1686 | + | ||
| 1687 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1688 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1689 | + public ResxFilesMasterRow Row { | ||
| 1690 | + get { | ||
| 1691 | + return this.eventRow; | ||
| 1692 | + } | ||
| 1693 | + } | ||
| 1694 | + | ||
| 1695 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 1696 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] | ||
| 1697 | + public global::System.Data.DataRowAction Action { | ||
| 1698 | + get { | ||
| 1699 | + return this.eventAction; | ||
| 1700 | + } | ||
| 1701 | + } | ||
| 1702 | + } | ||
| 1703 | + } | ||
| 1704 | +} | ||
| 1705 | + | ||
| 1706 | +#pragma warning restore 1591 |
Resx2Xls/ResxData.cs
0 → 100644
Resx2Xls/ResxData.xsc
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<!--<autogenerated> | ||
| 3 | + This code was generated by a tool. | ||
| 4 | + Changes to this file may cause incorrect behavior and will be lost if | ||
| 5 | + the code is regenerated. | ||
| 6 | +</autogenerated>--> | ||
| 7 | +<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> | ||
| 8 | + <TableUISettings /> | ||
| 9 | +</DataSetUISetting> |
Resx2Xls/ResxData.xsd
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<xs:schema id="ResxData" targetNamespace="http://tempuri.org/ResxData.xsd" xmlns:mstns="http://tempuri.org/ResxData.xsd" xmlns="http://tempuri.org/ResxData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> | ||
| 3 | + <xs:annotation> | ||
| 4 | + <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> | ||
| 5 | + <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> | ||
| 6 | + <Connections /> | ||
| 7 | + <Tables /> | ||
| 8 | + <Sources /> | ||
| 9 | + </DataSource> | ||
| 10 | + </xs:appinfo> | ||
| 11 | + </xs:annotation> | ||
| 12 | + <xs:element name="ResxData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="ResxData" msprop:Generator_UserDSName="ResxData"> | ||
| 13 | + <xs:complexType> | ||
| 14 | + <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| 15 | + <xs:element name="Resx" msprop:Generator_UserTableName="Resx" msprop:Generator_RowEvArgName="ResxRowChangeEvent" msprop:Generator_TableVarName="tableResx" msprop:Generator_TablePropName="Resx" msprop:Generator_RowDeletingName="ResxRowDeleting" msprop:Generator_RowChangingName="ResxRowChanging" msprop:Generator_RowDeletedName="ResxRowDeleted" msprop:Generator_RowEvHandlerName="ResxRowChangeEventHandler" msprop:Generator_TableClassName="ResxDataTable" msprop:Generator_RowChangedName="ResxRowChanged" msprop:Generator_RowClassName="ResxRow"> | ||
| 16 | + <xs:complexType> | ||
| 17 | + <xs:sequence> | ||
| 18 | + <xs:element name="FileSource" msprop:Generator_ColumnVarNameInTable="columnFileSource" msprop:Generator_ColumnPropNameInRow="FileSource" msprop:Generator_ColumnPropNameInTable="FileSourceColumn" msprop:Generator_UserColumnName="FileSource" type="xs:string" /> | ||
| 19 | + <xs:element name="FileDestination" msprop:Generator_ColumnVarNameInTable="columnFileDestination" msprop:Generator_ColumnPropNameInRow="FileDestination" msprop:Generator_ColumnPropNameInTable="FileDestinationColumn" msprop:Generator_UserColumnName="FileDestination" type="xs:string" minOccurs="0" /> | ||
| 20 | + <xs:element name="Key" msprop:Generator_ColumnVarNameInTable="columnKey" msprop:Generator_ColumnPropNameInRow="Key" msprop:Generator_ColumnPropNameInTable="KeyColumn" msprop:Generator_UserColumnName="Key" type="xs:string" /> | ||
| 21 | + <xs:element name="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnPropNameInTable="ValueColumn" msprop:Generator_UserColumnName="Value" type="xs:string" minOccurs="0" /> | ||
| 22 | + <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" /> | ||
| 23 | + </xs:sequence> | ||
| 24 | + </xs:complexType> | ||
| 25 | + </xs:element> | ||
| 26 | + <xs:element name="ResxLocalized" msprop:Generator_UserTableName="ResxLocalized" msprop:Generator_RowEvArgName="ResxLocalizedRowChangeEvent" msprop:Generator_TableVarName="tableResxLocalized" msprop:Generator_TablePropName="ResxLocalized" msprop:Generator_RowDeletingName="ResxLocalizedRowDeleting" msprop:Generator_RowChangingName="ResxLocalizedRowChanging" msprop:Generator_RowDeletedName="ResxLocalizedRowDeleted" msprop:Generator_RowEvHandlerName="ResxLocalizedRowChangeEventHandler" msprop:Generator_TableClassName="ResxLocalizedDataTable" msprop:Generator_RowChangedName="ResxLocalizedRowChanged" msprop:Generator_RowClassName="ResxLocalizedRow"> | ||
| 27 | + <xs:complexType> | ||
| 28 | + <xs:sequence> | ||
| 29 | + <xs:element name="Culture" msprop:Generator_ColumnVarNameInTable="columnCulture" msprop:Generator_ColumnPropNameInRow="Culture" msprop:Generator_ColumnPropNameInTable="CultureColumn" msprop:Generator_UserColumnName="Culture" type="xs:string" /> | ||
| 30 | + <xs:element name="Key" msprop:Generator_ColumnVarNameInTable="columnKey" msprop:Generator_ColumnPropNameInRow="Key" msprop:Generator_ColumnPropNameInTable="KeyColumn" msprop:Generator_UserColumnName="Key" type="xs:string" /> | ||
| 31 | + <xs:element name="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnPropNameInTable="ValueColumn" msprop:Generator_UserColumnName="Value" type="xs:string" minOccurs="0" /> | ||
| 32 | + <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" /> | ||
| 33 | + <xs:element name="ParentId" msprop:Generator_ColumnVarNameInTable="columnParentId" msprop:Generator_ColumnPropNameInRow="ParentId" msprop:Generator_ColumnPropNameInTable="ParentIdColumn" msprop:Generator_UserColumnName="ParentId" type="xs:int" minOccurs="0" /> | ||
| 34 | + <xs:element name="ParentFileFullName" msprop:Generator_ColumnVarNameInTable="columnParentFileFullName" msprop:Generator_ColumnPropNameInRow="ParentFileFullName" msprop:Generator_ColumnPropNameInTable="ParentFileFullNameColumn" msprop:Generator_UserColumnName="ParentFileFullName" type="xs:string" minOccurs="0" /> | ||
| 35 | + <xs:element name="Read" msprop:Generator_ColumnVarNameInTable="columnRead" msprop:Generator_ColumnPropNameInRow="Read" msprop:Generator_ColumnPropNameInTable="ReadColumn" msprop:Generator_UserColumnName="Read" type="xs:boolean" default="false" /> | ||
| 36 | + </xs:sequence> | ||
| 37 | + </xs:complexType> | ||
| 38 | + </xs:element> | ||
| 39 | + <xs:element name="ResxFilesMaster" msprop:Generator_TableClassName="ResxFilesMasterDataTable" msprop:Generator_TableVarName="tableResxFilesMaster" msprop:Generator_TablePropName="ResxFilesMaster" msprop:Generator_RowDeletingName="ResxFilesMasterRowDeleting" msprop:Generator_RowChangingName="ResxFilesMasterRowChanging" msprop:Generator_RowEvHandlerName="ResxFilesMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="ResxFilesMasterRowDeleted" msprop:Generator_UserTableName="ResxFilesMaster" msprop:Generator_RowChangedName="ResxFilesMasterRowChanged" msprop:Generator_RowEvArgName="ResxFilesMasterRowChangeEvent" msprop:Generator_RowClassName="ResxFilesMasterRow"> | ||
| 40 | + <xs:complexType> | ||
| 41 | + <xs:sequence> | ||
| 42 | + <xs:element name="Id" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" /> | ||
| 43 | + <xs:element name="FileSource" msprop:Generator_ColumnVarNameInTable="columnFileSource" msprop:Generator_ColumnPropNameInRow="FileSource" msprop:Generator_ColumnPropNameInTable="FileSourceColumn" msprop:Generator_UserColumnName="FileSource" type="xs:string" minOccurs="0" /> | ||
| 44 | + </xs:sequence> | ||
| 45 | + </xs:complexType> | ||
| 46 | + </xs:element> | ||
| 47 | + </xs:choice> | ||
| 48 | + </xs:complexType> | ||
| 49 | + <xs:unique name="Constraint1" msdata:PrimaryKey="true"> | ||
| 50 | + <xs:selector xpath=".//mstns:Resx" /> | ||
| 51 | + <xs:field xpath="mstns:Id" /> | ||
| 52 | + </xs:unique> | ||
| 53 | + <xs:unique name="Constraint2"> | ||
| 54 | + <xs:selector xpath=".//mstns:Resx" /> | ||
| 55 | + <xs:field xpath="mstns:Key" /> | ||
| 56 | + <xs:field xpath="mstns:FileDestination" /> | ||
| 57 | + </xs:unique> | ||
| 58 | + <xs:unique name="Constraint3"> | ||
| 59 | + <xs:selector xpath=".//mstns:Resx" /> | ||
| 60 | + <xs:field xpath="mstns:Key" /> | ||
| 61 | + <xs:field xpath="mstns:FileSource" /> | ||
| 62 | + </xs:unique> | ||
| 63 | + <xs:unique name="ResxLocalized_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> | ||
| 64 | + <xs:selector xpath=".//mstns:ResxLocalized" /> | ||
| 65 | + <xs:field xpath="mstns:Id" /> | ||
| 66 | + </xs:unique> | ||
| 67 | + <xs:unique name="ResxFilesMaster_Constraint1" msdata:ConstraintName="Constraint1"> | ||
| 68 | + <xs:selector xpath=".//mstns:ResxFilesMaster" /> | ||
| 69 | + <xs:field xpath="mstns:Id" /> | ||
| 70 | + </xs:unique> | ||
| 71 | + </xs:element> | ||
| 72 | +</xs:schema> |
Resx2Xls/ResxData.xss
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<!--<autogenerated> | ||
| 3 | + This code was generated by a tool to store the dataset designer's layout information. | ||
| 4 | + Changes to this file may cause incorrect behavior and will be lost if | ||
| 5 | + the code is regenerated. | ||
| 6 | +</autogenerated>--> | ||
| 7 | +<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> | ||
| 8 | + <Shapes> | ||
| 9 | + <Shape ID="DesignTable:Resx" ZOrder="3" X="244" Y="92" Height="144" Width="162" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="24" SplitterPosition="140" /> | ||
| 10 | + <Shape ID="DesignTable:ResxLocalized" ZOrder="2" X="474" Y="95" Height="201" Width="163" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" /> | ||
| 11 | + <Shape ID="DesignTable:ResxFilesMaster" ZOrder="1" X="50" Y="93" Height="87" Width="167" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" /> | ||
| 12 | + </Shapes> | ||
| 13 | + <Connectors /> | ||
| 14 | +</DiagramLayout> |
Resx2Xls/app.config
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8" ?> | ||
| 2 | +<configuration> | ||
| 3 | + <configSections> | ||
| 4 | + <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
| 5 | + <section name="Resx2Xls.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> | ||
| 6 | + </sectionGroup> | ||
| 7 | + </configSections> | ||
| 8 | + <userSettings> | ||
| 9 | + <Resx2Xls.Properties.Settings> | ||
| 10 | + <setting name="FolderPath" serializeAs="String"> | ||
| 11 | + <value /> | ||
| 12 | + </setting> | ||
| 13 | + <setting name="ExcludeList" serializeAs="String"> | ||
| 14 | + <value>.Name;.Parent;.ZOrder;.Type</value> | ||
| 15 | + </setting> | ||
| 16 | + <setting name="CultureList" serializeAs="String"> | ||
| 17 | + <value>it-IT;en-US;fr-FR;de-DE;es-ES</value> | ||
| 18 | + </setting> | ||
| 19 | + <setting name="FolderNamespaceNaming" serializeAs="String"> | ||
| 20 | + <value>True</value> | ||
| 21 | + </setting> | ||
| 22 | + </Resx2Xls.Properties.Settings> | ||
| 23 | + </userSettings> | ||
| 24 | +</configuration> |
-
Please register or login to post a comment