コード例 #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);
        }
コード例 #2
0
ファイル: ExplorerBrowser.cs プロジェクト: GodLesZ/svn-dump
		/// <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);
		}
コード例 #3
0
ファイル: NavigationLog.cs プロジェクト: mlnlover11/XMail
        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;
        }
コード例 #4
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));
 }