From 82c2bc6ce23fc5658022df486a37451a8254874e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 17 Jan 2024 11:28:24 +0100 Subject: [PATCH] Append additional dropped files (don't clear text area) --- MainWindow.xaml.cs | 4 ++-- Text2Bib.cs | 2 +- Txt2Bib.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 9fe73fc..a4c8fe1 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -55,7 +55,7 @@ namespace Txt2Bib if (dataObject.ContainsFileDropList()) { // Clear values - DropArea.Text = string.Empty; + if (DropArea.Text == InitialDropText) DropArea.Text = string.Empty; // Process file names var fileNames = dataObject.GetFileDropList(); @@ -65,7 +65,7 @@ namespace Txt2Bib bd.Append(fileName + "\n"); } // Set text - DropArea.Text = bd.ToString(); + DropArea.Text += bd.ToString(); } } diff --git a/Text2Bib.cs b/Text2Bib.cs index 9cb163d..3e3e1fc 100644 --- a/Text2Bib.cs +++ b/Text2Bib.cs @@ -15,7 +15,7 @@ namespace Txt2Bib /// public class Text2Bib { - private string[] _citTypes = { "J", "B", "C", "P" }; + private readonly string[] _citTypes = { "J", "B", "C", "P" }; /// /// Generate single .bib file from input text files diff --git a/Txt2Bib.csproj b/Txt2Bib.csproj index bc2cd8b..ef42879 100644 --- a/Txt2Bib.csproj +++ b/Txt2Bib.csproj @@ -5,7 +5,7 @@ net6.0-windows enable true - 0.1.2 + 0.1.4