Ignore:
Timestamp:
3/10/2008 8:47:43 AM (7 years ago)
Author:
lowjoel
Message:

-Don't register the default erase function as a erasure method, since it is merely a placeholder
-Add a GUID to the Erasure method class since that's how we're gunna identify methods
-Make the Manager.Settings class global, and make its members internal instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/TaskDataSelectionForm.cs

    r175 r181  
    5454 
    5555            //And the methods list 
    56             List<ErasureMethod> methods = ErasureMethodManager.GetMethods(); 
    57             foreach (ErasureMethod method in methods) 
     56            Dictionary<Guid, ErasureMethod> methods = ErasureMethodManager.GetMethods(); 
     57            this.method.Items.Add(ErasureMethodManager.Default); 
     58            foreach (ErasureMethod method in methods.Values) 
    5859                this.method.Items.Add(method); 
    5960            if (this.method.Items.Count != 0) 
     
    6465        /// Retrieves the settings on the property page as the Eraser Manager API equivalent. 
    6566        /// </summary> 
    66         /// <returns>An Eraser.Manager.Task.Data or Eraser.Manager.Task.FreeSpace object 
     67        /// <returns>An Eraser.Manager.Task.Data or Eraser.Manager.Task.UnusedSpace object 
    6768        /// or any of its inherited classes, depending on the task selected</returns> 
    6869        public Task.ErasureTarget GetTaskEntry() 
     
    8889            else 
    8990            { 
    90                 Task.FreeSpace freeSpaceTask = new Task.FreeSpace(); 
    91                 result = freeSpaceTask; 
     91                Task.UnusedSpace unusedSpaceTask = new Task.UnusedSpace(); 
     92                result = unusedSpaceTask; 
    9293 
    93                 freeSpaceTask.Drive = (unusedDisk.SelectedItem as DriveItem).Drive; 
     94                unusedSpaceTask.Drive = (unusedDisk.SelectedItem as DriveItem).Drive; 
    9495            } 
    9596 
Note: See TracChangeset for help on using the changeset viewer.