Changeset 2023 for trunk/eraser


Ignore:
Timestamp:
5/3/2010 1:18:43 PM (5 years ago)
Author:
lowjoel
Message:

Create placeholders to configure the different erasure target types.

Location:
trunk/eraser/Eraser.Manager
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Manager/Eraser.Manager.csproj

    r2020 r2023  
    7070    <Compile Include="Exception.cs" /> 
    7171    <Compile Include="Executor.cs" /> 
     72    <Compile Include="FileErasureTargetSettings.cs"> 
     73      <SubType>UserControl</SubType> 
     74    </Compile> 
     75    <Compile Include="FileErasureTargetSettings.Designer.cs"> 
     76      <DependentUpon>FileErasureTargetSettings.cs</DependentUpon> 
     77    </Compile> 
    7278    <Compile Include="FileSystem.cs" /> 
     79    <Compile Include="FolderErasureTargetSettings.cs"> 
     80      <SubType>UserControl</SubType> 
     81    </Compile> 
     82    <Compile Include="FolderErasureTargetSettings.Designer.cs"> 
     83      <DependentUpon>FolderErasureTargetSettings.cs</DependentUpon> 
     84    </Compile> 
    7385    <Compile Include="IRegistrar.cs" /> 
    7486    <Compile Include="ManagerLibrary.cs" /> 
     
    8193    <Compile Include="Settings.cs" /> 
    8294    <Compile Include="Task.cs" /> 
     95    <Compile Include="UnusedSpaceErasureTargetSettings.cs"> 
     96      <SubType>UserControl</SubType> 
     97    </Compile> 
     98    <Compile Include="UnusedSpaceErasureTargetSettings.Designer.cs"> 
     99      <DependentUpon>UnusedSpaceErasureTargetSettings.cs</DependentUpon> 
     100    </Compile> 
    83101  </ItemGroup> 
    84102  <ItemGroup> 
  • trunk/eraser/Eraser.Manager/ErasureTarget.cs

    r2022 r2023  
    117117 
    118118        /// <summary> 
    119         /// Gets a control which contains settings for configuring this task. 
     119        /// Gets a control which contains settings for configuring this task, or 
     120        /// null if this erasure target has no settings to be set. 
    120121        /// </summary> 
    121122        /// <remarks>The result should be able to be passed to the <see cref="Configure"/> 
     
    141142        /// <param name="progress">The progress manager instance which is used to 
    142143        /// track the progress of the current target's erasure.</param> 
    143         public virtual void Execute(ProgressManagerBase progress); 
     144        public virtual void Execute(ProgressManagerBase progress) 
     145        { 
     146        } 
    144147    } 
    145148 
     
    306309        } 
    307310 
     311        public override System.Windows.Forms.Control SettingsPanel 
     312        { 
     313            get { return new UnusedSpaceErasureTargetSettings(); } 
     314        } 
     315 
     316        public override void Configure(System.Windows.Forms.Control settingsPanel) 
     317        { 
     318            throw new NotImplementedException(); 
     319        } 
     320 
    308321        /// <summary> 
    309322        /// The drive to erase 
     
    337350        } 
    338351 
     352        public override System.Windows.Forms.Control SettingsPanel 
     353        { 
     354            get { return new FileErasureTargetSettings(); } 
     355        } 
     356 
     357        public override void Configure(System.Windows.Forms.Control settingsPanel) 
     358        { 
     359            throw new NotImplementedException(); 
     360        } 
     361 
    339362        internal override List<string> GetPaths(out long totalSize) 
    340363        { 
     
    387410            ExcludeMask = string.Empty; 
    388411            DeleteIfEmpty = true; 
     412        } 
     413 
     414        public override System.Windows.Forms.Control SettingsPanel 
     415        { 
     416            get { return new FolderErasureTargetSettings(); } 
     417        } 
     418 
     419        public override void Configure(System.Windows.Forms.Control settingsPanel) 
     420        { 
     421            throw new NotImplementedException(); 
    389422        } 
    390423 
     
    502535        } 
    503536 
     537        public override System.Windows.Forms.Control SettingsPanel 
     538        { 
     539            get { return null; } 
     540        } 
     541 
     542        public override void Configure(System.Windows.Forms.Control settingsPanel) 
     543        { 
     544            throw new InvalidOperationException("The RecycleBinTarget class has no settings to " + 
     545                "be set."); 
     546        } 
     547 
    504548        internal override List<string> GetPaths(out long totalSize) 
    505549        { 
Note: See TracChangeset for help on using the changeset viewer.