Keep ResultBar update 5 seconds long. Turn off save as dialog after tools complete.
This commit is contained in:
parent
4d01a456e3
commit
84eab9425c
@ -1,4 +1,5 @@
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using ExcelDna.Integration;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
|
||||
namespace RehauSku.Interface
|
||||
{
|
||||
@ -7,5 +8,11 @@ namespace RehauSku.Interface
|
||||
protected Application Excel = AddIn.Excel;
|
||||
|
||||
public abstract void Update();
|
||||
|
||||
[ExcelFunction]
|
||||
public static void ResetStatusBar()
|
||||
{
|
||||
AddIn.Excel.StatusBar = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Text;
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace RehauSku.Interface
|
||||
{
|
||||
@ -39,6 +40,7 @@ namespace RehauSku.Interface
|
||||
}
|
||||
|
||||
Excel.StatusBar = sb.ToString();
|
||||
AddIn.Excel.OnTime(DateTime.Now + new TimeSpan(0, 0, 5), "ResetStatusBar");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,9 +50,6 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
FilterByAmount();
|
||||
ResultBar.Update();
|
||||
|
||||
Interface.Dialog.SaveWorkbookAs();
|
||||
ExcelApp.StatusBar = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,9 +24,6 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
FilterByAmount();
|
||||
ResultBar.Update();
|
||||
|
||||
Dialog.SaveWorkbookAs();
|
||||
ExcelApp.StatusBar = false;
|
||||
}
|
||||
}
|
||||
}
|
@ -34,9 +34,6 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
FilterByAmount();
|
||||
ResultBar.Update();
|
||||
|
||||
Interface.Dialog.SaveWorkbookAs();
|
||||
ExcelApp.StatusBar = false;
|
||||
}
|
||||
|
||||
private void GetSelected()
|
||||
|
@ -40,9 +40,6 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
FilterByAmount();
|
||||
ResultBar.Update();
|
||||
|
||||
Dialog.SaveWorkbookAs();
|
||||
ExcelApp.StatusBar = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user