diff --git a/src/Libraries/DSOffice/CSVNodes.cs b/src/Libraries/DSOffice/CSVNodes.cs
index 4f4e8c31f52..45b22ff930b 100644
--- a/src/Libraries/DSOffice/CSVNodes.cs
+++ b/src/Libraries/DSOffice/CSVNodes.cs
@@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using DSOffice.Properties;
namespace DSOffice
{
@@ -21,30 +20,20 @@ public static partial class Data
/// write,text,file
public static void ExportCSV(string filePath, object[][] data)
{
- try
+ using (var writer = new StreamWriter(DSCore.IO.FileSystem.AbsolutePath(filePath)))
{
- using (var writer = new StreamWriter(DSCore.IO.FileSystem.AbsolutePath(filePath)))
+ foreach (var line in data)
{
- foreach (var line in data)
+ int count = 0;
+ foreach (var entry in line)
{
- int count = 0;
- foreach (var entry in line)
- {
- writer.Write(entry);
- if (++count < line.Length)
- writer.Write(",");
- }
- writer.WriteLine();
+ writer.Write(entry);
+ if (++count < line.Length)
+ writer.Write(",");
}
+ writer.WriteLine();
}
}
- catch (Exception ex)
- {
- if (ex is DirectoryNotFoundException)
- throw new Exception(Resources.StreamWriterNotFoundException);
- else
- throw;
- }
}
///
diff --git a/src/Libraries/DSOffice/DSOffice.csproj b/src/Libraries/DSOffice/DSOffice.csproj
index 42be58c8adf..d01d11d7444 100644
--- a/src/Libraries/DSOffice/DSOffice.csproj
+++ b/src/Libraries/DSOffice/DSOffice.csproj
@@ -26,11 +26,6 @@
-
- True
- True
- Resources.resx
-
@@ -58,15 +53,6 @@
CoreNodes
-
-
- PublicResXFileCodeGenerator
-
-
- PublicResXFileCodeGenerator
- Resources.Designer.cs
-
-
diff --git a/src/Libraries/DSOffice/Properties/Resources.Designer.cs b/src/Libraries/DSOffice/Properties/Resources.Designer.cs
deleted file mode 100644
index 47b9cffcf65..00000000000
--- a/src/Libraries/DSOffice/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace DSOffice.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- public 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() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- public static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DSOffice.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// 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)]
- public static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- ///
- /// Looks up a localized string similar to The file or directory cannot be found.
- ///
- public static string StreamWriterNotFoundException {
- get {
- return ResourceManager.GetString("StreamWriterNotFoundException", resourceCulture);
- }
- }
- }
-}
diff --git a/src/Libraries/DSOffice/Properties/Resources.en-US.resx b/src/Libraries/DSOffice/Properties/Resources.en-US.resx
deleted file mode 100644
index c09dcdee58b..00000000000
--- a/src/Libraries/DSOffice/Properties/Resources.en-US.resx
+++ /dev/null
@@ -1,123 +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
-
-
- The file or directory cannot be found
-
-
\ No newline at end of file
diff --git a/src/Libraries/DSOffice/Properties/Resources.resx b/src/Libraries/DSOffice/Properties/Resources.resx
deleted file mode 100644
index c09dcdee58b..00000000000
--- a/src/Libraries/DSOffice/Properties/Resources.resx
+++ /dev/null
@@ -1,123 +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
-
-
- The file or directory cannot be found
-
-
\ No newline at end of file