/// <summary>
        /// Raises the Next Page event
        /// </summary>
        /// <param name="eventArgs"></param>
        protected virtual void OnNextPage(NextPageEventArgs eventArgs)
        {
            EventHandler <NextPageEventArgs> handler = NextPage;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Executes the actions related to NextPage event.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="eventArgs">NextPageEventArgs.</param>
        protected void HandleDisplaySetNextPage(object sender, NextPageEventArgs eventArgs)
        {
            try
            {
                // Return if it is last block
                if (Context.LastBlock)
                {
                    return;
                }

                // Update data.
                UpdateData(false);
            }
            catch (Exception e)
            {
                ScenarioManager.LaunchErrorScenario(e);
            }
        }
        /// <summary>
        /// Executes the actions related to NextPage event.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="eventArgs">NextPageEventArgs.</param>
        protected void HandleDisplaySetNextPage(object sender, NextPageEventArgs eventArgs)
        {
            try
            {
                // Return if it is last block
                if (Context.LastBlock)
                {
                    return;
                }

                // Update data.
                UpdateData(false);
            }
            catch (Exception e)
            {
                ScenarioManager.LaunchErrorScenario(e);
            }
        }
        /// <summary>
        /// Raises the Next Page event
        /// </summary>
        /// <param name="eventArgs"></param>
        protected virtual void OnNextPage(NextPageEventArgs eventArgs)
        {
            EventHandler<NextPageEventArgs> handler = NextPage;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }