4 changed files
BExplorer/BetterExplorer/Networks/FileSystem | ||
FileSystemObject.cs | ||
SymbolicLink.cs | ||
Shell | ||
TooltipDataTemplateSelector.cs | ||
UnbufferedFO/GS.Common.IO | ||
UnbufferedIO.csproj | ||
FileSystemObject.cs
/BExplorer/BetterExplorer/Networks/FileSystem/FileSystemObject.cs-43+5/BExplorer/BetterExplorer/Networks/FileSystem/FileSystemObject.cs
Add comment 10 /// </summary>
Add comment 11 public abstract class FileSystemObject
Add comment 12 {
Add comment 13 Minus
Add comment 14 Minus protected string _path;
Add comment 15 Minus protected string _name;
Add comment 16 Minus protected DateTime _timeCreated;
Add comment 17 Minus protected FileSystemObjectType _type;
Add comment 18 Minus protected Directory _parent;
Add comment 19 Minus
Add comment 20 13 /// <summary>
Add comment 21 14 /// The path of this file system object.
Add comment 22 15 /// </summary>
Add comment 23 Minus public string Path
Add comment 24 Minus {
Add comment 25 Minus get
Add comment 26 Minus {
Add comment 27 Minus return _path;
Add comment 28 Minus }
Add comment 29 Minus }
Add comment 16 Plus public string Path { get; protected set; }
Add comment 30 17
Add comment 31 18 /// <summary>
Add comment 32 19 /// The name of this file system object.
Add comment 33 20 /// </summary>
Add comment 34 Minus public string Name
Add comment 35 Minus {
Add comment 36 Minus get
Add comment 37 Minus {
Add comment 38 Minus return _name;
Add comment 39 Minus }
Add comment 40 Minus }
Add comment 21 Plus public string Name { get; protected set; }
Add comment 41 22
Add comment 42 23 /// <summary>
Add comment 43 24 /// The parent directory of this file system object. If this is the root directory, the parent will be itself.
Add comment 44 25 /// </summary>
Add comment 45 Minus public Directory Parent
Add comment 46 Minus {
Add comment 47 Minus get
Add comment 48 Minus {
Add comment 49 Minus return _parent;
Add comment 50 Minus }
Add comment 51 Minus }
Add comment 26 Plus public Directory Parent { get; protected set; }
Add comment 52 27
Add comment 53 28 /// <summary>
Add comment 54 29 /// The date this file system object was created. (Might be null.)
Add comment 55 30 /// </summary>
Add comment 56 Minus public DateTime CreationDate
Add comment 57 Minus {
Add comment 58 Minus get
Add comment 59 Minus {
Add comment 60 Minus return _timeCreated;
Add comment 61 Minus }
Add comment 62 Minus }
Add comment 31 Plus public DateTime CreationDate { get; protected set; }
Add comment 63 32
Add comment 64 33 /// <summary>
Add comment 65 34 /// The type this file system object is.
Add comment 66 35 /// </summary>
Add comment 67 Minus public FileSystemObjectType Type
Add comment 68 Minus {
Add comment 69 Minus get
Add comment 70 Minus {
Add comment 71 Minus return _type;
Add comment 72 Minus }
Add comment 73 Minus }
Add comment 36 Plus public FileSystemObjectType Type { get; protected set; }
Add comment 74 37
Add comment 75 38 /// <summary>
Add comment 76 39 /// What type of object this FileSystemObject is
Add comment 92 55 /// </summary>
Add comment 93 56 SymbolicLink = 2,
Add comment 94 57 }
Add comment 95 Minus
Add comment 96 58 }
Add comment 97 59 }
Add comment 98 60
SymbolicLink.cs
/BExplorer/BetterExplorer/Networks/FileSystem/SymbolicLink.cs-22+10/BExplorer/BetterExplorer/Networks/FileSystem/SymbolicLink.cs
Add comment 1 using System;
Add comment 2 Minus using System.Collections.Generic;
Add comment 3 Minus using System.Linq;
Add comment 4 Minus using System.Text;
Add comment 5 2
Add comment 6 3 namespace BetterExplorer.Networks.FileSystem
Add comment 7 4 {
Add comment 10 7 /// </summary>
Add comment 11 8 public class SymbolicLink : FileSystemObject
Add comment 12 9 {
Add comment 13 Minus private string _target;
Add comment 10 Plus /// <summary>
Add comment 11 Plus /// The target path of the symbolic link.
Add comment 12 Plus /// </summary>
Add comment 13 Plus public string Target { get; private set; }
Add comment 14
Add comment 15 /// <summary>
Add comment 16 /// Creates a new SymbolicLink file system object.
Add comment 21 /// <param name="target">The target path of the symbolic link.</param>
Add comment 22 public SymbolicLink(string name, string path, Directory parent, DateTime? creationdate, string target)
Add comment 23 {
Add comment 24 Minus _name = name;
Add comment 25 Minus _path = path;
Add comment 26 Minus _target = target;
Add comment 27 Minus _parent = parent;
Add comment 28 Minus _type = FileSystemObjectType.SymbolicLink;
Add comment 24 Plus this.Name = name;
Add comment 25 Plus this.Path = path;
Add comment 26 Plus this.Target = target;
Add comment 27 Plus this.Parent = parent;
Add comment 28 Plus this.Type = FileSystemObjectType.SymbolicLink;
Add comment 29 if (creationdate.HasValue)
Add comment 30 {
Add comment 31 Minus _timeCreated = creationdate.Value;
Add comment 32 Minus }
Add comment 33 Minus }
Add comment 34 Minus
Add comment 35 Minus /// <summary>
Add comment 36 Minus /// The target path of the symbolic link.
Add comment 37 Minus /// </summary>
Add comment 38 Minus public string Target
Add comment 39 Minus {
Add comment 40 Minus get
Add comment 41 Minus {
Add comment 42 Minus return _target;
Add comment 31 Plus this.CreationDate = creationdate.Value;
Add comment 43 32 }
Add comment 44 33 }
Add comment 45 Minus
Add comment 46 34 }
Add comment 47 35 }
Add comment 48 36
TooltipDataTemplateSelector.cs
/Shell/TooltipDataTemplateSelector.cs-1+1/Shell/TooltipDataTemplateSelector.cs
Add comment 24 return ((FrameworkElement)container).FindResource("FSTooltip") as DataTemplate;
Add comment 25 }
Add comment 26 }
Add comment 27 Minus catch (Exception ex) {
Add comment 27 Plus catch {
Add comment 28 return ((FrameworkElement)container).FindResource("FSTooltip") as DataTemplate;
Add comment 29 }
Add comment 30 }
UnbufferedIO.csproj
/UnbufferedFO/GS.Common.IO/UnbufferedIO.csproj-1+2/UnbufferedFO/GS.Common.IO/UnbufferedIO.csproj
Add comment 24 <DebugType>full</DebugType>
Add comment 25 <Optimize>false</Optimize>
Add comment 26 <OutputPath>bin\Debug\</OutputPath>
Add comment 27 Minus <DefineConstants>DEBUG;TRACE</DefineConstants>
Add comment 27 Plus <DefineConstants>TRACE;DEBUG</DefineConstants>
Add comment 28 <ErrorReport>prompt</ErrorReport>
Add comment 29 <WarningLevel>4</WarningLevel>
Add comment 30 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Add comment 31 <DocumentationFile>bin\Debug\GS.Common.IO.XML</DocumentationFile>
Add comment 32 <Prefer32Bit>false</Prefer32Bit>
Add comment 33 Plus <NoWarn>0419 1591</NoWarn>
Add comment 33 34 </PropertyGroup>
Add comment 34 35 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Add comment 35 36 <DebugType>pdbonly</DebugType>