aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-20 08:31:38 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-20 08:31:38 +0300
commit84137845fd52083431088e63bfdd00913d9efdcd (patch)
treeda3891b217c157eb2eff1a2b74f872a49fc39375 /src
parent3c7e24ecfe34291e551046bf5c8f1d95ea37af7e (diff)
Statusbar reset method edit
Diffstat (limited to 'src')
-rw-r--r--src/Interface/AbstractBar.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Interface/AbstractBar.cs b/src/Interface/AbstractBar.cs
index 9a06e03..12327e5 100644
--- a/src/Interface/AbstractBar.cs
+++ b/src/Interface/AbstractBar.cs
@@ -1,6 +1,8 @@
using ExcelDna.Integration;
using Microsoft.Office.Interop.Excel;
using System;
+using System.Threading;
+using System.Threading.Tasks;
namespace RhSolutions.Interface
{
@@ -10,15 +12,14 @@ namespace RhSolutions.Interface
public abstract void Update();
- [ExcelFunction]
- public static void ResetStatusBar()
+ private static void ResetStatusBar()
{
AddIn.Excel.StatusBar = false;
}
public void Dispose()
{
- AddIn.Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "ResetStatusBar");
+ Task.Delay(5000).ContinueWith(t => ResetStatusBar());
}
}
}