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();
 }
Ejemplo n.º 3
0
 private void WorkbookBeforeClose(ref bool Cancel)
 {
     ExcelManager.RemoveInstance(Id);
 }