Statusbar reset method edit
This commit is contained in:
parent
3c7e24ecfe
commit
84137845fd
@ -1,6 +1,8 @@
|
|||||||
using ExcelDna.Integration;
|
using ExcelDna.Integration;
|
||||||
using Microsoft.Office.Interop.Excel;
|
using Microsoft.Office.Interop.Excel;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace RhSolutions.Interface
|
namespace RhSolutions.Interface
|
||||||
{
|
{
|
||||||
@ -10,15 +12,14 @@ namespace RhSolutions.Interface
|
|||||||
|
|
||||||
public abstract void Update();
|
public abstract void Update();
|
||||||
|
|
||||||
[ExcelFunction]
|
private static void ResetStatusBar()
|
||||||
public static void ResetStatusBar()
|
|
||||||
{
|
{
|
||||||
AddIn.Excel.StatusBar = false;
|
AddIn.Excel.StatusBar = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
AddIn.Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "ResetStatusBar");
|
Task.Delay(5000).ContinueWith(t => ResetStatusBar());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user