Exemple #1
0
        public bool NavigateLog(NavigationLogDirection direction)
        {
            // determine proper index to navigate to
            int locationIndex = 0;

            if (direction == NavigationLogDirection.Backward && CanNavigateBackward)
            {
                locationIndex = (currentLocationIndex - 1);
            }
            else if (direction == NavigationLogDirection.Forward && CanNavigateForward)
            {
                locationIndex = (currentLocationIndex + 1);
            }
            else
            {
                return(false);
            }

            // initiate traversal request
            ShellObject location = _locations[(int)locationIndex];

            pendingNavigation = new PendingNavigation(location, locationIndex);
            parent.Navigate(location);
            return(true);
        }
Exemple #2
0
		/// <summary>
		/// Navigates within the navigation log. This does not change the set of 
		/// locations in the navigation log.
		/// </summary>
		/// <param name="direction">Forward of Backward</param>
		/// <returns>True if the navigation succeeded, false if it failed for any reason.</returns>
		public bool NavigateLogLocation(NavigationLogDirection direction) {
			return NavigationLog.NavigateLog(direction);
		}
Exemple #3
0
        internal bool NavigateLog(NavigationLogDirection direction)
        {
            // determine proper index to navigate to
            int locationIndex = 0;
            if (direction == NavigationLogDirection.Backward && CanNavigateBackward)
            {
                locationIndex = (currentLocationIndex - 1);
            }
            else if (direction == NavigationLogDirection.Forward && CanNavigateForward)
            {
                locationIndex = (currentLocationIndex + 1);
            }
            else
            {
                return false;
            }

            // initiate traversal request
            ShellObject location = _locations[(int)locationIndex];
            pendingNavigation = new PendingNavigation(location, locationIndex);
            parent.Navigate(location);
            return true;
        }
 /// <summary>
 /// Navigates within the navigation log. This does not change the set of
 /// locations in the navigation log.
 /// </summary>
 /// <param name="direction">Forward of Backward</param>
 /// <returns>True if the navigation succeeded, false if it failed for any reason.</returns>
 public bool NavigateLogLocation(NavigationLogDirection direction)
 {
     return(NavigationLog.NavigateLog(direction));
 }