/// <summary>
        /// Raises the Previous Page event
        /// </summary>
        /// <param name="eventArgs"></param>
        protected virtual void OnPreviousPage(PreviousPageEventArgs eventArgs)
        {
            EventHandler <PreviousPageEventArgs> handler = PreviousPage;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Executes the actions related to PreviousPage event.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="eventArgs">PreviousPageEventArgs.</param>
        protected void HandleDisplaySetPreviousPage(object sender, PreviousPageEventArgs eventArgs)
        {
            try
            {
                // Pops the top item of the Oids stack
                if (Context.LastOids.Count > 0)
                {
                    Context.LastOids.Pop();
                }

                // Update data
                UpdateData(false);
            }
            catch (Exception e)
            {
                ScenarioManager.LaunchErrorScenario(e);
            }
        }
        /// <summary>
        /// Executes the actions related to PreviousPage event.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="eventArgs">PreviousPageEventArgs.</param>
        protected void HandleDisplaySetPreviousPage(object sender, PreviousPageEventArgs eventArgs)
        {
            try
            {
                // Pops the top item of the Oids stack
                if (Context.LastOids.Count > 0)
                {
                    Context.LastOids.Pop();
                }

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

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