aboutsummaryrefslogtreecommitdiff
path: root/src/Interface/ProgressBar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface/ProgressBar.cs')
-rw-r--r--src/Interface/ProgressBar.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Interface/ProgressBar.cs b/src/Interface/ProgressBar.cs
index 474bed7..9a0490b 100644
--- a/src/Interface/ProgressBar.cs
+++ b/src/Interface/ProgressBar.cs
@@ -7,9 +7,11 @@ namespace RehauSku.Interface
private Application Excel = AddIn.Excel;
private double CurrentProgress { get; set; }
private readonly double TaskWeight;
+ private readonly string Message;
- public ProgressBar(int weight)
+ public ProgressBar(string message, int weight)
{
+ Message = message;
TaskWeight = weight;
CurrentProgress = 0;
}
@@ -20,7 +22,7 @@ namespace RehauSku.Interface
if (percent < 100)
{
- Excel.StatusBar = $"Выполнено {percent.ToString("#.##")} %";
+ Excel.StatusBar = $"{Message} Выполнено {percent.ToString("#.##")} %";
}
else