diff --git a/DocumentTranslation.GUI/MainWindow.xaml b/DocumentTranslation.GUI/MainWindow.xaml
index 2003f0b..8288466 100644
--- a/DocumentTranslation.GUI/MainWindow.xaml
+++ b/DocumentTranslation.GUI/MainWindow.xaml
@@ -59,6 +59,7 @@
+
diff --git a/DocumentTranslation.GUI/MainWindow.xaml.cs b/DocumentTranslation.GUI/MainWindow.xaml.cs
index 908ae7e..eed20b5 100644
--- a/DocumentTranslation.GUI/MainWindow.xaml.cs
+++ b/DocumentTranslation.GUI/MainWindow.xaml.cs
@@ -320,6 +320,7 @@ private void DocumentsTranslateButton_Click(object sender, RoutedEventArgs e)
documentTranslationBusiness.OnFinalResults += DocumentTranslationBusiness_OnFinalResults;
documentTranslationBusiness.OnThereWereErrors += DocumentTranslationBusiness_OnThereWereErrors;
documentTranslationBusiness.OnFileReadError += DocumentTranslationBusiness_OnFileReadError;
+ documentTranslationBusiness.OnHeartBeat += DocumentTranslationBusiness_OnHeartBeat;
List filestotranslate = new();
foreach (var document in ViewModel.FilesToTranslate) filestotranslate.Add(document);
List glossariestouse = new();
@@ -340,6 +341,13 @@ private void DocumentsTranslateButton_Click(object sender, RoutedEventArgs e)
ProgressBar.Value = 3;
}
+ private async void DocumentTranslationBusiness_OnHeartBeat(object sender, EventArgs e)
+ {
+ Heartbeat.Visibility = Visibility.Visible;
+ await Task.Delay(300);
+ Heartbeat.Visibility = Visibility.Hidden;
+ }
+
private void DocumentTranslationBusiness_OnFileReadError(object sender, string e)
{
ProgressBar.Value = 0;
@@ -349,7 +357,6 @@ private void DocumentTranslationBusiness_OnFileReadError(object sender, string e
CancelButton.Visibility = Visibility.Hidden;
translateDocumentsButton.Visibility = Visibility.Visible;
SetTranslateDocumentsButtonStatus();
-
}
private void DocumentTranslationBusiness_OnUploadStart(object sender, EventArgs e)
diff --git a/DocumentTranslation.Setup/Product.wxs b/DocumentTranslation.Setup/Product.wxs
index 3fe7687..973ab9f 100644
--- a/DocumentTranslation.Setup/Product.wxs
+++ b/DocumentTranslation.Setup/Product.wxs
@@ -3,7 +3,7 @@
-
+