Ejemplo n.º 1
0
        private void GoBack_Click(object sender, RoutedEventArgs e)
        {
            _CurrentItem--;
            if (CurrentItem < 0)
            {
                _CurrentItem = Items.Count - 1;
            }

            DisplayItem(CurrentItem);
            GoBackClicked?.Invoke(this, EventArgs.Empty);
            EitherDirectionClicked?.Invoke(this, EventArgs.Empty);
        }
Ejemplo n.º 2
0
        private void GoForward_Click(object sender, RoutedEventArgs e)
        {
            _CurrentItem++;
            if (CurrentItem >= Items.Count)
            {
                _CurrentItem = 0;
            }

            DisplayItem(CurrentItem);
            GoForwardClicked?.Invoke(this, EventArgs.Empty);
            EitherDirectionClicked?.Invoke(this, EventArgs.Empty);
        }