예제 #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);
        }
        public ArchiveViewWindow(ShellObject loc, bool IsPreviewPaneEnabled, bool IsInfoPaneEnabled)
        {
            InitializeComponent();

            archive = loc;

            this.Title = "View Archive - " + archive.GetDisplayName(DisplayNameType.Default);

            ShellVView.Child = Explorer;

            Explorer.NavigationOptions.PaneVisibility.Commands         = PaneVisibilityState.Hide;
            Explorer.NavigationOptions.PaneVisibility.CommandsOrganize = PaneVisibilityState.Hide;
            Explorer.NavigationOptions.PaneVisibility.CommandsView     = PaneVisibilityState.Hide;
            Explorer.NavigationOptions.PaneVisibility.Preview          =
                IsPreviewPaneEnabled ? PaneVisibilityState.Show : PaneVisibilityState.Hide;
            Explorer.NavigationOptions.PaneVisibility.Details =
                IsInfoPaneEnabled ? PaneVisibilityState.Show : PaneVisibilityState.Hide;
            Explorer.NavigationOptions.PaneVisibility.Navigation = PaneVisibilityState.Hide;

            Explorer.ContentOptions.FullRowSelect = true;
            Explorer.ContentOptions.CheckSelect   = false;
            Explorer.ContentOptions.ViewMode      = ExplorerBrowserViewMode.Tile;

            Explorer.NavigationComplete += new EventHandler <NavigationCompleteEventArgs>(Explorer_NavigationComplete);
            Explorer.Navigate(loc);
        }
예제 #3
0
        void Klasor(string yol)
        {
            this.Controls.Clear();
            (this.Parent as Control).Text = "Dosya Gezgini";
            ExplorerBrowser ee = new ExplorerBrowser();

            ee.Dock = DockStyle.Fill;
            ee.Navigate(Microsoft.WindowsAPICodePack.Shell.ShellObject.FromParsingName(yol));
            this.Controls.Add(ee);
        }
예제 #4
0
 private void LoadPath(ExplorerBrowser eb, string path)
 {
     try {
         if (System.IO.Directory.Exists(path))
         {
             eb.Navigate(ShellFileSystemFolder.FromFolderPath(path));
         }
         else
         {
             //スルー
         }
     } catch (COMException) {
         MessageBox.Show(AppObject.GetMsg(AppObject.Msg.ERR_INVALID_PATH),
                         AppObject.GetMsg(AppObject.Msg.TITLE_ERROR), MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #5
0
        private void UpwardNavigation(ExplorerBrowser eb)
        {
            string path = eb.NavigationLog.CurrentLocation.ParsingName;

            if (System.IO.Directory.Exists(path))
            {
                var parent = System.IO.Directory.GetParent(path);
                if (parent != null)
                {
                    eb.Navigate(ShellObject.FromParsingName(parent.FullName));
                }
            }
            else
            {
                eb.NavigateLogLocation(NavigationLogDirection.Backward);
            }
        }
예제 #6
0
 private void LoadPath(ExplorerBrowser eb, ShellObject so)
 {
     eb.Navigate(so);
 }