Ignore:
Timestamp:
3/12/2008 1:45:11 AM (7 years ago)
Author:
lowjoel
Message:

Various UI improvements
-The progress dialog won't say pass x of y if y is zero, as can be the case of the First/last 2kb pass
-Allow users to select an unused space erasure method only if the method can erase unused space!

File:
1 edited

Legend:

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

    r239 r252  
    136136        } 
    137137 
     138        private void method_SelectedIndexChanged(object sender, EventArgs e) 
     139        { 
     140            if (!(method.SelectedItem is UnusedSpaceErasureMethod) && 
     141                method.SelectedItem != ErasureMethodManager.Default) 
     142            { 
     143                if (unused.Checked) 
     144                { 
     145                    file.Checked = true; 
     146                    errorProvider.SetError(unused, "The erasure method selected does " + 
     147                        "not support unused disk space erasures."); 
     148                } 
     149                unused.Enabled = false; 
     150            } 
     151            else if (!unused.Enabled) 
     152            { 
     153                unused.Enabled = true; 
     154                errorProvider.Clear(); 
     155            } 
     156        } 
     157 
    138158        private void data_CheckedChanged(object sender, EventArgs e) 
    139159        { 
Note: See TracChangeset for help on using the changeset viewer.