Changeset 2022


Ignore:
Timestamp:
05/03/10 13:13:10 (5 years ago)
Author:
lowjoel
Message:

Allow for the configuration of erasure targets through the provision of a SettingsPanel? and a Configure function which will create a UI and update the task based on the UI respectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Manager/ErasureTarget.cs

    r2021 r2022  
    115115            internal set; 
    116116        } 
     117 
     118        /// <summary> 
     119        /// Gets a control which contains settings for configuring this task. 
     120        /// </summary> 
     121        /// <remarks>The result should be able to be passed to the <see cref="Configure"/> 
     122        /// function, and settings for this task will be according to the returned 
     123        /// control.</remarks> 
     124        public abstract System.Windows.Forms.Control SettingsPanel 
     125        { 
     126            get; 
     127        } 
     128 
     129        /// <summary> 
     130        /// Configures the current task based on settings specified in the control 
     131        /// returned by the <see cref="SettingsPanel"/> property. 
     132        /// </summary> 
     133        /// <param name="settingsPanel">A settings panel returned by the 
     134        /// <see cref="SettingsPanel"/> property, which contains the user-selected 
     135        /// settings.</param> 
     136        public abstract void Configure(System.Windows.Forms.Control settingsPanel); 
     137 
     138        /// <summary> 
     139        /// Executes the given task. 
     140        /// </summary> 
     141        /// <param name="progress">The progress manager instance which is used to 
     142        /// track the progress of the current target's erasure.</param> 
     143        public virtual void Execute(ProgressManagerBase progress); 
    117144    } 
    118145 
Note: See TracChangeset for help on using the changeset viewer.