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.cs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/Interface/ProgressBar.cs b/src/Interface/ProgressBar.cs
deleted file mode 100644
index 7217d4e..0000000
--- a/src/Interface/ProgressBar.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-namespace RhSolutions.Interface
-{
- internal class ProgressBar : StatusbarBase
- {
- private double CurrentProgress { get; set; }
- private readonly double TaskWeight;
- private readonly string Message;
-
- public ProgressBar(string message, int weight)
- {
- Message = message;
- TaskWeight = weight;
- CurrentProgress = 0;
- }
-
- public override void Update()
- {
- double percent = (++CurrentProgress / TaskWeight) * 100;
- Excel.StatusBar = $"{Message} Выполнено {percent:#.#} %";
- }
- }
-}