RhSolutions-AddIn/src/Interface/AbstractBar.cs

25 lines
548 B
C#
Raw Normal View History

using ExcelDna.Integration;
using Microsoft.Office.Interop.Excel;
2022-04-01 17:55:36 +03:00
using System;
2022-02-04 09:17:12 +03:00
2022-12-19 20:25:35 +03:00
namespace RhSolutions.Interface
2022-02-04 09:17:12 +03:00
{
2022-04-01 17:55:36 +03:00
internal abstract class AbstractBar : IDisposable
2022-02-04 09:17:12 +03:00
{
protected Application Excel = AddIn.Excel;
public abstract void Update();
[ExcelFunction]
public static void ResetStatusBar()
{
AddIn.Excel.StatusBar = false;
}
2022-04-01 17:55:36 +03:00
public void Dispose()
{
AddIn.Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "ResetStatusBar");
}
2022-02-04 09:17:12 +03:00
}
}