2022-04-01 17:39:01 +03:00
|
|
|
|
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();
|
2022-04-01 17:39:01 +03:00
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
}
|
|
|
|
|
}
|