2 Commits

3 changed files with 5 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ namespace Txt2Bib
if (dataObject.ContainsFileDropList()) if (dataObject.ContainsFileDropList())
{ {
// Clear values // Clear values
DropArea.Text = string.Empty; if (DropArea.Text == InitialDropText) DropArea.Text = string.Empty;
// Process file names // Process file names
var fileNames = dataObject.GetFileDropList(); var fileNames = dataObject.GetFileDropList();
@@ -65,7 +65,7 @@ namespace Txt2Bib
bd.Append(fileName + "\n"); bd.Append(fileName + "\n");
} }
// Set text // Set text
DropArea.Text = bd.ToString(); DropArea.Text += bd.ToString();
} }
} }
@@ -89,6 +89,7 @@ namespace Txt2Bib
private void GoBtn_Click(object sender, RoutedEventArgs e) private void GoBtn_Click(object sender, RoutedEventArgs e)
{ {
Execute(); Execute();
MessageBox.Show("File BibTeX generato correttamente.", "Success", MessageBoxButton.OK, MessageBoxImage.Information);
} }
private void CopyDebug_Click(object sender, RoutedEventArgs e) private void CopyDebug_Click(object sender, RoutedEventArgs e)

View File

@@ -15,7 +15,7 @@ namespace Txt2Bib
/// </summary> /// </summary>
public class Text2Bib public class Text2Bib
{ {
private string[] _citTypes = { "J", "B", "C", "P" }; private readonly string[] _citTypes = { "J", "B", "C", "P" };
/// <summary> /// <summary>
/// Generate single .bib file from input text files /// Generate single .bib file from input text files

View File

@@ -5,7 +5,7 @@
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<Version>0.1.2</Version> <Version>0.1.5</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>