Authored by Anderson Dsouza

Initial code commit


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Resx2Xls", "Resx2Xls\Resx2Xls.csproj", "{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
... ...
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
namespace Resx2Xls
{
public class CultureInfoComparer : IComparer
{
// Methods
public int Compare(object x, object y)
{
if (((x == null) && (y == null)) || x.Equals(y))
{
return 0;
}
if (x.Equals(CultureInfo.InvariantCulture) || (y == null))
{
return -1;
}
if (y.Equals(CultureInfo.InvariantCulture) || (x == null))
{
return 1;
}
if (!(x is CultureInfo))
{
throw new ArgumentException("Can only compare CultureInfo objects.", "x");
}
string displayName = ((CultureInfo)x).DisplayName;
if (!(y is CultureInfo))
{
throw new ArgumentException("Can only compare CultureInfo objects.", "y");
}
string strB = ((CultureInfo)y).DisplayName;
return displayName.CompareTo(strB);
}
}
}
... ...
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Resx2Xls
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Resx2XlsForm());
}
}
}
\ No newline at end of file
... ...
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Resx2Xls")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Resx2Xls")]
[assembly: AssemblyCopyright("Copyright © 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("75dcb539-33f2-4e3d-bf2b-67bfde92b00a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
... ...
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18408
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Resx2Xls.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resx2Xls.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap finishbar {
get {
object obj = ResourceManager.GetObject("finishbar", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap icon {
get {
object obj = ResourceManager.GetObject("icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap leftbar {
get {
object obj = ResourceManager.GetObject("leftbar", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap topbar {
get {
object obj = ResourceManager.GetObject("topbar", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
... ...
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="topbar" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\topbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="leftbar" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\leftbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="finishbar" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\finishbar.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
\ No newline at end of file
... ...
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18408
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Resx2Xls.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string FolderPath {
get {
return ((string)(this["FolderPath"]));
}
set {
this["FolderPath"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute(".Name;.Parent;.ZOrder;.Type")]
public string ExcludeList {
get {
return ((string)(this["ExcludeList"]));
}
set {
this["ExcludeList"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("it-IT;en-US;fr-FR;de-DE;es-ES")]
public string CultureList {
get {
return ((string)(this["CultureList"]));
}
set {
this["CultureList"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool FolderNamespaceNaming {
get {
return ((bool)(this["FolderNamespaceNaming"]));
}
set {
this["FolderNamespaceNaming"] = value;
}
}
}
}
... ...
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Resx2Xls.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="FolderPath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ExcludeList" Type="System.String" Scope="User">
<Value Profile="(Default)">.Name;.Parent;.ZOrder;.Type</Value>
</Setting>
<Setting Name="CultureList" Type="System.String" Scope="User">
<Value Profile="(Default)">it-IT;en-US;fr-FR;de-DE;es-ES</Value>
</Setting>
<Setting Name="FolderNamespaceNaming" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9A301D6B-D2B5-4C16-8F46-BF7892767FDB}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Resx2Xls</RootNamespace>
<AssemblyName>Resx2Xls</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>
</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="WizardBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\WizardBase.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CultureInfoComparer.cs" />
<Compile Include="Resx2XlsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resx2XlsForm.Designer.cs">
<DependentUpon>Resx2XlsForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Resx2XlsForm.resx">
<SubType>Designer</SubType>
<DependentUpon>Resx2XlsForm.cs</DependentUpon>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="ResxData.xsc">
<DependentUpon>ResxData.xsd</DependentUpon>
</None>
<None Include="ResxData.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>ResxData.Designer.cs</LastGenOutput>
</None>
<None Include="ResxData.xss">
<DependentUpon>ResxData.xsd</DependentUpon>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="ResxData.cs">
<DependentUpon>ResxData.xsd</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="ResxData.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ResxData.xsd</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<COMReference Include="Excel">
<Guid>{00020813-0000-0000-C000-000000000046}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>5</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<Private>True</Private>
</COMReference>
<COMReference Include="Microsoft.Office.Core">
<Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>3</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<Private>True</Private>
</COMReference>
<COMReference Include="VBIDE">
<Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
<VersionMajor>5</VersionMajor>
<VersionMinor>3</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\leftbar.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\topbar.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\finishbar.png" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
... ...
namespace Resx2Xls
{
partial class Resx2XlsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
this.openFileDialogXls = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialogXls = new System.Windows.Forms.SaveFileDialog();
this.wizardControl1 = new WizardBase.WizardControl();
this.startStep1 = new WizardBase.StartStep();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.radioButtonUpdateXls = new System.Windows.Forms.RadioButton();
this.radioButtonBuildXls = new System.Windows.Forms.RadioButton();
this.radioButtonCreateXls = new System.Windows.Forms.RadioButton();
this.intermediateStepProject = new WizardBase.IntermediateStep();
this.labelFolder = new System.Windows.Forms.Label();
this.textBoxFolder = new System.Windows.Forms.TextBox();
this.checkBoxSubFolders = new System.Windows.Forms.CheckBox();
this.buttonBrowse = new System.Windows.Forms.Button();
this.intermediateStepCultures = new WizardBase.IntermediateStep();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.buttonAdd = new System.Windows.Forms.Button();
this.listBoxCultures = new System.Windows.Forms.ListBox();
this.listBoxSelected = new System.Windows.Forms.ListBox();
this.intermediateStepOptions = new WizardBase.IntermediateStep();
this.checkBoxFolderNaming = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.textBoxExclude = new System.Windows.Forms.TextBox();
this.intermediateStepXlsSelect = new WizardBase.IntermediateStep();
this.labelXlsFile = new System.Windows.Forms.Label();
this.textBoxXls = new System.Windows.Forms.TextBox();
this.buttonBrowseXls = new System.Windows.Forms.Button();
this.finishStep1 = new WizardBase.FinishStep();
this.label6 = new System.Windows.Forms.Label();
this.textBoxSummary = new System.Windows.Forms.TextBox();
this.startStep1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.intermediateStepProject.SuspendLayout();
this.intermediateStepCultures.SuspendLayout();
this.intermediateStepOptions.SuspendLayout();
this.intermediateStepXlsSelect.SuspendLayout();
this.finishStep1.SuspendLayout();
this.SuspendLayout();
//
// openFileDialogXls
//
this.openFileDialogXls.DefaultExt = "xlsx";
this.openFileDialogXls.Filter = "*.xlsx|*.xlsx";
//
// saveFileDialogXls
//
this.saveFileDialogXls.DefaultExt = "xlsx";
this.saveFileDialogXls.Filter = "*.xlsx|*.xlsx";
//
// wizardControl1
//
this.wizardControl1.BackButtonEnabled = true;
this.wizardControl1.BackButtonVisible = true;
this.wizardControl1.CancelButtonEnabled = true;
this.wizardControl1.CancelButtonVisible = true;
this.wizardControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.wizardControl1.HelpButtonEnabled = true;
this.wizardControl1.HelpButtonVisible = false;
this.wizardControl1.Location = new System.Drawing.Point(0, 0);
this.wizardControl1.Name = "wizardControl1";
this.wizardControl1.NextButtonEnabled = true;
this.wizardControl1.NextButtonVisible = true;
this.wizardControl1.Size = new System.Drawing.Size(704, 466);
this.wizardControl1.WizardSteps.Add(this.startStep1);
this.wizardControl1.WizardSteps.Add(this.intermediateStepProject);
this.wizardControl1.WizardSteps.Add(this.intermediateStepCultures);
this.wizardControl1.WizardSteps.Add(this.intermediateStepOptions);
this.wizardControl1.WizardSteps.Add(this.intermediateStepXlsSelect);
this.wizardControl1.WizardSteps.Add(this.finishStep1);
this.wizardControl1.FinishButtonClick += new System.EventHandler(this.wizardControl1_FinishButtonClick);
this.wizardControl1.CurrentStepIndexChanged += new System.EventHandler(this.wizardControl1_CurrentStepIndexChanged);
this.wizardControl1.NextButtonClick += new WizardBase.WizardNextButtonClickEventHandler(this.wizardControl1_NextButtonClick);
this.wizardControl1.BackButtonClick += new WizardBase.WizardClickEventHandler(this.wizardControl1_BackButtonClick);
//
// startStep1
//
this.startStep1.BindingImage = global::Resx2Xls.Properties.Resources.leftbar;
this.startStep1.Controls.Add(this.groupBox1);
this.startStep1.Icon = global::Resx2Xls.Properties.Resources.icon;
this.startStep1.Name = "startStep1";
this.startStep1.Subtitle = "This wizard helps you to localize your .Net Project";
this.startStep1.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.startStep1.Title = "Welcome to the Resx to Xls Wizard.";
this.startStep1.TitleFont = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold);
this.startStep1.Click += new System.EventHandler(this.startStep1_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.radioButtonUpdateXls);
this.groupBox1.Controls.Add(this.radioButtonBuildXls);
this.groupBox1.Controls.Add(this.radioButtonCreateXls);
this.groupBox1.Location = new System.Drawing.Point(198, 93);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(373, 100);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Options";
//
// radioButtonUpdateXls
//
this.radioButtonUpdateXls.AutoSize = true;
this.radioButtonUpdateXls.Location = new System.Drawing.Point(45, 75);
this.radioButtonUpdateXls.Name = "radioButtonUpdateXls";
this.radioButtonUpdateXls.Size = new System.Drawing.Size(310, 17);
this.radioButtonUpdateXls.TabIndex = 2;
this.radioButtonUpdateXls.Text = "Update your Excel document with your .Net Project changes";
this.radioButtonUpdateXls.UseVisualStyleBackColor = true;
//
// radioButtonBuildXls
//
this.radioButtonBuildXls.AutoSize = true;
this.radioButtonBuildXls.Location = new System.Drawing.Point(45, 52);
this.radioButtonBuildXls.Name = "radioButtonBuildXls";
this.radioButtonBuildXls.Size = new System.Drawing.Size(258, 17);
this.radioButtonBuildXls.TabIndex = 1;
this.radioButtonBuildXls.Text = "Generate resx files from localized Excel document";
this.radioButtonBuildXls.UseVisualStyleBackColor = true;
//
// radioButtonCreateXls
//
this.radioButtonCreateXls.AutoSize = true;
this.radioButtonCreateXls.Checked = true;
this.radioButtonCreateXls.Location = new System.Drawing.Point(45, 29);
this.radioButtonCreateXls.Name = "radioButtonCreateXls";
this.radioButtonCreateXls.Size = new System.Drawing.Size(267, 17);
this.radioButtonCreateXls.TabIndex = 0;
this.radioButtonCreateXls.TabStop = true;
this.radioButtonCreateXls.Text = "Create a new Excel document ready to be localized";
this.radioButtonCreateXls.UseVisualStyleBackColor = true;
//
// intermediateStepProject
//
this.intermediateStepProject.BindingImage = global::Resx2Xls.Properties.Resources.topbar;
this.intermediateStepProject.Controls.Add(this.labelFolder);
this.intermediateStepProject.Controls.Add(this.textBoxFolder);
this.intermediateStepProject.Controls.Add(this.checkBoxSubFolders);
this.intermediateStepProject.Controls.Add(this.buttonBrowse);
this.intermediateStepProject.ForeColor = System.Drawing.SystemColors.HighlightText;
this.intermediateStepProject.Name = "intermediateStepProject";
this.intermediateStepProject.Subtitle = "Browse the root folder of your .Net Project..";
this.intermediateStepProject.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.intermediateStepProject.Title = "Select your .Net Project.";
this.intermediateStepProject.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
//
// labelFolder
//
this.labelFolder.AutoSize = true;
this.labelFolder.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelFolder.Location = new System.Drawing.Point(20, 120);
this.labelFolder.Name = "labelFolder";
this.labelFolder.Size = new System.Drawing.Size(217, 13);
this.labelFolder.TabIndex = 10;
this.labelFolder.Text = "Project Root (that contains neutral resx files):";
//
// textBoxFolder
//
this.textBoxFolder.Location = new System.Drawing.Point(23, 136);
this.textBoxFolder.Name = "textBoxFolder";
this.textBoxFolder.Size = new System.Drawing.Size(438, 20);
this.textBoxFolder.TabIndex = 9;
this.textBoxFolder.TextChanged += new System.EventHandler(this.textBoxFolder_TextChanged);
//
// checkBoxSubFolders
//
this.checkBoxSubFolders.AutoSize = true;
this.checkBoxSubFolders.Checked = true;
this.checkBoxSubFolders.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxSubFolders.ForeColor = System.Drawing.SystemColors.ControlText;
this.checkBoxSubFolders.Location = new System.Drawing.Point(23, 162);
this.checkBoxSubFolders.Name = "checkBoxSubFolders";
this.checkBoxSubFolders.Size = new System.Drawing.Size(110, 17);
this.checkBoxSubFolders.TabIndex = 12;
this.checkBoxSubFolders.Text = "Scan Sub Folders";
this.checkBoxSubFolders.UseVisualStyleBackColor = true;
//
// buttonBrowse
//
this.buttonBrowse.Location = new System.Drawing.Point(467, 136);
this.buttonBrowse.Name = "buttonBrowse";
this.buttonBrowse.Size = new System.Drawing.Size(75, 23);
this.buttonBrowse.TabIndex = 11;
this.buttonBrowse.Text = "Browse";
this.buttonBrowse.UseVisualStyleBackColor = true;
this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click);
//
// intermediateStepCultures
//
this.intermediateStepCultures.BindingImage = global::Resx2Xls.Properties.Resources.topbar;
this.intermediateStepCultures.Controls.Add(this.label5);
this.intermediateStepCultures.Controls.Add(this.label4);
this.intermediateStepCultures.Controls.Add(this.label3);
this.intermediateStepCultures.Controls.Add(this.label1);
this.intermediateStepCultures.Controls.Add(this.buttonAdd);
this.intermediateStepCultures.Controls.Add(this.listBoxCultures);
this.intermediateStepCultures.Controls.Add(this.listBoxSelected);
this.intermediateStepCultures.ForeColor = System.Drawing.SystemColors.HighlightText;
this.intermediateStepCultures.Name = "intermediateStepCultures";
this.intermediateStepCultures.Subtitle = "This step creates a new xls file that contains all your resource keys.";
this.intermediateStepCultures.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.intermediateStepCultures.Title = "Select the Cultures that you want include in the project.";
this.intermediateStepCultures.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
//
// label5
//
this.label5.AutoSize = true;
this.label5.ForeColor = System.Drawing.SystemColors.ControlText;
this.label5.Location = new System.Drawing.Point(278, 224);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(160, 13);
this.label5.TabIndex = 10;
this.label5.Text = "Double click to remove a culture";
//
// label4
//
this.label4.AutoSize = true;
this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
this.label4.Location = new System.Drawing.Point(64, 224);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(143, 13);
this.label4.TabIndex = 9;
this.label4.Text = "Double click to add a culture";
//
// label3
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
this.label3.Location = new System.Drawing.Point(277, 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(93, 13);
this.label3.TabIndex = 8;
this.label3.Text = "Selected Cultures:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
this.label1.Location = new System.Drawing.Point(64, 84);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(94, 13);
this.label1.TabIndex = 5;
this.label1.Text = "Available Cultures:";
//
// buttonAdd
//
this.buttonAdd.ForeColor = System.Drawing.SystemColors.ControlText;
this.buttonAdd.Location = new System.Drawing.Point(222, 100);
this.buttonAdd.Name = "buttonAdd";
this.buttonAdd.Size = new System.Drawing.Size(52, 23);
this.buttonAdd.TabIndex = 7;
this.buttonAdd.Text = ">>";
this.buttonAdd.UseVisualStyleBackColor = true;
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
//
// listBoxCultures
//
this.listBoxCultures.FormattingEnabled = true;
this.listBoxCultures.Location = new System.Drawing.Point(67, 100);
this.listBoxCultures.Name = "listBoxCultures";
this.listBoxCultures.Size = new System.Drawing.Size(149, 121);
this.listBoxCultures.TabIndex = 4;
this.listBoxCultures.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBoxCultures_MouseDoubleClick);
//
// listBoxSelected
//
this.listBoxSelected.FormattingEnabled = true;
this.listBoxSelected.Location = new System.Drawing.Point(280, 100);
this.listBoxSelected.Name = "listBoxSelected";
this.listBoxSelected.Size = new System.Drawing.Size(149, 121);
this.listBoxSelected.TabIndex = 6;
this.listBoxSelected.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBoxSelected_MouseDoubleClick);
//
// intermediateStepOptions
//
this.intermediateStepOptions.BindingImage = global::Resx2Xls.Properties.Resources.topbar;
this.intermediateStepOptions.Controls.Add(this.checkBoxFolderNaming);
this.intermediateStepOptions.Controls.Add(this.label2);
this.intermediateStepOptions.Controls.Add(this.textBoxExclude);
this.intermediateStepOptions.ForeColor = System.Drawing.SystemColors.HighlightText;
this.intermediateStepOptions.Name = "intermediateStepOptions";
this.intermediateStepOptions.Subtitle = "Advanced configuration.";
this.intermediateStepOptions.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.intermediateStepOptions.Title = "Options.";
this.intermediateStepOptions.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
//
// checkBoxFolderNaming
//
this.checkBoxFolderNaming.AutoSize = true;
this.checkBoxFolderNaming.Checked = true;
this.checkBoxFolderNaming.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxFolderNaming.ForeColor = System.Drawing.SystemColors.ControlText;
this.checkBoxFolderNaming.Location = new System.Drawing.Point(247, 103);
this.checkBoxFolderNaming.Name = "checkBoxFolderNaming";
this.checkBoxFolderNaming.Size = new System.Drawing.Size(316, 17);
this.checkBoxFolderNaming.TabIndex = 11;
this.checkBoxFolderNaming.Text = "Use Folder Namespace Resource Naming (VS 2005 Projects)";
this.checkBoxFolderNaming.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
this.label2.Location = new System.Drawing.Point(33, 85);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(138, 13);
this.label2.TabIndex = 14;
this.label2.Text = "Exclude Keys that end with:";
//
// textBoxExclude
//
this.textBoxExclude.Location = new System.Drawing.Point(33, 101);
this.textBoxExclude.Multiline = true;
this.textBoxExclude.Name = "textBoxExclude";
this.textBoxExclude.Size = new System.Drawing.Size(179, 121);
this.textBoxExclude.TabIndex = 13;
this.textBoxExclude.TextChanged += new System.EventHandler(this.textBoxExclude_TextChanged);
//
// intermediateStepXlsSelect
//
this.intermediateStepXlsSelect.BindingImage = global::Resx2Xls.Properties.Resources.topbar;
this.intermediateStepXlsSelect.Controls.Add(this.labelXlsFile);
this.intermediateStepXlsSelect.Controls.Add(this.textBoxXls);
this.intermediateStepXlsSelect.Controls.Add(this.buttonBrowseXls);
this.intermediateStepXlsSelect.ForeColor = System.Drawing.SystemColors.HighlightText;
this.intermediateStepXlsSelect.Name = "intermediateStepXlsSelect";
this.intermediateStepXlsSelect.Subtitle = "Give a valid xls document that contains localization info.";
this.intermediateStepXlsSelect.SubtitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.intermediateStepXlsSelect.Title = "Select your Excel document.";
this.intermediateStepXlsSelect.TitleFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
//
// labelXlsFile
//
this.labelXlsFile.AutoSize = true;
this.labelXlsFile.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelXlsFile.Location = new System.Drawing.Point(32, 94);
this.labelXlsFile.Name = "labelXlsFile";
this.labelXlsFile.Size = new System.Drawing.Size(96, 13);
this.labelXlsFile.TabIndex = 2;
this.labelXlsFile.Text = "Excel resource file:";
//
// textBoxXls
//
this.textBoxXls.Location = new System.Drawing.Point(35, 110);
this.textBoxXls.Name = "textBoxXls";
this.textBoxXls.Size = new System.Drawing.Size(385, 20);
this.textBoxXls.TabIndex = 0;
//
// buttonBrowseXls
//
this.buttonBrowseXls.ForeColor = System.Drawing.SystemColors.ControlText;
this.buttonBrowseXls.Location = new System.Drawing.Point(426, 108);
this.buttonBrowseXls.Name = "buttonBrowseXls";
this.buttonBrowseXls.Size = new System.Drawing.Size(75, 23);
this.buttonBrowseXls.TabIndex = 1;
this.buttonBrowseXls.Text = "Browse";
this.buttonBrowseXls.UseVisualStyleBackColor = true;
this.buttonBrowseXls.Click += new System.EventHandler(this.buttonBrowseXls_Click);
//
// finishStep1
//
this.finishStep1.BackgroundImage = global::Resx2Xls.Properties.Resources.finishbar;
this.finishStep1.Controls.Add(this.label6);
this.finishStep1.Controls.Add(this.textBoxSummary);
this.finishStep1.Name = "finishStep1";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(24, 88);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 13);
this.label6.TabIndex = 1;
this.label6.Text = "Summary:";
//
// textBoxSummary
//
this.textBoxSummary.Location = new System.Drawing.Point(27, 103);
this.textBoxSummary.Multiline = true;
this.textBoxSummary.Name = "textBoxSummary";
this.textBoxSummary.ReadOnly = true;
this.textBoxSummary.Size = new System.Drawing.Size(646, 255);
this.textBoxSummary.TabIndex = 0;
//
// Resx2XlsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(704, 466);
this.Controls.Add(this.wizardControl1);
this.Name = "Resx2XlsForm";
this.Text = "Resx To Xls";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Resx2XlsForm_FormClosing);
this.startStep1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.intermediateStepProject.ResumeLayout(false);
this.intermediateStepProject.PerformLayout();
this.intermediateStepCultures.ResumeLayout(false);
this.intermediateStepCultures.PerformLayout();
this.intermediateStepOptions.ResumeLayout(false);
this.intermediateStepOptions.PerformLayout();
this.intermediateStepXlsSelect.ResumeLayout(false);
this.intermediateStepXlsSelect.PerformLayout();
this.finishStep1.ResumeLayout(false);
this.finishStep1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListBox listBoxCultures;
private System.Windows.Forms.Button buttonAdd;
private System.Windows.Forms.ListBox listBoxSelected;
private System.Windows.Forms.OpenFileDialog openFileDialogXls;
private System.Windows.Forms.Label labelXlsFile;
private System.Windows.Forms.Button buttonBrowseXls;
private System.Windows.Forms.TextBox textBoxXls;
private System.Windows.Forms.CheckBox checkBoxFolderNaming;
private System.Windows.Forms.CheckBox checkBoxSubFolders;
private System.Windows.Forms.Button buttonBrowse;
private System.Windows.Forms.TextBox textBoxFolder;
private System.Windows.Forms.Label labelFolder;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBoxExclude;
private System.Windows.Forms.SaveFileDialog saveFileDialogXls;
private WizardBase.WizardControl wizardControl1;
private WizardBase.StartStep startStep1;
private WizardBase.IntermediateStep intermediateStepProject;
private WizardBase.IntermediateStep intermediateStepCultures;
private WizardBase.FinishStep finishStep1;
private WizardBase.IntermediateStep intermediateStepXlsSelect;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RadioButton radioButtonUpdateXls;
private System.Windows.Forms.RadioButton radioButtonBuildXls;
private System.Windows.Forms.RadioButton radioButtonCreateXls;
private WizardBase.IntermediateStep intermediateStepOptions;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBoxSummary;
private System.Windows.Forms.Label label6;
}
}
... ...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Collections;
using System.Resources;
using System.IO;
using Excel = Microsoft.Office.Interop.Excel;
using System.Data.OleDb;
namespace Resx2Xls
{
public partial class Resx2XlsForm : Form
{
object m_objOpt = System.Reflection.Missing.Value;
enum ResxToXlsOperation { Create, Build, Update };
private ResxToXlsOperation _operation;
string _summary1;
string _summary2;
string _summary3;
public Resx2XlsForm()
{
//CultureInfo ci = new CultureInfo("en-US");
//System.Threading.Thread.CurrentThread.CurrentCulture = ci;
//System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
InitializeComponent();
this.textBoxFolder.Text = Properties.Settings.Default.FolderPath;
this.textBoxExclude.Text = Properties.Settings.Default.ExcludeList;
this.checkBoxFolderNaming.Checked = Properties.Settings.Default.FolderNamespaceNaming;
FillCultures();
this.radioButtonCreateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
this.radioButtonBuildXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
this.radioButtonUpdateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
_summary1 = "Operation:\r\nCreate a new Excel document ready for localization.";
_summary2 = "Operation:\r\nBuild your localized Resource files from a Filled Excel Document.";
_summary3 = "Operation:\r\nUpdate your Excel document with your Project Resource changes.";
this.textBoxSummary.Text = _summary1;
}
void radioButton_CheckedChanged(object sender, EventArgs e)
{
this.radioButtonCreateXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged);
this.radioButtonBuildXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged);
this.radioButtonUpdateXls.CheckedChanged -= new EventHandler(radioButton_CheckedChanged);
if (this.radioButtonCreateXls.Checked)
{
_operation = ResxToXlsOperation.Create;
this.textBoxSummary.Text = _summary1;
}
if (this.radioButtonBuildXls.Checked)
{
_operation = ResxToXlsOperation.Build;
this.textBoxSummary.Text = _summary2;
}
if (this.radioButtonUpdateXls.Checked)
{
_operation = ResxToXlsOperation.Update;
this.textBoxSummary.Text = _summary3;
}
if (((RadioButton)sender).Checked)
{
if (((RadioButton)sender) == this.radioButtonCreateXls)
{
this.radioButtonBuildXls.Checked = false;
this.radioButtonUpdateXls.Checked = false;
}
if (((RadioButton)sender) == this.radioButtonBuildXls)
{
this.radioButtonCreateXls.Checked = false;
this.radioButtonUpdateXls.Checked = false;
}
if (((RadioButton)sender) == this.radioButtonUpdateXls)
{
this.radioButtonCreateXls.Checked = false;
this.radioButtonBuildXls.Checked = false;
}
}
this.radioButtonCreateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
this.radioButtonBuildXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
this.radioButtonUpdateXls.CheckedChanged += new EventHandler(radioButton_CheckedChanged);
}
#region ResxToXL
public void ResxToXls(string path, bool deepSearch, string xslFile, string[] cultures, string[] excludeList, bool useFolderNamespacePrefix)
{
if (!System.IO.Directory.Exists(path))
return;
ResxData rd = ResxToDataSet(path, deepSearch, cultures, excludeList, useFolderNamespacePrefix);
DataSetToXls(rd, xslFile);
ShowXls(xslFile);
}
private ResxData ResxToDataSet(string path, bool deepSearch, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix)
{
ResxData rd = new ResxData();
string[] files;
if (deepSearch)
files = System.IO.Directory.GetFiles(path, "*.resx", SearchOption.AllDirectories);
else
files = System.IO.Directory.GetFiles(path, "*.resx", SearchOption.TopDirectoryOnly);
foreach (string f in files)
{
if (!IsResxCultureSpecific_checkByFilePath(f))
{
string filePathWOExt = f.Replace(".resx", "");
var cultureSpecificFiles = Array.FindAll<string>(files, a => a != f && a.Substring(0, filePathWOExt.Length) == filePathWOExt);
ResxData.ResxFilesMasterRow r = rd.ResxFilesMaster.NewResxFilesMasterRow();
r.FileSource = f;
rd.ResxFilesMaster.AddResxFilesMasterRow(r);
ReadResx(f, path, rd, cultureList, excludeList, useFolderNamespacePrefix, cultureSpecificFiles);
}
}
return rd;
}
#endregion ResxToXL
#region XLToResx
private void XlsToResx(string xlsFile)
{
if (!File.Exists(xlsFile))
return;
//string query = "Select * from Localize";
//DataSet ds= GetDataSetFromExcel(xlsFile, query);
string path = new FileInfo(xlsFile).DirectoryName;
Excel.Application app = new Excel.Application();
Excel.Workbook wb = app.Workbooks.Open(xlsFile,
0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",
true, false, 0, true, false, false);
Excel.Sheets sheets = wb.Worksheets;
Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1);
bool hasLanguage = true;
int col = 4;
while (hasLanguage)
{
object val = (sheet.Cells[2, col] as Excel.Range).Text;
if (val is string)
{
string cult = val.ToString();
if (!String.IsNullOrEmpty(cult))
{
//string pathCulture = path + @"\" + cult;
//if (!System.IO.Directory.Exists(pathCulture))
// System.IO.Directory.CreateDirectory(pathCulture);
ResXResourceWriter rw = null;
int row = 3;
string fileSrc;
string fileDest;
bool readrow = true;
while (readrow)
{
fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString();
fileDest = (sheet.Cells[row, 2] as Excel.Range).Text.ToString();
if (String.IsNullOrEmpty(fileDest))
break;
string f = "";
f = cult.ToUpper() =="[DEFAULT]" ? fileSrc : Path.GetDirectoryName(fileSrc) + @"\" + Path.GetFileNameWithoutExtension(fileSrc) + "." + cult + ".resx";
//string f = pathCulture + @"\" + JustStem(fileDest) + "." + cult + ".resx";
rw = new ResXResourceWriter(f);
while (readrow)
{
string key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString();
object data = (sheet.Cells[row, col] as Excel.Range).Text.ToString();
if ((key is String) & !String.IsNullOrEmpty(key))
{
if (data is string)
{
string text = data as string;
text = text.Replace("\\r", "\r");
text = text.Replace("\\n", "\n");
rw.AddResource(new ResXDataNode(key, text));
}
row++;
string file = (sheet.Cells[row, 2] as Excel.Range).Text.ToString();
if (file != fileDest)
break;
}
else
{
readrow = false;
}
}
rw.Generate();
rw.Close();
}
}
else
hasLanguage = false;
}
else
hasLanguage = false;
col++;
}
}
#endregion XLToResx
private void XlsToResx_old(string xlsFile)
{
if (!File.Exists(xlsFile))
return;
string path = new FileInfo(xlsFile).DirectoryName;
Excel.Application app = new Excel.Application();
Excel.Workbook wb = app.Workbooks.Open(xlsFile,
0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",
true, false, 0, true, false, false);
Excel.Sheets sheets = wb.Worksheets;
Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1);
bool hasLanguage = true;
int col = 5;
while (hasLanguage)
{
object val = (sheet.Cells[2, col] as Excel.Range).Text;
if (val is string)
{
if (!String.IsNullOrEmpty((string)val))
{
string cult = (string)val;
string pathCulture = path + @"\" + cult;
if (!System.IO.Directory.Exists(pathCulture))
System.IO.Directory.CreateDirectory(pathCulture);
ResXResourceWriter rw = null;
int row = 3;
string fileSrc;
string fileDest;
bool readrow = true;
while (readrow)
{
fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString();
fileDest = (sheet.Cells[row, 2] as Excel.Range).Text.ToString();
if (String.IsNullOrEmpty(fileDest))
break;
string f = pathCulture + @"\" + JustStem(fileDest) + "." + cult + ".resx";
rw = new ResXResourceWriter(f);
while (readrow)
{
string key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString();
object data = (sheet.Cells[row, col] as Excel.Range).Text.ToString();
if ((key is String) & !String.IsNullOrEmpty(key))
{
if (data is string)
{
string text = data as string;
text = text.Replace("\\r", "\r");
text = text.Replace("\\n", "\n");
rw.AddResource(new ResXDataNode(key, text));
}
row++;
string file = (sheet.Cells[row, 2] as Excel.Range).Text.ToString();
if (file != fileDest)
break;
}
else
{
readrow = false;
}
}
rw.Close();
}
}
else
hasLanguage = false;
}
else
hasLanguage = false;
col++;
}
}
private bool IsResxCultureSpecific_checkByFilePath(string path)
{
string cult = GetCultureByFileName(path);
return IsResxCultureSpecific_checkByCultureString(cult);
}
private bool IsResxCultureSpecific_checkByCultureString(string culture)
{
if (culture == String.Empty)
return false;
try
{
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(culture);
return true;
}
catch
{
return false;
}
}
private string GetCultureByFileName(string fileName)
{
string culture = "";
string fileNameWOExt = Path.GetFileNameWithoutExtension(fileName);
if (fileNameWOExt.IndexOf(".") != -1)
culture = fileNameWOExt.Substring(fileNameWOExt.LastIndexOf('.') + 1);
return culture;
}
private string GetNamespacePrefix(string projectRoot, string path)
{
path = path.Remove(0, projectRoot.Length);
if (path.StartsWith(@"\"))
path = path.Remove(0, 1);
path = path.Replace(@"\", ".");
return path;
}
private void ReadResx(string fileName, string projectRoot, ResxData rd, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix, string[] cultureSpecificFiles)
{
string parentFileName = ReadResx(fileName, projectRoot, rd, cultureList, excludeList, useFolderNamespacePrefix);
foreach(string f in cultureSpecificFiles)
{
ReadResx(f, projectRoot, rd, cultureList, excludeList, useFolderNamespacePrefix, parentFileName);
}
}
private string ReadResx(string fileName, string projectRoot, ResxData rd, string[] cultureList, string[] excludeList, bool useFolderNamespacePrefix, string parentFileName="")
{
FileInfo fi = new FileInfo(fileName);
string fileRelativePath = fi.FullName; // fi.FullName.Remove(0, AddBS(projectRoot).Length);
string fileDestination;
if (useFolderNamespacePrefix)
fileDestination = GetNamespacePrefix(AddBS(projectRoot), AddBS(fi.DirectoryName)) + fi.Name;
else
fileDestination = fi.Name;
ResXResourceReader reader = new ResXResourceReader(fileName);
reader.BasePath = fi.DirectoryName;
try
{
IDictionaryEnumerator ide = reader.GetEnumerator();
#region read
foreach (DictionaryEntry de in reader)
{
if (de.Value is string)
{
string key = (string)de.Key;
bool exclude = false;
foreach (string e in excludeList)
{
if (key.EndsWith(e))
{
exclude = true;
break;
}
}
if (!exclude)
{
string value = de.Value.ToString();
if (string.IsNullOrEmpty(parentFileName))
{
ResxData.ResxRow r = rd.Resx.NewResxRow();
r.FileSource = fileRelativePath;
r.FileDestination = fileDestination;
r.Key = key;
value = value.Replace("\r", "\\r");
value = value.Replace("\n", "\\n");
r.Value = value;
rd.Resx.AddResxRow(r);
}
else
{
ResxData.ResxLocalizedRow lr = rd.ResxLocalized.NewResxLocalizedRow();
lr.Key = key;
value = value.Replace("\r", "\\r");
value = value.Replace("\n", "\\n");
lr.Value = value;
lr.Culture = GetCultureByFileName(fileName);
lr.ParentFileFullName = parentFileName;
//lr.ParentId = parentId;
//lr.SetParentRow(parentRow);
rd.ResxLocalized.AddResxLocalizedRow(lr);
}
}
}
}
#endregion
}
catch(Exception ex)
{
MessageBox.Show("A problem occured reading " + fileName + "\n" + ex.Message, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
reader.Close();
return fileRelativePath;
}
private void FillCultures()
{
CultureInfo[] array = CultureInfo.GetCultures(CultureTypes.AllCultures);
Array.Sort(array, new CultureInfoComparer());
foreach (CultureInfo info in array)
{
if (info.Equals(CultureInfo.InvariantCulture))
{
//this.listBoxCultures.Items.Add(info, "Default (Invariant Language)");
}
else
{
this.listBoxCultures.Items.Add(info);
}
}
string cList = Properties.Settings.Default.CultureList;
string[] cultureList = cList.Split(';');
foreach (string cult in cultureList)
{
CultureInfo info = new CultureInfo(cult);
this.listBoxSelected.Items.Add(info);
}
}
private void AddCultures()
{
for (int i = 0; i < this.listBoxCultures.SelectedItems.Count; i++)
{
CultureInfo ci = (CultureInfo)this.listBoxCultures.SelectedItems[i];
if (this.listBoxSelected.Items.IndexOf(ci) == -1)
this.listBoxSelected.Items.Add(ci);
}
}
private void SaveCultures()
{
string cultures = String.Empty;
for (int i = 0; i < this.listBoxSelected.Items.Count; i++)
{
CultureInfo info = (CultureInfo)this.listBoxSelected.Items[i];
if (cultures != String.Empty)
cultures = cultures + ";";
cultures = cultures + info.Name;
}
Properties.Settings.Default.CultureList = cultures;
}
private void buttonBrowse_Click(object sender, EventArgs e)
{
if (this.folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
this.textBoxFolder.Text = this.folderBrowserDialog.SelectedPath;
}
}
private void buttonAdd_Click(object sender, EventArgs e)
{
AddCultures();
}
private void listBoxCultures_MouseDoubleClick(object sender, MouseEventArgs e)
{
AddCultures();
}
private void buttonBrowseXls_Click(object sender, EventArgs e)
{
if (this.openFileDialogXls.ShowDialog() == DialogResult.OK)
{
this.textBoxXls.Text = this.openFileDialogXls.FileName;
}
}
private void listBoxSelected_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (this.listBoxSelected.SelectedItems.Count > 0)
{
this.listBoxSelected.Items.Remove(this.listBoxSelected.SelectedItems[0]);
}
}
private void textBoxExclude_TextChanged(object sender, EventArgs e)
{
Properties.Settings.Default.ExcludeList = this.textBoxExclude.Text;
}
private void Resx2XlsForm_FormClosing(object sender, FormClosingEventArgs e)
{
SaveCultures();
Properties.Settings.Default.FolderNamespaceNaming = this.checkBoxFolderNaming.Checked;
Properties.Settings.Default.Save();
}
private void textBoxFolder_TextChanged(object sender, EventArgs e)
{
Properties.Settings.Default.FolderPath = this.textBoxFolder.Text;
}
private void UpdateXls(string xlsFile, string projectRoot, bool deepSearch, string[] excludeList, bool useFolderNamespacePrefix)
{
if (!File.Exists(xlsFile))
return;
string path = new FileInfo(xlsFile).DirectoryName;
string[] files;
if (deepSearch)
files = System.IO.Directory.GetFiles(projectRoot, "*.resx", SearchOption.AllDirectories);
else
files = System.IO.Directory.GetFiles(projectRoot, "*.resx", SearchOption.TopDirectoryOnly);
ResxData rd = XlsToDataSet(xlsFile);
foreach (string f in files)
{
FileInfo fi = new FileInfo(f);
string fileRelativePath = fi.FullName.Remove(0, AddBS(projectRoot).Length);
string fileDestination;
if (useFolderNamespacePrefix)
fileDestination = GetNamespacePrefix(AddBS(projectRoot), AddBS(fi.DirectoryName)) + fi.Name;
else
fileDestination = fi.Name;
ResXResourceReader reader = new ResXResourceReader(f);
reader.BasePath = fi.DirectoryName;
foreach (DictionaryEntry d in reader)
{
if (d.Value is string)
{
bool exclude = false;
foreach (string e in excludeList)
{
if (d.Key.ToString().EndsWith(e))
{
exclude = true;
break;
}
}
if (!exclude)
{
string strWhere = String.Format("FileSource ='{0}' AND Key='{1}'", fileRelativePath, d.Key.ToString());
ResxData.ResxRow[] rows = (ResxData.ResxRow[])rd.Resx.Select(strWhere);
ResxData.ResxRow row = null;
if ((rows == null) | (rows.Length == 0))
{
// add row
row = rd.Resx.NewResxRow();
row.FileSource = fileRelativePath;
row.FileDestination = fileDestination;
// I update the neutral value
row.Key = d.Key.ToString();
rd.Resx.AddResxRow(row);
}
else
row = rows[0];
// update row
row.BeginEdit();
string value = d.Value.ToString();
value = value.Replace("\r", "\\r");
value = value.Replace("\n", "\\n");
row.Value = value;
row.EndEdit();
}
}
}
}
//delete unchenged rows
foreach (ResxData.ResxRow r in rd.Resx.Rows)
{
if (r.RowState == DataRowState.Unchanged)
{
r.Delete();
}
}
rd.AcceptChanges();
DataSetToXls(rd, xlsFile);
}
private ResxData XlsToDataSet(string xlsFile)
{
Excel.Application app = new Excel.Application();
Excel.Workbook wb = app.Workbooks.Open(xlsFile,
0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",
true, false, 0, true, false, false);
Excel.Sheets sheets = wb.Worksheets;
Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1);
ResxData rd = new ResxData();
int row = 3;
bool continueLoop = true;
while (continueLoop)
{
string fileSrc = (sheet.Cells[row, 1] as Excel.Range).Text.ToString();
if (String.IsNullOrEmpty(fileSrc))
break;
ResxData.ResxRow r = rd.Resx.NewResxRow();
r.FileSource = (sheet.Cells[row, 1] as Excel.Range).Text.ToString();
r.FileDestination = (sheet.Cells[row, 2] as Excel.Range).Text.ToString();
r.Key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString();
r.Value = (sheet.Cells[row, 4] as Excel.Range).Text.ToString();
rd.Resx.AddResxRow(r);
bool hasCulture = true;
int col = 5;
while (hasCulture)
{
string cult = (sheet.Cells[2, col] as Excel.Range).Text.ToString();
if (String.IsNullOrEmpty(cult))
break;
ResxData.ResxLocalizedRow lr = rd.ResxLocalized.NewResxLocalizedRow();
lr.Culture = cult;
lr.Key = (sheet.Cells[row, 3] as Excel.Range).Text.ToString();
lr.Value = (sheet.Cells[row, col] as Excel.Range).Text.ToString();
lr.ParentId = r.Id;
lr.SetParentRow(r);
rd.ResxLocalized.AddResxLocalizedRow(lr);
col++;
}
row++;
}
rd.AcceptChanges();
wb.Close(false, m_objOpt, m_objOpt);
app.Quit();
return rd;
}
private void DataSetToXls(ResxData rd, string fileName)
{
Excel.Application app = new Excel.Application();
Excel.Workbook wb = app.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet);
Excel.Sheets sheets = wb.Worksheets;
Excel.Worksheet sheet = (Excel.Worksheet)sheets.get_Item(1);
sheet.Name = "Localize";
sheet.Cells[1, 1] = "Resx source";
sheet.Cells[1, 2] = "Resx Name";
sheet.Cells[1, 3] = "Key";
sheet.Cells[1, 4] = "Value";
sheet.Cells[2, 4] = "[DEFAULT]";
string[] cultures = GetCulturesFromDataSet(rd);
int index = 5;
foreach (string cult in cultures)
{
CultureInfo ci = new CultureInfo(cult);
sheet.Cells[1, index] = ci.DisplayName;
sheet.Cells[2, index] = ci.Name;
index++;
}
DataView dw = rd.Resx.DefaultView;
dw.Sort = "FileSource, Key";
int row = 3;
//New Code
DataView dwFiles = rd.ResxFilesMaster.DefaultView;
dwFiles.Sort = "FileSource";
foreach (DataRowView file in dwFiles)
{
ResxData.ResxFilesMasterRow f = (ResxData.ResxFilesMasterRow)file.Row;
DataRow[] resources = rd.Resx.Select("FileSource='" + f.FileSource + "'");
ResxData.ResxLocalizedRow[] localizedResxRows = (ResxData.ResxLocalizedRow[])rd.ResxLocalized.Select("ParentFileFullName='" + f.FileSource + "'");
foreach (DataRow dr in resources)
{
ResxData.ResxRow r = (ResxData.ResxRow)dr;
sheet.Cells[row, 1] = r.FileSource;
sheet.Cells[row, 2] = r.FileDestination;
sheet.Cells[row, 3] = r.Key;
sheet.Cells[row, 4] = r.Value;
//ResxData.ResxLocalizedRow[] rows = r.GetResxLocalizedRow;
//ResxData.ResxLocalizedRow[] rows = (ResxData.ResxLocalizedRow[])rd.ResxLocalized.Select("ParentFileFullName='" + r.FileSource + "' and key = '" + r.Key + "'");
ResxData.ResxLocalizedRow[] rows = Array.FindAll<ResxData.ResxLocalizedRow>(localizedResxRows, l => l.Key == r.Key);
foreach (ResxData.ResxLocalizedRow lr in rows)
{
lr.Read = true;
string culture = lr.Culture;
int col = Array.IndexOf(cultures, culture);
if (col >= 0)
sheet.Cells[row, col + 5] = lr.Value;
}
row++;
}
//For keys that are missing in the main files
ResxData.ResxLocalizedRow[] unreadRows = Array.FindAll<ResxData.ResxLocalizedRow>(localizedResxRows, l => l.Read == false);
foreach (ResxData.ResxLocalizedRow lr in unreadRows)
{
lr.Read = true;
string culture = lr.Culture;
int col = Array.IndexOf(cultures, culture);
if (col >= 0)
{
sheet.Cells[row, 1] = f.FileSource;
sheet.Cells[row, 2] = Path.GetFileName(f.FileSource);
sheet.Cells[row, 3] = lr.Key;
sheet.Cells[row, col + 5] = lr.Value;
}
}
row++;
}
//New Code End
//foreach (DataRowView drw in dw )
//{
// ResxData.ResxRow r = (ResxData.ResxRow)drw.Row;
// sheet.Cells[row, 1] = r.FileSource;
// sheet.Cells[row, 2] = r.FileDestination;
// sheet.Cells[row, 3] = r.Key;
// sheet.Cells[row, 4] = r.Value;
// //ResxData.ResxLocalizedRow[] rows = r.GetResxLocalizedRow;
// ResxData.ResxLocalizedRow[] rows = (ResxData.ResxLocalizedRow[]) rd.ResxLocalized.Select("ParentFileFullName='" + r.FileSource + "' and key = '" + r.Key + "'");
// foreach (ResxData.ResxLocalizedRow lr in rows)
// {
// string culture = lr.Culture;
// int col = Array.IndexOf(cultures, culture);
// if (col >= 0)
// sheet.Cells[row, col + 5] = lr.Value;
// }
// row++;
//}
sheet.Cells.get_Range("A1", "Z1").EntireColumn.AutoFit();
// Save the Workbook and quit Excel.
wb.SaveAs(fileName, m_objOpt, m_objOpt,
m_objOpt, m_objOpt, m_objOpt, Excel.XlSaveAsAccessMode.xlNoChange,
m_objOpt, m_objOpt, m_objOpt, m_objOpt, m_objOpt);
wb.Close(false, m_objOpt, m_objOpt);
app.Quit();
}
private string[] GetCulturesFromDataSet(ResxData rd)
{
if (rd.ResxLocalized.Rows.Count > 0)
{
ArrayList list = new ArrayList();
foreach (ResxData.ResxLocalizedRow r in rd.ResxLocalized.Rows)
{
if (r.Culture != String.Empty)
{
if (list.IndexOf(r.Culture) < 0)
{
list.Add(r.Culture);
}
}
}
string[] cultureList = new string[list.Count];
int i = 0;
foreach (string c in list)
{
cultureList[i] = c;
i++;
}
return cultureList;
}
else
return null;
}
public static string JustStem(string cPath)
{
//Get the name of the file
string lcFileName = JustFName(cPath.Trim());
//Remove the extension and return the string
if (lcFileName.IndexOf(".") == -1)
return lcFileName;
else
return lcFileName.Substring(0, lcFileName.LastIndexOf('.'));
}
public static string JustFName(string cFileName)
{
//Create the FileInfo object
FileInfo fi = new FileInfo(cFileName);
//Return the file name
return fi.Name;
}
public static string AddBS(string cPath)
{
if (cPath.Trim().EndsWith("\\"))
{
return cPath.Trim();
}
else
{
return cPath.Trim() + "\\";
}
}
public void ShowXls(string xslFilePath)
{
if (!System.IO.File.Exists(xslFilePath))
return;
Excel.Application app = new Excel.Application();
Excel.Workbook wb = app.Workbooks.Open(xslFilePath,
0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "",
true, false, 0, true, false, false);
app.Visible = true;
}
private void FinishWizard()
{
Cursor = Cursors.WaitCursor;
string[] excludeList = this.textBoxExclude.Text.Split(';');
string[] cultures = null;
cultures = new string[this.listBoxSelected.Items.Count];
for (int i = 0; i < this.listBoxSelected.Items.Count; i++)
{
cultures[i] = ((CultureInfo)this.listBoxSelected.Items[i]).Name;
}
switch (_operation)
{
case ResxToXlsOperation.Create:
if (String.IsNullOrEmpty(this.textBoxFolder.Text))
{
MessageBox.Show("You must select a the .Net Project root wich contains your updated resx files", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.wizardControl1.CurrentStepIndex = this.intermediateStepProject.StepIndex;
return;
}
if (this.saveFileDialogXls.ShowDialog() == DialogResult.OK)
{
Application.DoEvents();
string path = this.saveFileDialogXls.FileName;
ResxToXls(this.textBoxFolder.Text, this.checkBoxSubFolders.Checked, path, cultures, excludeList, this.checkBoxFolderNaming.Checked);
MessageBox.Show("Excel Document created.", "Create", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
break;
case ResxToXlsOperation.Build:
if (String.IsNullOrEmpty(this.textBoxXls.Text))
{
MessageBox.Show("You must select the Excel document to update", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.wizardControl1.CurrentStepIndex = this.intermediateStepXlsSelect.StepIndex;
return;
}
XlsToResx(this.textBoxXls.Text);
MessageBox.Show("Localized Resources created.", "Build", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;
case ResxToXlsOperation.Update:
if (String.IsNullOrEmpty(this.textBoxFolder.Text))
{
MessageBox.Show("You must select a the .Net Project root wich contains your updated resx files", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.wizardControl1.CurrentStepIndex = this.intermediateStepProject.StepIndex;
return;
}
if (String.IsNullOrEmpty(this.textBoxXls.Text))
{
MessageBox.Show("You must select the Excel document to update", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.wizardControl1.CurrentStepIndex = this.intermediateStepXlsSelect.StepIndex;
return;
}
UpdateXls(this.textBoxXls.Text, this.textBoxFolder.Text, this.checkBoxSubFolders.Checked, excludeList, this.checkBoxFolderNaming.Checked);
MessageBox.Show("Excel Document Updated.", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;
default:
break;
}
Cursor = Cursors.Default;
this.Close();
}
private void wizardControl1_CurrentStepIndexChanged(object sender, EventArgs e)
{
}
private void wizardControl1_NextButtonClick(WizardBase.WizardControl sender, WizardBase.WizardNextButtonClickEventArgs args)
{
int index = this.wizardControl1.CurrentStepIndex;
int offset = 1; // un bug? se non faccio cos
switch (index)
{
case 0:
switch (_operation)
{
case ResxToXlsOperation.Create:
this.wizardControl1.CurrentStepIndex = 1 - offset;
break;
case ResxToXlsOperation.Build:
this.wizardControl1.CurrentStepIndex = 4 - offset;
break;
case ResxToXlsOperation.Update:
this.wizardControl1.CurrentStepIndex = 1 - offset;
break;
default:
break;
}
break;
case 1:
switch (_operation)
{
case ResxToXlsOperation.Update:
this.wizardControl1.CurrentStepIndex = 4 - offset;
break;
default:
break;
}
break;
case 3:
switch (_operation)
{
case ResxToXlsOperation.Create:
this.wizardControl1.CurrentStepIndex = 5 - offset;
break;
default:
break;
}
break;
}
}
private void wizardControl1_BackButtonClick(WizardBase.WizardControl sender, WizardBase.WizardClickEventArgs args)
{
int index = this.wizardControl1.CurrentStepIndex;
int offset = 1; // un bug? se non faccio cos
switch (index)
{
case 5:
switch (_operation)
{
case ResxToXlsOperation.Create:
this.wizardControl1.CurrentStepIndex = 3 + offset;
break;
default:
break;
}
break;
case 4:
switch (_operation)
{
case ResxToXlsOperation.Build:
this.wizardControl1.CurrentStepIndex = 0 + offset;
break;
case ResxToXlsOperation.Update:
this.wizardControl1.CurrentStepIndex = 1 + offset;
break;
default:
break;
}
break;
}
}
private void wizardControl1_FinishButtonClick(object sender, EventArgs e)
{
FinishWizard();
}
private void startStep1_Click(object sender, EventArgs e)
{
}
}
}
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="openFileDialogXls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>168, 17</value>
</metadata>
<metadata name="saveFileDialogXls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>306, 17</value>
</metadata>
</root>
\ No newline at end of file
... ...
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace Resx2Xls {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("ResxData")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class ResxData : global::System.Data.DataSet {
private ResxDataTable tableResx;
private ResxLocalizedDataTable tableResxLocalized;
private ResxFilesMasterDataTable tableResxFilesMaster;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxData() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected ResxData(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Resx"] != null)) {
base.Tables.Add(new ResxDataTable(ds.Tables["Resx"]));
}
if ((ds.Tables["ResxLocalized"] != null)) {
base.Tables.Add(new ResxLocalizedDataTable(ds.Tables["ResxLocalized"]));
}
if ((ds.Tables["ResxFilesMaster"] != null)) {
base.Tables.Add(new ResxFilesMasterDataTable(ds.Tables["ResxFilesMaster"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public ResxDataTable Resx {
get {
return this.tableResx;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public ResxLocalizedDataTable ResxLocalized {
get {
return this.tableResxLocalized;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public ResxFilesMasterDataTable ResxFilesMaster {
get {
return this.tableResxFilesMaster;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataSet Clone() {
ResxData cln = ((ResxData)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Resx"] != null)) {
base.Tables.Add(new ResxDataTable(ds.Tables["Resx"]));
}
if ((ds.Tables["ResxLocalized"] != null)) {
base.Tables.Add(new ResxLocalizedDataTable(ds.Tables["ResxLocalized"]));
}
if ((ds.Tables["ResxFilesMaster"] != null)) {
base.Tables.Add(new ResxFilesMasterDataTable(ds.Tables["ResxFilesMaster"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars(bool initTable) {
this.tableResx = ((ResxDataTable)(base.Tables["Resx"]));
if ((initTable == true)) {
if ((this.tableResx != null)) {
this.tableResx.InitVars();
}
}
this.tableResxLocalized = ((ResxLocalizedDataTable)(base.Tables["ResxLocalized"]));
if ((initTable == true)) {
if ((this.tableResxLocalized != null)) {
this.tableResxLocalized.InitVars();
}
}
this.tableResxFilesMaster = ((ResxFilesMasterDataTable)(base.Tables["ResxFilesMaster"]));
if ((initTable == true)) {
if ((this.tableResxFilesMaster != null)) {
this.tableResxFilesMaster.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.DataSetName = "ResxData";
this.Prefix = "";
this.Namespace = "http://tempuri.org/ResxData.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableResx = new ResxDataTable();
base.Tables.Add(this.tableResx);
this.tableResxLocalized = new ResxLocalizedDataTable();
base.Tables.Add(this.tableResxLocalized);
this.tableResxFilesMaster = new ResxFilesMasterDataTable();
base.Tables.Add(this.tableResxFilesMaster);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeResx() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeResxLocalized() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeResxFilesMaster() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
ResxData ds = new ResxData();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ResxRowChangeEventHandler(object sender, ResxRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ResxLocalizedRowChangeEventHandler(object sender, ResxLocalizedRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ResxFilesMasterRowChangeEventHandler(object sender, ResxFilesMasterRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ResxDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnFileSource;
private global::System.Data.DataColumn columnFileDestination;
private global::System.Data.DataColumn columnKey;
private global::System.Data.DataColumn columnValue;
private global::System.Data.DataColumn columnId;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxDataTable() {
this.TableName = "Resx";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected ResxDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn FileSourceColumn {
get {
return this.columnFileSource;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn FileDestinationColumn {
get {
return this.columnFileDestination;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn KeyColumn {
get {
return this.columnKey;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ValueColumn {
get {
return this.columnValue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn IdColumn {
get {
return this.columnId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRow this[int index] {
get {
return ((ResxRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxRowChangeEventHandler ResxRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxRowChangeEventHandler ResxRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxRowChangeEventHandler ResxRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxRowChangeEventHandler ResxRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddResxRow(ResxRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRow AddResxRow(string FileSource, string FileDestination, string Key, string Value) {
ResxRow rowResxRow = ((ResxRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
FileSource,
FileDestination,
Key,
Value,
null};
rowResxRow.ItemArray = columnValuesArray;
this.Rows.Add(rowResxRow);
return rowResxRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRow FindById(int Id) {
return ((ResxRow)(this.Rows.Find(new object[] {
Id})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
ResxDataTable cln = ((ResxDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new ResxDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnFileSource = base.Columns["FileSource"];
this.columnFileDestination = base.Columns["FileDestination"];
this.columnKey = base.Columns["Key"];
this.columnValue = base.Columns["Value"];
this.columnId = base.Columns["Id"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnFileSource = new global::System.Data.DataColumn("FileSource", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFileSource);
this.columnFileDestination = new global::System.Data.DataColumn("FileDestination", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFileDestination);
this.columnKey = new global::System.Data.DataColumn("Key", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKey);
this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnValue);
this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnId);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnId}, true));
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] {
this.columnKey,
this.columnFileDestination}, false));
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint3", new global::System.Data.DataColumn[] {
this.columnKey,
this.columnFileSource}, false));
this.columnFileSource.AllowDBNull = false;
this.columnKey.AllowDBNull = false;
this.columnId.AutoIncrement = true;
this.columnId.AllowDBNull = false;
this.columnId.Unique = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRow NewResxRow() {
return ((ResxRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ResxRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(ResxRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ResxRowChanged != null)) {
this.ResxRowChanged(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ResxRowChanging != null)) {
this.ResxRowChanging(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ResxRowDeleted != null)) {
this.ResxRowDeleted(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ResxRowDeleting != null)) {
this.ResxRowDeleting(this, new ResxRowChangeEvent(((ResxRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveResxRow(ResxRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
ResxData ds = new ResxData();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "ResxDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ResxLocalizedDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnCulture;
private global::System.Data.DataColumn columnKey;
private global::System.Data.DataColumn columnValue;
private global::System.Data.DataColumn columnId;
private global::System.Data.DataColumn columnParentId;
private global::System.Data.DataColumn columnParentFileFullName;
private global::System.Data.DataColumn columnRead;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedDataTable() {
this.TableName = "ResxLocalized";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxLocalizedDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected ResxLocalizedDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CultureColumn {
get {
return this.columnCulture;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn KeyColumn {
get {
return this.columnKey;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ValueColumn {
get {
return this.columnValue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn IdColumn {
get {
return this.columnId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ParentIdColumn {
get {
return this.columnParentId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ParentFileFullNameColumn {
get {
return this.columnParentFileFullName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ReadColumn {
get {
return this.columnRead;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRow this[int index] {
get {
return ((ResxLocalizedRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxLocalizedRowChangeEventHandler ResxLocalizedRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddResxLocalizedRow(ResxLocalizedRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRow AddResxLocalizedRow(string Culture, string Key, string Value, int ParentId, string ParentFileFullName, bool Read) {
ResxLocalizedRow rowResxLocalizedRow = ((ResxLocalizedRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
Culture,
Key,
Value,
null,
ParentId,
ParentFileFullName,
Read};
rowResxLocalizedRow.ItemArray = columnValuesArray;
this.Rows.Add(rowResxLocalizedRow);
return rowResxLocalizedRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRow FindById(int Id) {
return ((ResxLocalizedRow)(this.Rows.Find(new object[] {
Id})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
ResxLocalizedDataTable cln = ((ResxLocalizedDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new ResxLocalizedDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnCulture = base.Columns["Culture"];
this.columnKey = base.Columns["Key"];
this.columnValue = base.Columns["Value"];
this.columnId = base.Columns["Id"];
this.columnParentId = base.Columns["ParentId"];
this.columnParentFileFullName = base.Columns["ParentFileFullName"];
this.columnRead = base.Columns["Read"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnCulture = new global::System.Data.DataColumn("Culture", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCulture);
this.columnKey = new global::System.Data.DataColumn("Key", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKey);
this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnValue);
this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnId);
this.columnParentId = new global::System.Data.DataColumn("ParentId", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnParentId);
this.columnParentFileFullName = new global::System.Data.DataColumn("ParentFileFullName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnParentFileFullName);
this.columnRead = new global::System.Data.DataColumn("Read", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRead);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnId}, true));
this.columnCulture.AllowDBNull = false;
this.columnKey.AllowDBNull = false;
this.columnId.AutoIncrement = true;
this.columnId.AllowDBNull = false;
this.columnId.Unique = true;
this.columnRead.AllowDBNull = false;
this.columnRead.DefaultValue = ((bool)(false));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRow NewResxLocalizedRow() {
return ((ResxLocalizedRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ResxLocalizedRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(ResxLocalizedRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ResxLocalizedRowChanged != null)) {
this.ResxLocalizedRowChanged(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ResxLocalizedRowChanging != null)) {
this.ResxLocalizedRowChanging(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ResxLocalizedRowDeleted != null)) {
this.ResxLocalizedRowDeleted(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ResxLocalizedRowDeleting != null)) {
this.ResxLocalizedRowDeleting(this, new ResxLocalizedRowChangeEvent(((ResxLocalizedRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveResxLocalizedRow(ResxLocalizedRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
ResxData ds = new ResxData();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "ResxLocalizedDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ResxFilesMasterDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnId;
private global::System.Data.DataColumn columnFileSource;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterDataTable() {
this.TableName = "ResxFilesMaster";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxFilesMasterDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected ResxFilesMasterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn IdColumn {
get {
return this.columnId;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn FileSourceColumn {
get {
return this.columnFileSource;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterRow this[int index] {
get {
return ((ResxFilesMasterRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event ResxFilesMasterRowChangeEventHandler ResxFilesMasterRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddResxFilesMasterRow(ResxFilesMasterRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterRow AddResxFilesMasterRow(string FileSource) {
ResxFilesMasterRow rowResxFilesMasterRow = ((ResxFilesMasterRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
FileSource};
rowResxFilesMasterRow.ItemArray = columnValuesArray;
this.Rows.Add(rowResxFilesMasterRow);
return rowResxFilesMasterRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
ResxFilesMasterDataTable cln = ((ResxFilesMasterDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new ResxFilesMasterDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnId = base.Columns["Id"];
this.columnFileSource = base.Columns["FileSource"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnId);
this.columnFileSource = new global::System.Data.DataColumn("FileSource", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFileSource);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnId}, false));
this.columnId.AutoIncrement = true;
this.columnId.AutoIncrementSeed = -1;
this.columnId.AutoIncrementStep = -1;
this.columnId.AllowDBNull = false;
this.columnId.Unique = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterRow NewResxFilesMasterRow() {
return ((ResxFilesMasterRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ResxFilesMasterRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(ResxFilesMasterRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ResxFilesMasterRowChanged != null)) {
this.ResxFilesMasterRowChanged(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ResxFilesMasterRowChanging != null)) {
this.ResxFilesMasterRowChanging(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ResxFilesMasterRowDeleted != null)) {
this.ResxFilesMasterRowDeleted(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ResxFilesMasterRowDeleting != null)) {
this.ResxFilesMasterRowDeleting(this, new ResxFilesMasterRowChangeEvent(((ResxFilesMasterRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveResxFilesMasterRow(ResxFilesMasterRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
ResxData ds = new ResxData();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "ResxFilesMasterDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class ResxRow : global::System.Data.DataRow {
private ResxDataTable tableResx;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableResx = ((ResxDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string FileSource {
get {
return ((string)(this[this.tableResx.FileSourceColumn]));
}
set {
this[this.tableResx.FileSourceColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string FileDestination {
get {
try {
return ((string)(this[this.tableResx.FileDestinationColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'FileDestination\' in table \'Resx\' is DBNull.", e);
}
}
set {
this[this.tableResx.FileDestinationColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Key {
get {
return ((string)(this[this.tableResx.KeyColumn]));
}
set {
this[this.tableResx.KeyColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Value {
get {
try {
return ((string)(this[this.tableResx.ValueColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'Resx\' is DBNull.", e);
}
}
set {
this[this.tableResx.ValueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int Id {
get {
return ((int)(this[this.tableResx.IdColumn]));
}
set {
this[this.tableResx.IdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsFileDestinationNull() {
return this.IsNull(this.tableResx.FileDestinationColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetFileDestinationNull() {
this[this.tableResx.FileDestinationColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsValueNull() {
return this.IsNull(this.tableResx.ValueColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetValueNull() {
this[this.tableResx.ValueColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class ResxLocalizedRow : global::System.Data.DataRow {
private ResxLocalizedDataTable tableResxLocalized;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxLocalizedRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableResxLocalized = ((ResxLocalizedDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Culture {
get {
return ((string)(this[this.tableResxLocalized.CultureColumn]));
}
set {
this[this.tableResxLocalized.CultureColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Key {
get {
return ((string)(this[this.tableResxLocalized.KeyColumn]));
}
set {
this[this.tableResxLocalized.KeyColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Value {
get {
try {
return ((string)(this[this.tableResxLocalized.ValueColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'ResxLocalized\' is DBNull.", e);
}
}
set {
this[this.tableResxLocalized.ValueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int Id {
get {
return ((int)(this[this.tableResxLocalized.IdColumn]));
}
set {
this[this.tableResxLocalized.IdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int ParentId {
get {
try {
return ((int)(this[this.tableResxLocalized.ParentIdColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ParentId\' in table \'ResxLocalized\' is DBNull.", e);
}
}
set {
this[this.tableResxLocalized.ParentIdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string ParentFileFullName {
get {
try {
return ((string)(this[this.tableResxLocalized.ParentFileFullNameColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ParentFileFullName\' in table \'ResxLocalized\' is DBNull.", e);
}
}
set {
this[this.tableResxLocalized.ParentFileFullNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool Read {
get {
return ((bool)(this[this.tableResxLocalized.ReadColumn]));
}
set {
this[this.tableResxLocalized.ReadColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsValueNull() {
return this.IsNull(this.tableResxLocalized.ValueColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetValueNull() {
this[this.tableResxLocalized.ValueColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsParentIdNull() {
return this.IsNull(this.tableResxLocalized.ParentIdColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetParentIdNull() {
this[this.tableResxLocalized.ParentIdColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsParentFileFullNameNull() {
return this.IsNull(this.tableResxLocalized.ParentFileFullNameColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetParentFileFullNameNull() {
this[this.tableResxLocalized.ParentFileFullNameColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class ResxFilesMasterRow : global::System.Data.DataRow {
private ResxFilesMasterDataTable tableResxFilesMaster;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal ResxFilesMasterRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableResxFilesMaster = ((ResxFilesMasterDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int Id {
get {
return ((int)(this[this.tableResxFilesMaster.IdColumn]));
}
set {
this[this.tableResxFilesMaster.IdColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string FileSource {
get {
try {
return ((string)(this[this.tableResxFilesMaster.FileSourceColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'FileSource\' in table \'ResxFilesMaster\' is DBNull.", e);
}
}
set {
this[this.tableResxFilesMaster.FileSourceColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsFileSourceNull() {
return this.IsNull(this.tableResxFilesMaster.FileSourceColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetFileSourceNull() {
this[this.tableResxFilesMaster.FileSourceColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class ResxRowChangeEvent : global::System.EventArgs {
private ResxRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRowChangeEvent(ResxRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class ResxLocalizedRowChangeEvent : global::System.EventArgs {
private ResxLocalizedRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRowChangeEvent(ResxLocalizedRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxLocalizedRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class ResxFilesMasterRowChangeEvent : global::System.EventArgs {
private ResxFilesMasterRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterRowChangeEvent(ResxFilesMasterRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ResxFilesMasterRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591
\ No newline at end of file
... ...
namespace Resx2Xls {
public partial class ResxData {
}
}
... ...
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<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">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="ResxData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="ResxData" msprop:Generator_UserDSName="ResxData">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<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">
<xs:complexType>
<xs:sequence>
<xs:element name="FileSource" msprop:Generator_ColumnVarNameInTable="columnFileSource" msprop:Generator_ColumnPropNameInRow="FileSource" msprop:Generator_ColumnPropNameInTable="FileSourceColumn" msprop:Generator_UserColumnName="FileSource" type="xs:string" />
<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" />
<xs:element name="Key" msprop:Generator_ColumnVarNameInTable="columnKey" msprop:Generator_ColumnPropNameInRow="Key" msprop:Generator_ColumnPropNameInTable="KeyColumn" msprop:Generator_UserColumnName="Key" type="xs:string" />
<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" />
<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" />
</xs:sequence>
</xs:complexType>
</xs:element>
<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">
<xs:complexType>
<xs:sequence>
<xs:element name="Culture" msprop:Generator_ColumnVarNameInTable="columnCulture" msprop:Generator_ColumnPropNameInRow="Culture" msprop:Generator_ColumnPropNameInTable="CultureColumn" msprop:Generator_UserColumnName="Culture" type="xs:string" />
<xs:element name="Key" msprop:Generator_ColumnVarNameInTable="columnKey" msprop:Generator_ColumnPropNameInRow="Key" msprop:Generator_ColumnPropNameInTable="KeyColumn" msprop:Generator_UserColumnName="Key" type="xs:string" />
<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" />
<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" />
<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" />
<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" />
<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" />
</xs:sequence>
</xs:complexType>
</xs:element>
<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">
<xs:complexType>
<xs:sequence>
<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" />
<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" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Resx" />
<xs:field xpath="mstns:Id" />
</xs:unique>
<xs:unique name="Constraint2">
<xs:selector xpath=".//mstns:Resx" />
<xs:field xpath="mstns:Key" />
<xs:field xpath="mstns:FileDestination" />
</xs:unique>
<xs:unique name="Constraint3">
<xs:selector xpath=".//mstns:Resx" />
<xs:field xpath="mstns:Key" />
<xs:field xpath="mstns:FileSource" />
</xs:unique>
<xs:unique name="ResxLocalized_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ResxLocalized" />
<xs:field xpath="mstns:Id" />
</xs:unique>
<xs:unique name="ResxFilesMaster_Constraint1" msdata:ConstraintName="Constraint1">
<xs:selector xpath=".//mstns:ResxFilesMaster" />
<xs:field xpath="mstns:Id" />
</xs:unique>
</xs:element>
</xs:schema>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<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">
<Shapes>
<Shape ID="DesignTable:Resx" ZOrder="3" X="244" Y="92" Height="144" Width="162" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="24" SplitterPosition="140" />
<Shape ID="DesignTable:ResxLocalized" ZOrder="2" X="474" Y="95" Height="201" Width="163" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:ResxFilesMaster" ZOrder="1" X="50" Y="93" Height="87" Width="167" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
</Shapes>
<Connectors />
</DiagramLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Resx2Xls.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<Resx2Xls.Properties.Settings>
<setting name="FolderPath" serializeAs="String">
<value />
</setting>
<setting name="ExcludeList" serializeAs="String">
<value>.Name;.Parent;.ZOrder;.Type</value>
</setting>
<setting name="CultureList" serializeAs="String">
<value>it-IT;en-US;fr-FR;de-DE;es-ES</value>
</setting>
<setting name="FolderNamespaceNaming" serializeAs="String">
<value>True</value>
</setting>
</Resx2Xls.Properties.Settings>
</userSettings>
</configuration>
\ No newline at end of file
... ...