Changeset 1563


Ignore:
Timestamp:
1/18/2010 6:16:16 AM (5 years ago)
Author:
lowjoel
Message:

Replaced the ShellApi? class with the RecycleBin? class (since ShEmptyRecycleBin? was the only remaining member of the class) Addresses #284: Eraser.Util rewrite

Location:
branches/eraser6/CodeReview
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Manager/DirectExecutor.cs

    r1552 r1563  
    708708                        new TaskProgressChangedEventArgs(string.Empty, 0, 0))); 
    709709 
    710                 ShellApi.EmptyRecycleBin(EmptyRecycleBinOptions.NoConfirmation | 
     710                RecycleBin.EmptyRecycleBin(EmptyRecycleBinOptions.NoConfirmation | 
    711711                    EmptyRecycleBinOptions.NoProgressUI | EmptyRecycleBinOptions.NoSound); 
    712712            } 
  • branches/eraser6/CodeReview/Eraser.Util/Eraser.Util.csproj

    r1558 r1563  
    6262    <Compile Include="NativeMethods\WinTrust.cs" /> 
    6363    <Compile Include="NtfsApi.cs" /> 
    64     <Compile Include="ShellApi.cs" /> 
     64    <Compile Include="RecycleBin.cs" /> 
    6565    <Compile Include="SystemRestoreApi.cs"> 
    6666      <SubType>Component</SubType> 
     
    8282  </ItemGroup> 
    8383  <ItemGroup> 
     84    <Compile Include="Power.cs" /> 
    8485    <Compile Include="NativeMethods\Gdi.cs" /> 
    8586    <Compile Include="NativeMethods\Sfc.cs" /> 
  • branches/eraser6/CodeReview/Eraser.Util/RecycleBin.cs

    r1552 r1563  
    2323using System.Collections.Generic; 
    2424using System.Text; 
    25 using System.Runtime.InteropServices; 
    26 using System.Windows.Forms; 
    2725 
    2826namespace Eraser.Util 
    2927{ 
    30     public static class ShellApi 
     28    public static class RecycleBin 
    3129    { 
    3230        /// <summary> 
     
    3533        /// <param name="options">The list of flags to pass to the shell regarding 
    3634        /// the user feedback, etc.</param> 
    37         public static void EmptyRecycleBin(EmptyRecycleBinOptions options) 
     35        public static void Empty(EmptyRecycleBinOptions options) 
    3836        { 
    3937            NativeMethods.SHEmptyRecycleBin(IntPtr.Zero, null, 
Note: See TracChangeset for help on using the changeset viewer.