31 lines
614 B
C#
31 lines
614 B
C#
#if !NET472
|
|
using System.Runtime.Versioning;
|
|
using RhSolutions;
|
|
using RhSolutions.Models;
|
|
using RhSolutions.Tools;
|
|
#endif
|
|
|
|
|
|
namespace RhSolutions.Tools;
|
|
|
|
#if !NET472
|
|
[SupportedOSPlatform("windows")]
|
|
#endif
|
|
public abstract class StatusbarBase : IDisposable
|
|
{
|
|
protected Application Excel = RhSolutionsAddIn.Excel;
|
|
|
|
[ExcelFunction(IsHidden = true)]
|
|
public static void StatusBarReset()
|
|
{
|
|
RhSolutionsAddIn.Excel.StatusBar = false;
|
|
}
|
|
|
|
public abstract void Update();
|
|
|
|
public void Dispose()
|
|
{
|
|
Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "StatusBarReset");
|
|
}
|
|
}
|