RhSolutions-AddIn/src/Interface/AbstractBar.cs

25 lines
545 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
namespace RehauSku.Interface
{
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
}
}