private void OnWorkbookClosed(WorkbookClosedEventArgs e)
        {
            var handler = WorkbookClosed;

            if (handler != null)
                handler(this, e);
        }
Exemplo n.º 2
0
        private void OnWorkbookClosed(WorkbookClosedEventArgs e)
        {
            var handler = WorkbookClosed;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        private void ApplicationWorkbookActivate(Workbook wb)
        {
            // A workbook was closed if a request is pending and the workbook count decreased
            var wasWorkbookClosed = PendingRequest != null
                                    && Application.Workbooks.Count < PendingRequest.WorkbookCount;

            if (wasWorkbookClosed)
            {
                var args = new WorkbookClosedEventArgs(PendingRequest.Workbook);

                PendingRequest = null;

                OnWorkbookClosed(args);
            }
            else
            {
                PendingRequest = null;
            }
        }
Exemplo n.º 4
0
        private void ApplicationWorkbookActivate(Workbook wb)
        {
            // A workbook was closed if a request is pending and the workbook count decreased
            var wasWorkbookClosed = PendingRequest != null &&
                                    Application.Workbooks.Count < PendingRequest.WorkbookCount;

            if (wasWorkbookClosed)
            {
                var args = new WorkbookClosedEventArgs(PendingRequest.Workbook);

                PendingRequest = null;

                OnWorkbookClosed(args);
            }
            else
            {
                PendingRequest = null;
            }
        }