RhSolutions-AddIn/RhSolutions.AddIn/Tools/StatusbarBase.cs

31 lines
614 B
C#
Raw Permalink Normal View History

2023-04-06 08:29:39 +03:00
#if !NET472
using System.Runtime.Versioning;
using RhSolutions;
using RhSolutions.Models;
using RhSolutions.Tools;
#endif
namespace RhSolutions.Tools;
#if !NET472
[SupportedOSPlatform("windows")]
#endif
2023-06-20 07:25:44 +03:00
public abstract class StatusbarBase : IDisposable
2023-04-06 08:29:39 +03:00
{
protected Application Excel = RhSolutionsAddIn.Excel;
2023-06-23 07:33:33 +03:00
[ExcelFunction(IsHidden = true)]
public static void StatusBarReset()
{
RhSolutionsAddIn.Excel.StatusBar = false;
}
2023-04-06 08:29:39 +03:00
public abstract void Update();
public void Dispose()
{
Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "StatusBarReset");
}
}