RhSolutions-AddIn/RhSolutions.AddIn/Models/StatusbarBase.cs

19 lines
418 B
C#
Raw Normal View History

using Microsoft.Office.Interop.Excel;
2022-12-20 12:41:46 +03:00
using RhSolutions.AddIn;
2022-04-01 17:55:36 +03:00
using System;
2022-02-04 09:17:12 +03:00
2022-12-20 12:27:47 +03:00
namespace RhSolutions.Models
2022-02-04 09:17:12 +03:00
{
2022-12-20 11:53:55 +03:00
internal abstract class StatusbarBase : IDisposable
2022-02-04 09:17:12 +03:00
{
2022-12-20 12:27:47 +03:00
protected Application Excel = RhSolutionsAddIn.Excel;
2022-02-04 09:17:12 +03:00
public abstract void Update();
2022-04-01 17:55:36 +03:00
public void Dispose()
{
2022-12-28 15:28:29 +03:00
Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "_ResetStatusBar");
2022-04-01 17:55:36 +03:00
}
2022-02-04 09:17:12 +03:00
}
}