Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulfheart committed Jan 14, 2021
1 parent 85eee1e commit 0ad8b2a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions UserInterfaceDesktop/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ private async void Generate_Button_Click(object sender, RoutedEventArgs e)
if (result == true)
{
// Save document
Generate_Button.IsEnabled = false;
Button_Select_Excel_File.IsEnabled = false;
Amount.IsEnabled = false;
string outPutPath = dlg.FileName;
output = outPutPath;
AddToLog($"Einlesen der Exceldatei von {excelPath}");
Expand Down Expand Up @@ -124,6 +127,9 @@ private async void Generate_Button_Click(object sender, RoutedEventArgs e)
AddToLog($"PDF erstellt unter {outPutPath}");
MessageBox.Show($"Vorgang abgeschlossen.\nPDF erstellt unter {outPutPath}");
Progress.Value = 0;
Generate_Button.IsEnabled = true;
Button_Select_Excel_File.IsEnabled = true;
Amount.IsEnabled = true;

}
}
Expand All @@ -135,6 +141,9 @@ private async void Generate_Button_Click(object sender, RoutedEventArgs e)
AddToLog($"Löschen der beschädigten PDF-Datei unter {output}");
File.Delete(output);
MessageBox.Show(ex.Message + "\r");
Generate_Button.IsEnabled = true;
Button_Select_Excel_File.IsEnabled = true;
Amount.IsEnabled = true;
}
}

Expand Down
4 changes: 3 additions & 1 deletion UserInterfaceDesktop/UserInterfaceDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<TargetCulture>de</TargetCulture>
<PublisherName>Alexander Wulf</PublisherName>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>9</ApplicationRevision>
<ApplicationRevision>10</ApplicationRevision>
<ApplicationVersion>0.3.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
Expand All @@ -53,6 +53,8 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>167D3FFD7E0F559442EDA43CDDE264EB7C1798A5</ManifestCertificateThumbprint>
Expand Down
Binary file added docs/Handbuch_Reihentestungstool_Bayern.docx
Binary file not shown.
Binary file added docs/Handbuch_Reihentestungstool_Bayern.pdf
Binary file not shown.

0 comments on commit 0ad8b2a

Please sign in to comment.