AMPSExcel.ActiveSub.Application_WorkbookBeforeClose C# (CSharp) Method

Application_WorkbookBeforeClose() static private method

static private Application_WorkbookBeforeClose ( Microsoft.Office.Interop.Excel Wb, bool &Cancel ) : void
Wb Microsoft.Office.Interop.Excel
Cancel bool
return void
        void Application_WorkbookBeforeClose(Excel.Workbook Wb, ref bool Cancel)
        {
            if (Wb.Equals(_workbook))
            {
                close();
            }
        }