private void kryptonNavigator1_PreviousAction(object sender, DirectionActionEventArgs e) { AddOutput("PreviousAction"); }
/// <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; }
private void kryptonNavigator1_NextAction(object sender, DirectionActionEventArgs e) { AddOutput("NextAction"); }