9 changed files
BExplorer/BetterExplorer | ||
_MainWindow | ||
MainWindow_Tabs.cs | ||
MainWindow.xaml | ||
MainWindow.xaml.cs | ||
Shell | ||
Interop | ||
Shell32.cs | ||
ShellItem.cs | ||
ShellTreeViewEx.cs | ||
ShellViewEx.cs | ||
TabControl | ||
TabControl.cs | ||
WpfDocumentPreviewer | ||
PreviewControl.xaml.cs | ||
MainWindow_Tabs.cs
/BExplorer/BetterExplorer/_MainWindow/MainWindow_Tabs.cs/BExplorer/BetterExplorer/_MainWindow/MainWindow_Tabs.cs
MainWindow.xaml
/BExplorer/BetterExplorer/MainWindow.xaml-1+1/BExplorer/BetterExplorer/MainWindow.xaml
Add comment 1636 Visibility="Visible">
Add comment 1637 <Ribbon:RibbonGroupBox x:Name="Compress"
Add comment 1638 Header="{DynamicResource tgCompressCP}"
Add comment 1639 Minus Ribbon:KeyTip.Keys="C">
Add comment 1639 Plus Ribbon:KeyTip.Keys="C" Visibility="Collapsed">
Add comment 1640 <Ribbon:Button x:Name="btnCreateArchive"
Add comment 1641 Click="btnCreateArchive_Click"
Add comment 1642 Header="{DynamicResource btnMakeArchiveCP}"
MainWindow.xaml.cs
/BExplorer/BetterExplorer/MainWindow.xaml.cs-6+12/BExplorer/BetterExplorer/MainWindow.xaml.cs
Add comment 529 #endregion
Add comment 530
Add comment 531 #region Archive Contextual Tab
Add comment 532 Minus ctgArchive.Visibility = BooleanToVisibiliy(selectedItemsCount == 1 && Archives.Contains(Path.GetExtension(selectedItem.ParsingName).ToLowerInvariant()));
Add comment 532 Plus ctgArchive.Visibility = System.Windows.Visibility.Collapsed; //TODO: Restore this: BooleanToVisibiliy(selectedItemsCount == 1 && Archives.Contains(Path.GetExtension(selectedItem.ParsingName).ToLowerInvariant()));
Add comment 533 if (asArchive && ctgArchive.Visibility == Visibility.Visible) {
Add comment 534 TheRibbon.SelectedTabItem = ctgArchive.Items[0];
Add comment 535 }
Add comment 1397
Add comment 1398 private void InitializeExplorerControl() {
Add comment 1399 this.ShellTree.NodeClick += ShellTree_NodeClick;
Add comment 1400 Plus this.ShellTree.AfterSelect += ShellTree_AfterSelect;
Add comment 1400 1401 this.ShellListView.Navigated += ShellListView_Navigated;
Add comment 1401 1402 this.ShellListView.ViewStyleChanged += ShellListView_ViewStyleChanged;
Add comment 1402 1403 this.ShellListView.SelectionChanged += ShellListView_SelectionChanged;
Add comment 1412 1413 this.ShellListView.EndItemLabelEdit += ShellListView_EndItemLabelEdit;
Add comment 1413 1414 }
Add comment 1414 1415
Add comment 1416 Plus void ShellTree_AfterSelect(object sender, NavigatedEventArgs e) {
Add comment 1417 Plus this.bcbc.Path = e.Folder.ParsingName;
Add comment 1418 Plus }
Add comment 1419 Plus
Add comment 1415 1420 protected override void OnSourceInitialized(EventArgs e) {
Add comment 1416 1421 base.OnSourceInitialized(e);
Add comment 1417 1422 Handle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
Add comment 2547 2552 #region Share Tab Commands (excluding Archive)
Add comment 2548 2553
Add comment 2549 2554 private void btnMapDrive_Click(object sender, RoutedEventArgs e) {
Add comment 2550 Minus //WindowsAPI.MapDrive(this.Handle, ShellListView.SelectedItems.Count( == 1 ? ShellListView.GetFirstSelectedItem().ParsingName : String.Empty);
Add comment 2555 Plus this.ShellListView.MapDrive(this.Handle, this.ShellListView.SelectedItems.Count() == 1 ? this.ShellListView.GetFirstSelectedItem().ParsingName : String.Empty);
Add comment 2551 2556 }
Add comment 2552 2557
Add comment 2553 2558 private void btnDisconectDrive_Click(object sender, RoutedEventArgs e) {
Add comment 2554 Minus //WindowsAPI.WNetDisconnectDialog(this.Handle, 1);
Add comment 2559 Plus this.ShellListView.DisconnectDrive(this.Handle, 1);
Add comment 2555 2560 }
Add comment 2556 2561
Add comment 2557 Minus [Obsolete("Does Nothing")]
Add comment 2558 2562 private void Button_Click_4(object sender, RoutedEventArgs e) {
Add comment 2559 Minus //ShellListView.OpenShareUI();
Add comment 2563 Plus this.ShellListView.OpenShareUI();
Add comment 2560 2564 }
Add comment 2561 2565
Add comment 2562 2566 private void btnAdvancedSecurity_Click(object sender, RoutedEventArgs e) {
Add comment 4203 4207 #region On Navigated
Add comment 4204 4208
Add comment 4205 4209 void ShellListView_Navigated(object sender, NavigatedEventArgs e) {
Add comment 4210 Plus if (e.OldFolder != this.ShellListView.CurrentFolder) {
Add comment 4206 4211 NavigationController(this.ShellListView.CurrentFolder);
Add comment 4212 Plus }
Add comment 4207 4213 SetupColumnsButton();
Add comment 4208 4214 SetSortingAndGroupingButtons();
Add comment 4209 4215 SetupUIOnSelectOrNavigate();
Add comment 4258 4264 }));
Add comment 4259 4265
Add comment 4260 4266 this.ShellListView.Focus();
Add comment 4267 Plus
Add comment 4261 4268 }
Add comment 4262 4269
Add comment 4263 4270 private void SetupUIonNavComplete(NavigatedEventArgs e) {
Add comment 4386 4393 if (Destination != this.ShellListView.CurrentFolder) {
Add comment 4387 4394 this.ShellListView.Navigate_Full(Destination, true);
Add comment 4388 4395 }
Add comment 4389 Minus
Add comment 4390 4396 if (this.ShellListView.CurrentFolder != null)
Add comment 4391 4397 this.bcbc.Path = this.ShellListView.CurrentFolder.ParsingName;
Add comment 4392 4398 }
PreviewControl.xaml.cs
/WpfDocumentPreviewer/PreviewControl.xaml.cs/WpfDocumentPreviewer/PreviewControl.xaml.cs