Details for a direction button (next/previous) action event.
Inheritance: KryptonPageEventArgs
Exemplo n.º 1
0
 private void kryptonNavigator1_PreviousAction(object sender, DirectionActionEventArgs e)
 {
     AddOutput("PreviousAction");
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 private void kryptonNavigator1_NextAction(object sender, DirectionActionEventArgs e)
 {
     AddOutput("NextAction");
 }