Details for a direction button (next/previous) action event.
상속: KryptonPageEventArgs
예제 #1
0
 private void kryptonNavigator1_PreviousAction(object sender, DirectionActionEventArgs e)
 {
     AddOutput("PreviousAction");
 }
예제 #2
0
        /// <summary>
        /// Raises and processes the PreviousAction event.
        /// </summary>
        /// <returns>Returns the action that was performed.</returns>
        protected virtual DirectionButtonAction OnPreviousAction()
        {
            DirectionButtonAction dba = DirectionButtonAction.None;

            // Ignore call as view builder is already destructed
            if (!IsDisposed && (_viewBuilder != null))
            {
                // Create the event arguments
                DirectionActionEventArgs e = new DirectionActionEventArgs(SelectedPage,
                                                                          SelectedIndex,
                                                                          Button.PreviousButtonAction);

                if (PreviousAction != null)
                    PreviousAction(this, e);

                // Return the actual action performed
                dba = e.Action;

                // Ask the view to perform requested action on the view
                _viewBuilder.PerformPreviousAction(e.Action, e.Item);
            }

            return dba;
        }
예제 #3
0
 private void kryptonNavigator1_NextAction(object sender, DirectionActionEventArgs e)
 {
     AddOutput("NextAction");
 }