public void Execute(Arguments arguments)
 {
     try
     {
         ExcelManager.RemoveInstance();
     }
     catch (Exception ex)
     {
         throw new ApplicationException($"Error occured while closing current excel instance. Message: '{ex.Message}'", ex);
     }
 }
 private void WindowDeactivated(Workbook wb, Microsoft.Office.Interop.Excel.Window wn)
 {
     ExcelManager.RemoveInstance(Id);
     Close();
 }
Esempio n. 3
0
 private void WorkbookBeforeClose(ref bool Cancel)
 {
     ExcelManager.RemoveInstance(Id);
 }