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-12-20 08:31:38 +03:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
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
|
|
|
|
|
2022-12-20 08:31:38 +03:00
|
|
|
|
private static void ResetStatusBar()
|
2022-04-01 17:39:01 +03:00
|
|
|
|
{
|
|
|
|
|
AddIn.Excel.StatusBar = false;
|
|
|
|
|
}
|
2022-04-01 17:55:36 +03:00
|
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
|
{
|
2022-12-20 08:31:38 +03:00
|
|
|
|
Task.Delay(5000).ContinueWith(t => ResetStatusBar());
|
2022-04-01 17:55:36 +03:00
|
|
|
|
}
|
2022-02-04 09:17:12 +03:00
|
|
|
|
}
|
|
|
|
|
}
|