13 changed files
BExplorer/BetterExplorer | ||
Translation | ||
DefaultLocale.xaml | ||
App.xaml.cs | ||
MainWindow.xaml.cs | ||
Settings | ||
Properties | ||
AssemblyInfo.cs + | ||
BESettings.cs + | ||
Settings.csproj + | ||
Shell | ||
Interop | ||
IListView.cs | ||
ShellNotifications.cs | ||
FOperationProgressSink.cs | ||
ShellContextMenu.cs | ||
ShellTreeViewEx.cs | ||
ShellViewEx.cs | ||
BExplorer.sln | ||
DefaultLocale.xaml
/BExplorer/BetterExplorer/Translation/DefaultLocale.xaml+1/BExplorer/BetterExplorer/Translation/DefaultLocale.xaml
Add comment 380 <system:String x:Key="txtYes">Yes</system:String>
Add comment 381 <system:String x:Key="txtNo">No</system:String>
Add comment 382 <system:String x:Key="txtType">Type</system:String>
Add comment 383 Plus <system:String x:Key="mnuOpenNewTab">Open in separate tab</system:String>
Add comment 383 384 <!-- (file type) -->
Add comment 384 385 <system:String x:Key="txtFile">file</system:String>
Add comment 385 386 <system:String x:Key="txtShortcut">shortcut</system:String>
Add comment 122
Add comment 123
Add comment 124 protected override void OnStartup(StartupEventArgs e) {
Add comment 125 Plus System.Diagnostics.Process process = System.Diagnostics.Process.GetCurrentProcess();
Add comment 126 Plus process.PriorityClass = System.Diagnostics.ProcessPriorityClass.Normal;
Add comment 127 Plus
Add comment 128 Plus // Set the current thread to run at 'Highest' Priority
Add comment 129 Plus Thread thread = System.Threading.Thread.CurrentThread;
Add comment 130 Plus thread.Priority = ThreadPriority.Highest;
Add comment 131 Plus
Add comment 125 132 string locale = ""; bool dmi = true;
Add comment 126 133 Application.Current.DispatcherUnhandledException += new DispatcherUnhandledExceptionEventHandler(Current_DispatcherUnhandledException);
Add comment 127 134 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
MainWindow.xaml.cs
/BExplorer/BetterExplorer/MainWindow.xaml.cs-2+4/BExplorer/BetterExplorer/MainWindow.xaml.cs
Add comment 412 }
Add comment 413
Add comment 414 private void SetUpRibbonTabsVisibilityOnSelectOrNavigate(int selectedItemsCount, IListItemEx selectedItem) {
Add comment 415 Plus if (selectedItem == null) return;
Add comment 415 416
Add comment 416 417 #region Search Contextual Tab
Add comment 417 418 ctgSearch.Visibility = BooleanToVisibiliy(_ShellListView.CurrentFolder.IsSearchFolder);
Add comment 3544 3545 }
Add comment 3545 3546
Add comment 3546 3547 Dispatcher.Invoke(DispatcherPriority.Normal, (Action)(() => {
Add comment 3548 Plus this._ShellListView.Focus(false, true);
Add comment 3547 3549 var selectedItem = this.tcMain.SelectedItem as Wpf.Controls.TabItem;
Add comment 3548 3550 if (selectedItem == null) {
Add comment 3549 3551 this.tcMain.SelectedItem = this.tcMain.Items.OfType<Wpf.Controls.TabItem>().Last();
Add comment 3582 3584 }));
Add comment 3583 3585 ////This initially setup the statusbar after program opens
Add comment 3584 3586 Dispatcher.BeginInvoke(DispatcherPriority.Background, (ThreadStart)(() => {
Add comment 3585 Minus SetUpStatusBarOnSelectOrNavigate(_ShellListView.SelectedItems == null ? 0 : _ShellListView.GetSelectedCount());
Add comment 3587 Plus this.SetUpStatusBarOnSelectOrNavigate(_ShellListView.SelectedItems == null ? 0 : _ShellListView.GetSelectedCount());
Add comment 3586 3588 }));
Add comment 3587 3589 //Dispatcher.BeginInvoke(DispatcherPriority.Background, (ThreadStart) (() => {
Add comment 3588 3590 // Thread.Sleep(1500);
Add comment 3594 3596 //this.bcbc.SetProgressValue(0, TimeSpan.FromSeconds(0));
Add comment 3595 3597 //}));
Add comment 3596 3598
Add comment 3597 Minus this._ShellListView.Focus();
Add comment 3599 Plus
Add comment 3598 3600 }
Add comment 3599 3601
Add comment 3600 3602 private void SetupUIonNavComplete(NavigatedEventArgs e) {
Add comment 1 Plus using System.Reflection;
Add comment 2 Plus using System.Runtime.CompilerServices;
Add comment 3 Plus using System.Runtime.InteropServices;
Add comment 4 Plus
Add comment 5 Plus // General Information about an assembly is controlled through the following
Add comment 6 Plus // set of attributes. Change these attribute values to modify the information
Add comment 7 Plus // associated with an assembly.
Add comment 8 Plus [assembly: AssemblyTitle("Settings")]
Add comment 9 Plus [assembly: AssemblyDescription("")]
Add comment 10 Plus [assembly: AssemblyConfiguration("")]
Add comment 11 Plus [assembly: AssemblyCompany("")]
Add comment 12 Plus [assembly: AssemblyProduct("Settings")]
Add comment 13 Plus [assembly: AssemblyCopyright("Copyright © 2016")]
Add comment 14 Plus [assembly: AssemblyTrademark("")]
Add comment 15 Plus [assembly: AssemblyCulture("")]
Add comment 16 Plus
Add comment 17 Plus // Setting ComVisible to false makes the types in this assembly not visible
Add comment 18 Plus // to COM components. If you need to access a type in this assembly from
Add comment 19 Plus // COM, set the ComVisible attribute to true on that type.
Add comment 20 Plus [assembly: ComVisible(false)]
Add comment 21 Plus
Add comment 22 Plus // The following GUID is for the ID of the typelib if this project is exposed to COM
Add comment 23 Plus [assembly: Guid("b40d0f31-9d30-4292-9717-bb21fc94c49c")]
Add comment 24 Plus
Add comment 25 Plus // Version information for an assembly consists of the following four values:
Add comment 26 Plus //
Add comment 27 Plus // Major Version
Add comment 28 Plus // Minor Version
Add comment 29 Plus // Build Number
Add comment 30 Plus // Revision
Add comment 31 Plus //
Add comment 32 Plus // You can specify all the values or you can default the Build and Revision Numbers
Add comment 33 Plus // by using the '*' as shown below:
Add comment 34 Plus // [assembly: AssemblyVersion("1.0.*")]
Add comment 35 Plus [assembly: AssemblyVersion("1.0.0.0")]
Add comment 36 Plus [assembly: AssemblyFileVersion("1.0.0.0")]
Add comment 37 Plus
Add comment 1 Plus using System;
Add comment 2 Plus using System.Collections.Generic;
Add comment 3 Plus using System.Linq;
Add comment 4 Plus using System.Text;
Add comment 5 Plus using System.Threading.Tasks;
Add comment 6 Plus
Add comment 7 Plus namespace Settings {
Add comment 8 Plus public static class BESettings {
Add comment 9 Plus public static DateTime LastUpdateCheck { get; set; }
Add comment 10 Plus public static Int32 UpdateCheckInterval { get; set; }
Add comment 11 Plus public static String CurrentTheme { get; set; }
Add comment 12 Plus public static Int32 UpdateCheckType { get; set; }
Add comment 13 Plus public static Boolean IsUpdateCheck { get; set; }
Add comment 14 Plus public static Boolean IsUpdateCheckStartup { get; set; }
Add comment 15 Plus public static Boolean IsConsoleShown { get; set; }
Add comment 16 Plus public static Boolean IsInfoPaneEnabled { get; set; }
Add comment 17 Plus public static Int32 InfoPaneHeight { get; set; }
Add comment 18 Plus public static Boolean IsPreviewPaneEnabled { get; set; }
Add comment 19 Plus public static Int32 PreviewPaneWidth { get; set; }
Add comment 20 Plus public static Boolean IsNavigationPaneEnabled { get; set; }
Add comment 21 Plus public static Boolean IsShowCheckboxes { get; set; }
Add comment 22 Plus public static Boolean IsFileOpExEnabled { get; set; }
Add comment 23 Plus public static Boolean IsCustomFO { get; set; }
Add comment 24 Plus public static Boolean IsRestoreTabs { get; set; }
Add comment 25 Plus public static Boolean IsTraditionalNameGrouping { get; set; }
Add comment 26 Plus public static Boolean CanLogAction { get; set; }
Add comment 27 Plus }
Add comment 28 Plus }
Add comment 29 Plus
Add comment 1 Plus <?xml version="1.0" encoding="utf-8"?>
Add comment 2 Plus <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Add comment 3 Plus <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
Add comment 4 Plus <PropertyGroup>
Add comment 5 Plus <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Add comment 6 Plus <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Add comment 7 Plus <ProjectGuid>{B40D0F31-9D30-4292-9717-BB21FC94C49C}</ProjectGuid>
Add comment 8 Plus <OutputType>Library</OutputType>
Add comment 9 Plus <AppDesignerFolder>Properties</AppDesignerFolder>
Add comment 10 Plus <RootNamespace>Settings</RootNamespace>
Add comment 11 Plus <AssemblyName>Settings</AssemblyName>
Add comment 12 Plus <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
Add comment 13 Plus <FileAlignment>512</FileAlignment>
Add comment 14 Plus </PropertyGroup>
Add comment 15 Plus <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Add comment 16 Plus <DebugSymbols>true</DebugSymbols>
Add comment 17 Plus <DebugType>full</DebugType>
Add comment 18 Plus <Optimize>false</Optimize>
Add comment 19 Plus <OutputPath>bin\Debug\</OutputPath>
Add comment 20 Plus <DefineConstants>DEBUG;TRACE</DefineConstants>
Add comment 21 Plus <ErrorReport>prompt</ErrorReport>
Add comment 22 Plus <WarningLevel>4</WarningLevel>
Add comment 23 Plus </PropertyGroup>
Add comment 24 Plus <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Add comment 25 Plus <DebugType>pdbonly</DebugType>
Add comment 26 Plus <Optimize>true</Optimize>
Add comment 27 Plus <OutputPath>bin\Release\</OutputPath>
Add comment 28 Plus <DefineConstants>TRACE</DefineConstants>
Add comment 29 Plus <ErrorReport>prompt</ErrorReport>
Add comment 30 Plus <WarningLevel>4</WarningLevel>
Add comment 31 Plus </PropertyGroup>
Add comment 32 Plus <ItemGroup>
Add comment 33 Plus <Reference Include="System" />
Add comment 34 Plus <Reference Include="System.Core" />
Add comment 35 Plus <Reference Include="System.Xml.Linq" />
Add comment 36 Plus <Reference Include="System.Data.DataSetExtensions" />
Add comment 37 Plus <Reference Include="Microsoft.CSharp" />
Add comment 38 Plus <Reference Include="System.Data" />
Add comment 39 Plus <Reference Include="System.Net.Http" />
Add comment 40 Plus <Reference Include="System.Xml" />
Add comment 41 Plus </ItemGroup>
Add comment 42 Plus <ItemGroup>
Add comment 43 Plus <Compile Include="BESettings.cs" />
Add comment 44 Plus <Compile Include="Properties\AssemblyInfo.cs" />
Add comment 45 Plus </ItemGroup>
Add comment 46 Plus <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Add comment 47 Plus <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Add comment 48 Plus Other similar extension points exist, see Microsoft.Common.targets.
Add comment 49 Plus <Target Name="BeforeBuild">
Add comment 50 Plus </Target>
Add comment 51 Plus <Target Name="AfterBuild">
Add comment 52 Plus </Target>
Add comment 53 Plus -->
Add comment 54 Plus </Project>