From 46d4b481f814b932c9df2e80f2c3fe24f80aa83b Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Thu, 22 Sep 2016 11:41:43 +0200 Subject: [PATCH 1/5] Created WPF project --- XLSX2RESW.sln | 12 +- XLSX2RESW/App.config | 10 +- XLSX2RESW/App.xaml | 9 + XLSX2RESW/App.xaml.cs | 17 ++ XLSX2RESW/JProject.cs | 20 --- XLSX2RESW/MainWindow.xaml | 12 ++ XLSX2RESW/MainWindow.xaml.cs | 28 +++ XLSX2RESW/Program.cs | 194 --------------------- XLSX2RESW/Properties/AssemblyInfo.cs | 53 ++++-- XLSX2RESW/Properties/Resources.Designer.cs | 104 ++++------- XLSX2RESW/Properties/Resources.resx | 23 +-- XLSX2RESW/Properties/Settings.settings | 4 +- XLSX2RESW/Resources/resw_end.txt | 1 - XLSX2RESW/Resources/resw_start.txt | 60 ------- XLSX2RESW/Resources/resw_value.txt | 3 - XLSX2RESW/XLSX2RESW.csproj | 113 +++++------- XLSX2RESW/icon.ico | Bin 11374 -> 0 bytes XLSX2RESW/packages.config | 5 - 18 files changed, 195 insertions(+), 473 deletions(-) create mode 100644 XLSX2RESW/App.xaml create mode 100644 XLSX2RESW/App.xaml.cs delete mode 100644 XLSX2RESW/JProject.cs create mode 100644 XLSX2RESW/MainWindow.xaml create mode 100644 XLSX2RESW/MainWindow.xaml.cs delete mode 100644 XLSX2RESW/Program.cs delete mode 100644 XLSX2RESW/Resources/resw_end.txt delete mode 100644 XLSX2RESW/Resources/resw_start.txt delete mode 100644 XLSX2RESW/Resources/resw_value.txt delete mode 100644 XLSX2RESW/icon.ico delete mode 100644 XLSX2RESW/packages.config diff --git a/XLSX2RESW.sln b/XLSX2RESW.sln index c3fdcf5..14f55b2 100644 --- a/XLSX2RESW.sln +++ b/XLSX2RESW.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.25123.0 +VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLSX2RESW", "XLSX2RESW\XLSX2RESW.csproj", "{9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XLSX2RESW", "XLSX2RESW\XLSX2RESW.csproj", "{72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,10 +11,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263}.Release|Any CPU.Build.0 = Release|Any CPU + {72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/XLSX2RESW/App.config b/XLSX2RESW/App.config index 45a2cc5..8324aa6 100644 --- a/XLSX2RESW/App.config +++ b/XLSX2RESW/App.config @@ -1,14 +1,6 @@ - + - - - - - - - - \ No newline at end of file diff --git a/XLSX2RESW/App.xaml b/XLSX2RESW/App.xaml new file mode 100644 index 0000000..6a42916 --- /dev/null +++ b/XLSX2RESW/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/XLSX2RESW/App.xaml.cs b/XLSX2RESW/App.xaml.cs new file mode 100644 index 0000000..34cdb30 --- /dev/null +++ b/XLSX2RESW/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace XLSX2RESW +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/XLSX2RESW/JProject.cs b/XLSX2RESW/JProject.cs deleted file mode 100644 index f20f8c5..0000000 --- a/XLSX2RESW/JProject.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace XLSX2RESW -{ - public class JProject - { - public string code { get; set; } - public List values { get; set; } - } - - public class JValues - { - public string id { get; set; } - public string value { get; set; } - } -} diff --git a/XLSX2RESW/MainWindow.xaml b/XLSX2RESW/MainWindow.xaml new file mode 100644 index 0000000..2084c64 --- /dev/null +++ b/XLSX2RESW/MainWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/XLSX2RESW/MainWindow.xaml.cs b/XLSX2RESW/MainWindow.xaml.cs new file mode 100644 index 0000000..6d9d8e2 --- /dev/null +++ b/XLSX2RESW/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace XLSX2RESW +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/XLSX2RESW/Program.cs b/XLSX2RESW/Program.cs deleted file mode 100644 index 987d6ca..0000000 --- a/XLSX2RESW/Program.cs +++ /dev/null @@ -1,194 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using Excel; - -namespace XLSX2RESW -{ - static class Program - { - private static string filePath = null; - private static string supportedExtension = "xlsx"; - private static string outputFileName = "Resources.resw"; - private static string suffixOutputFileName = "_XLSX2RESW"; - - [STAThread] - static void Main(string[] args) - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - - try - { - //check args - if(args.Length == 1) - { - filePath = args[0]; - - //check if item dropped is a file - if(!File.GetAttributes(filePath).HasFlag(FileAttributes.Directory)) - { - //check if file is a .csv - if(Path.GetExtension(filePath) == "." + supportedExtension) - { - string folderPath = Path.GetDirectoryName(filePath); - - List myoutput = ReadFile(); - - //elaborate file - string outputFolder = folderPath + "\\" + Path.GetFileNameWithoutExtension(filePath) + suffixOutputFileName; - - if(!Directory.Exists(outputFolder)) - { - Directory.CreateDirectory(outputFolder); - - foreach(var items in myoutput) - { - Directory.CreateDirectory(outputFolder + "\\" + items.code); - - File.AppendAllText(outputFolder + "\\" + items.code + "\\" + outputFileName, Properties.Resources.resw_start); - - foreach(var item in items.values) - { - File.AppendAllText(outputFolder + "\\" + items.code + "\\" + outputFileName, "\n" + String.Format(Properties.Resources.resw_value, item.id, item.value)); - } - - File.AppendAllText(outputFolder + "\\" + items.code + "\\" + outputFileName, "\n" + Properties.Resources.resw_end); - } - - //DONE! - } - else - { - MessageBox.Show("The " + Path.GetFileNameWithoutExtension(filePath) + suffixOutputFileName + " folder already exist.\nPlease delete it and retry.", "Error"); - } - } - else - { - MessageBox.Show("This application only supports drag & drop of 1 " + supportedExtension + " file!", "Error"); - } - } - else - { - MessageBox.Show("This application only supports drag & drop of 1 " + supportedExtension + " file!", "Error"); - } - } - else - { - MessageBox.Show("This application only supports drag & drop of 1 " + supportedExtension + " file!", "Error"); - } - - } - catch(Exception ex) - { - switch(ex.HResult) - { - case -2147024864: - MessageBox.Show("Please close your xlsx file from excel first!","Error"); - break; - - default: - MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace, "Exception " + ex.HResult); - Debug.WriteLine(ex.Message + "\n\n" + ex.StackTrace, "Exception " + ex.HResult); - break; - } - - } - - //exit - Application.Exit(); - } - - private static List ReadFile() - { - //open xlsx file - FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read); - IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream); - DataSet result = excelReader.AsDataSet(); - - //get total languages - int totalLanguages = GetTotalLanguages(result); - - //get total rows - int totalRows = GetTotalRows(result); - - //output to return - List projects = new List(); - - //iterate languages - for(int i = 1; i <= totalLanguages; i++) - { - string project_code = ""; - List project_values = new List(); - - - project_code = result.Tables[0].Rows[1][i].ToString(); - for(int j = 2; j < totalRows; j++) - { - project_values.Add(new JValues() - { - id = FixID(result.Tables[0].Rows[j][0].ToString()), - value = FixValue(result.Tables[0].Rows[j][i].ToString()) - }); - } - - projects.Add(new JProject() { code = project_code, values = project_values }); - } - - excelReader.Close(); - - return projects; - } - - private static int GetTotalRows(DataSet result) - { - int rows = 0; - - foreach(DataRow item in result.Tables[0].Rows) - { - var cell = item[0].ToString(); - - if(cell != null && cell != "") - { - rows++; - } - } - - return rows; - } - - private static int GetTotalLanguages(DataSet result) - { - int languages = 0; - - foreach(DataColumn item in result.Tables[0].Columns) - { - var cell = result.Tables[0].Rows[1][item].ToString(); - - if(cell != null && cell != "") - { - languages++; - } - } - - return languages - 1; - } - - private static string FixID(string id) - { - return id.Replace("\n", "").Replace("\"", "").Replace("&", "&").Replace(" ", "_"); - } - - private static string FixValue(string value) - { - return value.Replace("&", "&"); - } - - } -} diff --git a/XLSX2RESW/Properties/AssemblyInfo.cs b/XLSX2RESW/Properties/AssemblyInfo.cs index b5d40d2..6319505 100644 --- a/XLSX2RESW/Properties/AssemblyInfo.cs +++ b/XLSX2RESW/Properties/AssemblyInfo.cs @@ -1,10 +1,12 @@ using System.Reflection; +using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Windows; -// Le informazioni generali relative a un assembly sono controllate dal seguente -// set di attributi. Modificare i valori di questi attributi per modificare le informazioni -// associate a un assembly. +// 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("XLSX2RESW")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] @@ -14,23 +16,40 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili -// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da -// COM, impostare su true l'attributo ComVisible per tale tipo. +// 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)] -// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi -[assembly: Guid("9da5c8e7-60ac-43de-a1b9-4a78f2e7c263")] +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. -// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori: +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// Version information for an assembly consists of the following four values: // -// Versione principale -// Versione secondaria -// Numero di build -// Revisione +// Major Version +// Minor Version +// Build Number +// Revision // -// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build -// usando l'asterisco '*' come illustrato di seguito: +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/XLSX2RESW/Properties/Resources.Designer.cs b/XLSX2RESW/Properties/Resources.Designer.cs index f2e9b7d..e290760 100644 --- a/XLSX2RESW/Properties/Resources.Designer.cs +++ b/XLSX2RESW/Properties/Resources.Designer.cs @@ -1,101 +1,71 @@ //------------------------------------------------------------------------------ // -// Il codice è stato generato da uno strumento. -// Versione runtime:4.0.30319.42000 +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // -// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se -// il codice viene rigenerato. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace XLSX2RESW.Properties { - using System; - - +namespace XLSX2RESW.Properties +{ + + /// - /// Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via. + /// A strongly-typed resource class, for looking up localized strings, etc. /// - // Questa classe è stata generata automaticamente dalla classe StronglyTypedResourceBuilder. - // tramite uno strumento quale ResGen o Visual Studio. - // Per aggiungere o rimuovere un membro, modificare il file con estensione ResX ed eseguire nuovamente ResGen - // con l'opzione /str oppure ricompilare il progetto VS. + // 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 { - + 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() { + internal Resources() + { } - + /// - /// Restituisce l'istanza di ResourceManager nella cache utilizzata da questa classe. + /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if((resourceMan == null)) + { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XLSX2RESW.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } - + /// - /// Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte le - /// ricerche di risorse eseguite utilizzando questa classe di risorse fortemente tipizzata. + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { + internal static global::System.Globalization.CultureInfo Culture + { + get + { return resourceCulture; } - set { + set + { resourceCulture = value; } } - - /// - /// Cerca una stringa localizzata simile a </root>. - /// - internal static string resw_end { - get { - return ResourceManager.GetString("resw_end", resourceCulture); - } - } - - /// - /// Cerca una stringa localizzata simile a <?xml version="1.0" encoding="utf-8"?> - ///<root> - /// <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> - /// [stringa troncata]";. - /// - internal static string resw_start { - get { - return ResourceManager.GetString("resw_start", resourceCulture); - } - } - - /// - /// Cerca una stringa localizzata simile a <data name="{0}" xml:space="preserve"> - /// <value>{1}</value> - /// </data>. - /// - internal static string resw_value { - get { - return ResourceManager.GetString("resw_value", resourceCulture); - } - } } } diff --git a/XLSX2RESW/Properties/Resources.resx b/XLSX2RESW/Properties/Resources.resx index 09f0d32..af7dbeb 100644 --- a/XLSX2RESW/Properties/Resources.resx +++ b/XLSX2RESW/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : System.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,7 +60,6 @@ : and then encoded with base64 encoding. --> - @@ -69,10 +68,9 @@ - + - @@ -87,10 +85,9 @@ - + - @@ -112,19 +109,9 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ..\Resources\resw_end.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 - - - ..\Resources\resw_start.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 - - - ..\Resources\resw_value.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 - \ No newline at end of file diff --git a/XLSX2RESW/Properties/Settings.settings b/XLSX2RESW/Properties/Settings.settings index 3964565..033d7a5 100644 --- a/XLSX2RESW/Properties/Settings.settings +++ b/XLSX2RESW/Properties/Settings.settings @@ -1,7 +1,7 @@  - + - + \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_end.txt b/XLSX2RESW/Resources/resw_end.txt deleted file mode 100644 index d4e529d..0000000 --- a/XLSX2RESW/Resources/resw_end.txt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_start.txt b/XLSX2RESW/Resources/resw_start.txt deleted file mode 100644 index 0950135..0000000 --- a/XLSX2RESW/Resources/resw_start.txt +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_value.txt b/XLSX2RESW/Resources/resw_value.txt deleted file mode 100644 index 4070b5a..0000000 --- a/XLSX2RESW/Resources/resw_value.txt +++ /dev/null @@ -1,3 +0,0 @@ - - {1} - \ No newline at end of file diff --git a/XLSX2RESW/XLSX2RESW.csproj b/XLSX2RESW/XLSX2RESW.csproj index fb01989..482b434 100644 --- a/XLSX2RESW/XLSX2RESW.csproj +++ b/XLSX2RESW/XLSX2RESW.csproj @@ -4,29 +4,16 @@ Debug AnyCPU - {9DA5C8E7-60AC-43DE-A1B9-4A78F2E7C263} + {72AE7E4D-F197-422B-A9F3-0D7C27FA4FDB} WinExe Properties XLSX2RESW XLSX2RESW v4.6 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 true - false - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.2.0.0 - false - true AnyCPU @@ -47,83 +34,67 @@ prompt 4 - - icon.ico - - - ..\packages\ExcelDataReader.2.1.2.3\lib\net45\Excel.dll - True - False - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - True - + + + - - - - - - + + 4.0 + + + + - - - - - ResXFileCodeGenerator - Resources.Designer.cs + + MSBuild:Compile Designer - + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + True - Resources.resx True + Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - True Settings.settings True + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + - - - - - - - - - - - - - - - False - Microsoft .NET Framework 4.6 %28x86 e x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,19 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\resw_end.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + + ..\Resources\resw_start.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + + ..\Resources\resw_value.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_end.txt b/XLSX2RESW/Resources/resw_end.txt new file mode 100644 index 0000000..d4e529d --- /dev/null +++ b/XLSX2RESW/Resources/resw_end.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_start.txt b/XLSX2RESW/Resources/resw_start.txt new file mode 100644 index 0000000..0950135 --- /dev/null +++ b/XLSX2RESW/Resources/resw_start.txt @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/XLSX2RESW/Resources/resw_value.txt b/XLSX2RESW/Resources/resw_value.txt new file mode 100644 index 0000000..4070b5a --- /dev/null +++ b/XLSX2RESW/Resources/resw_value.txt @@ -0,0 +1,3 @@ + + {1} + \ No newline at end of file diff --git a/XLSX2RESW/Windows/Home.xaml b/XLSX2RESW/Windows/Home.xaml index 07e992d..55a9466 100644 --- a/XLSX2RESW/Windows/Home.xaml +++ b/XLSX2RESW/Windows/Home.xaml @@ -6,43 +6,32 @@ xmlns:local="clr-namespace:XLSX2RESW.Windows" xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit" mc:Ignorable="d" - Title="XLSX2RESW" Height="500" Width="500"> + Title="XLSX2RESW" Height="200" Width="300" Icon="/XLSX2RESW;component/icon.ico" ResizeMode="CanMinimize"> - - - - - - - - - - - - - - - - - - - - - - - -