Changeset 1477
- Timestamp:
- 1/6/2010 7:29:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.DefaultPlugins/SettingsForm.cs
r1360 r1477 91 91 //Remove the old definition of the erasure method 92 92 CustomErasureMethod method = editorForm.Method; 93 removeCustomMethods.Add(method.Guid); 94 customMethod.Items.Remove(item); 95 customMethods.Remove(method.Guid); 93 if (removeCustomMethods.IndexOf(method.Guid) == -1) 94 removeCustomMethods.Add(method.Guid); 96 95 97 96 //Add the new definition 98 method = editorForm.Method; 97 foreach (CustomErasureMethod addMethod in addCustomMethods) 98 if (addMethod.Guid == method.Guid) 99 { 100 addCustomMethods.Remove(addMethod); 101 break; 102 } 103 104 customMethods[method.Guid] = method; 99 105 addCustomMethods.Add(method); 100 AddMethod(method);106 item.Tag = method; 101 107 } 102 108 }
Note: See TracChangeset
for help on using the changeset viewer.
