Changeset 1158 for trunk/eraser6
- Timestamp:
- 7/3/2009 11:51:09 AM (4 years ago)
- Location:
- trunk/eraser6
- Files:
-
- 11 edited
-
Eraser.Manager/DirectExecutor.cs (modified) (1 diff)
-
Eraser.Manager/Settings.cs (modified) (1 diff)
-
Eraser.Manager/Task.cs (modified) (1 diff)
-
Eraser.fxcop (modified) (9 diffs)
-
Eraser/BasePanel.Designer.cs (modified) (2 diffs)
-
Eraser/BasePanel.cs (modified) (2 diffs)
-
Eraser/SchedulerPanel.Designer.cs (modified) (3 diffs)
-
Eraser/SchedulerPanel.cs (modified) (1 diff)
-
Eraser/SettingsPanel.Designer.cs (modified) (6 diffs)
-
Eraser/SettingsPanel.cs (modified) (4 diffs)
-
Eraser/SettingsPanel.resx (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1156 r1158 946 946 catch (FileLoadException) 947 947 { 948 if (!ManagerLibrary.Settings.ForceUnlockLockedFiles) 949 throw; 950 948 951 List<System.Diagnostics.Process> processes = new List<System.Diagnostics.Process>(); 949 952 foreach (OpenHandle handle in OpenHandle.Items) -
trunk/eraser6/Eraser.Manager/Settings.cs
r1088 r1158 277 277 278 278 /// <summary> 279 /// Whether files which are locked when being erased can be scheduled for280 /// erasure on system restart.281 /// </summary> 282 public bool EraseLockedFilesOnRestart283 { 284 get 285 { 286 return settings[" EraseLockedFilesOnRestart"] == null ? true :287 Convert.ToBoolean(settings[" EraseLockedFilesOnRestart"],279 /// Whether files which are locked when being erased should be forcibly 280 /// unlocked for erasure. 281 /// </summary> 282 public bool ForceUnlockLockedFiles 283 { 284 get 285 { 286 return settings["ForceUnlockLockedFiles"] == null ? true : 287 Convert.ToBoolean(settings["ForceUnlockLockedFiles"], 288 288 CultureInfo.InvariantCulture); 289 289 } 290 290 set 291 291 { 292 settings["EraseLockedFilesOnRestart"] = value; 293 } 294 } 295 296 /// <summary> 297 /// Whether scheduling files for restart erase should get the blessing of 298 /// the user first. 299 /// </summary> 300 public bool ConfirmEraseOnRestart 301 { 302 get 303 { 304 return settings["ConfirmEraseOnRestart"] == null ? 305 true : Convert.ToBoolean(settings["ConfirmEraseOnRestart"], 306 CultureInfo.InvariantCulture); 307 } 308 set 309 { 310 settings["ConfirmEraseOnRestart"] = value; 292 settings["ForceUnlockLockedFiles"] = value; 311 293 } 312 294 } -
trunk/eraser6/Eraser.Manager/Task.cs
r1157 r1158 402 402 { 403 403 //The system cannot open the file, try to force the file handle to close. 404 if (!ManagerLibrary.Settings.ForceUnlockLockedFiles) 405 throw; 406 404 407 foreach (OpenHandle handle in OpenHandle.Items) 405 408 if (handle.Path == file && handle.Close()) -
trunk/eraser6/Eraser.fxcop
r1156 r1158 56 56 <Settings /> 57 57 </Rules> 58 <FxCopReport Version="1.36" LastAnalysis="2009-07-03 06:57:16Z">58 <FxCopReport Version="1.36" LastAnalysis="2009-07-03 10:46:36Z"> 59 59 <Namespaces> 60 60 <Namespace Name="Eraser.Unlocker"> … … 313 313 <Messages> 314 314 <Message TypeName="DoNotCallOverridableMethodsInConstructors" Category="Microsoft.Usage" CheckId="CA2214" Created="2009-05-01 03:14:45Z"> 315 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="104 9">315 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="1048"> 316 316 <Item>'DirectExecutor.DirectExecutor()'</Item> 317 317 <Item>

DirectExecutor..ctor()
Executor.set_TaskAdded(EventHandler<TaskEventArgs>):Void
Executor.set_TaskDeleted(EventHandler<TaskEventArgs>):Void
Executor.set_Tasks(ExecutorTasksCollection):Void</Item> … … 323 323 <Messages> 324 324 <Message TypeName="DoNotCastUnnecessarily" Category="Microsoft.Performance" CheckId="CA1800" Created="2009-05-01 03:14:45Z"> 325 <Issue Name="Parameter" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="97 7">325 <Issue Name="Parameter" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="976"> 326 326 <Item>'target'</Item> 327 327 <Item>'FolderTarget'</Item> … … 412 412 <Messages> 413 413 <Message TypeName="DoNotRaiseExceptionsInUnexpectedLocations" Category="Microsoft.Design" CheckId="CA1065" Created="2009-07-03 06:55:12Z" FixCategory="Breaking"> 414 <Issue Name="PropertyGetter" Level="Warning" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="29 4">414 <Issue Name="PropertyGetter" Level="Warning" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="296"> 415 415 <Item>'ErasureTarget.Method.get()'</Item> 416 416 <Item>'NotImplementedException'</Item> … … 462 462 <Messages> 463 463 <Message Id="1#" TypeName="AvoidOutParameters" Category="Microsoft.Design" CheckId="CA1021" Created="2009-05-01 03:23:16Z"> 464 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="38 2">464 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="384"> 465 465 <Item>'totalSize'</Item> 466 466 </Issue> … … 492 492 <Messages> 493 493 <Message TypeName="CollectionPropertiesShouldBeReadOnly" Category="Microsoft.Usage" CheckId="CA2227" Created="2009-05-01 03:14:45Z"> 494 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="3 57">494 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="339"> 495 495 <Item>'ManagerSettings.PlausibleDeniabilityFiles'</Item> 496 496 </Issue> 497 497 </Message> 498 498 <Message TypeName="DoNotExposeGenericLists" Category="Microsoft.Design" CheckId="CA1002" Created="2009-05-01 03:14:45Z"> 499 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="3 57">499 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="339"> 500 500 <Item>'List<string>'</Item> 501 501 <Item>'ManagerSettings.PlausibleDeniabilityFiles'</Item> … … 507 507 <Messages> 508 508 <Message TypeName="CollectionPropertiesShouldBeReadOnly" Category="Microsoft.Usage" CheckId="CA2227" Created="2009-05-01 03:14:45Z"> 509 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="4 90">509 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Settings.cs" Line="472"> 510 510 <Item>'ManagerSettings.PluginApprovals'</Item> 511 511 </Issue> … … 637 637 </Messages> 638 638 </Member> 639 <Member Name="#Items">640 <Messages>641 <Message TypeName="DoNotExposeGenericLists" Category="Microsoft.Design" CheckId="CA1002" Created="2009-06-02 07:31:56Z">642 <Issue Path="d:\development\projects\eraser\eraser.unlocker" File="eraser.unlocker.cpp" Line="28">643 <Item>'List<OpenHandle>'</Item>644 <Item>'OpenHandle.Items'</Item>645 </Issue>646 </Message>647 </Messages>648 </Member>649 639 <Member Name="#ResolveHandlePath(System.IntPtr,System.Int32)"> 650 640 <Messages> … … 741 731 <Issue Path="D:\Development\Projects\Eraser\Eraser.DefaultPlugins" File="CustomMethodPassEditor.cs" Line="57"> 742 732 <Item>'CustomMethodPassEditor.PassData'</Item> 743 </Issue>744 </Message>745 </Messages>746 </Member>747 </Members>748 </Type>749 <Type Name="FirstLast16KB">750 <Members>751 <Member Name="#.ctor()">752 <Messages>753 <Message TypeName="DoNotCallOverridableMethodsInConstructors" Category="Microsoft.Usage" CheckId="CA2214" Created="2009-04-28 13:43:02Z">754 <Issue Path="D:\Development\Projects\Eraser\Eraser.DefaultPlugins" File="EraseFirstLast16KB.cs" Line="36">755 <Item>'FirstLast16KB.FirstLast16KB()'</Item>756 <Item>

FirstLast16KB..ctor()
ErasureMethod.get_Name():String</Item>757 733 </Issue> 758 734 </Message> -
trunk/eraser6/Eraser/BasePanel.Designer.cs
r1091 r1158 51 51 { 52 52 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BasePanel)); 53 this. TitleLabel = new System.Windows.Forms.Label();54 this. Content = new System.Windows.Forms.Panel();55 this. TitleIcon = new System.Windows.Forms.PictureBox();56 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).BeginInit();53 this.titleLabel = new System.Windows.Forms.Label(); 54 this.content = new System.Windows.Forms.Panel(); 55 this.titleIcon = new System.Windows.Forms.PictureBox(); 56 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).BeginInit(); 57 57 this.SuspendLayout(); 58 58 // 59 59 // titleLabel 60 60 // 61 resources.ApplyResources(this. TitleLabel, "titleLabel");62 this. TitleLabel.Name = "titleLabel";61 resources.ApplyResources(this.titleLabel, "titleLabel"); 62 this.titleLabel.Name = "titleLabel"; 63 63 // 64 64 // content 65 65 // 66 resources.ApplyResources(this. Content, "content");67 this. Content.Name = "content";66 resources.ApplyResources(this.content, "content"); 67 this.content.Name = "content"; 68 68 // 69 69 // titleIcon 70 70 // 71 resources.ApplyResources(this. TitleIcon, "titleIcon");72 this. TitleIcon.Name = "titleIcon";73 this. TitleIcon.TabStop = false;71 resources.ApplyResources(this.titleIcon, "titleIcon"); 72 this.titleIcon.Name = "titleIcon"; 73 this.titleIcon.TabStop = false; 74 74 // 75 75 // BasePanel 76 76 // 77 77 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 78 this.Controls.Add(this. Content);79 this.Controls.Add(this. TitleIcon);80 this.Controls.Add(this. TitleLabel);78 this.Controls.Add(this.content); 79 this.Controls.Add(this.titleIcon); 80 this.Controls.Add(this.titleLabel); 81 81 this.Name = "BasePanel"; 82 82 resources.ApplyResources(this, "$this"); 83 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).EndInit();83 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).EndInit(); 84 84 this.ResumeLayout(false); 85 85 this.PerformLayout(); … … 89 89 #endregion 90 90 91 private System.Windows.Forms.Label titleLabel; 92 private System.Windows.Forms.PictureBox titleIcon; 93 private System.Windows.Forms.Panel content; 94 91 protected System.Windows.Forms.Label titleLabel; 92 protected System.Windows.Forms.PictureBox titleIcon; 93 protected System.Windows.Forms.Panel content; 95 94 } 96 95 } -
trunk/eraser6/Eraser/BasePanel.cs
r1091 r1158 30 30 namespace Eraser 31 31 { 32 publicpartial class BasePanel : UserControl32 internal partial class BasePanel : UserControl 33 33 { 34 34 public BasePanel() … … 37 37 titleLabel.Font = new Font(SystemFonts.MessageBoxFont.Name, 18f); 38 38 } 39 40 /// <summary>41 /// The content panel displaying controls for the current panel42 /// </summary>43 protected Panel Content44 {45 get { return content; }46 set { content = value; }47 }48 49 /// <summary>50 /// The title of the current panel51 /// </summary>52 protected Label TitleLabel53 {54 get { return titleLabel; }55 set { titleLabel = value; }56 }57 58 /// <summary>59 /// The icon representing the content of the current panel60 /// </summary>61 protected PictureBox TitleIcon62 {63 get { return titleIcon; }64 set { titleIcon = value; }65 }66 39 } 67 40 } -
trunk/eraser6/Eraser/SchedulerPanel.Designer.cs
r1091 r1158 67 67 this.schedulerDefaultMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 68 68 this.newTaskToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).BeginInit();70 this. Content.SuspendLayout();69 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).BeginInit(); 70 this.content.SuspendLayout(); 71 71 this.schedulerMenu.SuspendLayout(); 72 72 this.schedulerDefaultMenu.SuspendLayout(); … … 75 75 // titleLabel 76 76 // 77 resources.ApplyResources(this. TitleLabel, "titleLabel");77 resources.ApplyResources(this.titleLabel, "titleLabel"); 78 78 // 79 79 // titleIcon 80 80 // 81 this. TitleIcon.Image = global::Eraser.Properties.Resources.ToolbarSchedule;81 this.titleIcon.Image = global::Eraser.Properties.Resources.ToolbarSchedule; 82 82 // 83 83 // content 84 84 // 85 this. Content.Controls.Add(this.schedulerProgress);86 this. Content.Controls.Add(this.scheduler);85 this.content.Controls.Add(this.schedulerProgress); 86 this.content.Controls.Add(this.scheduler); 87 87 // 88 88 // scheduler … … 202 202 this.DoubleBuffered = true; 203 203 this.Name = "SchedulerPanel"; 204 this.Controls.SetChildIndex(this. TitleLabel, 0);205 this.Controls.SetChildIndex(this. TitleIcon, 0);206 this.Controls.SetChildIndex(this. Content, 0);207 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).EndInit();208 this. Content.ResumeLayout(false);204 this.Controls.SetChildIndex(this.titleLabel, 0); 205 this.Controls.SetChildIndex(this.titleIcon, 0); 206 this.Controls.SetChildIndex(this.content, 0); 207 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).EndInit(); 208 this.content.ResumeLayout(false); 209 209 this.schedulerMenu.ResumeLayout(false); 210 210 this.schedulerDefaultMenu.ResumeLayout(false); -
trunk/eraser6/Eraser/SchedulerPanel.cs
r1102 r1158 38 38 namespace Eraser 39 39 { 40 publicpartial class SchedulerPanel : Eraser.BasePanel40 internal partial class SchedulerPanel : Eraser.BasePanel 41 41 { 42 42 public SchedulerPanel() -
trunk/eraser6/Eraser/SettingsPanel.Designer.cs
r1091 r1158 23 23 namespace Eraser 24 24 { 25 partial class SettingsPanel : Eraser.BasePanel25 partial class SettingsPanel 26 26 { 27 27 /// <summary> … … 55 55 this.ui = new Eraser.LightGroup(); 56 56 this.uiContextMenu = new System.Windows.Forms.CheckBox(); 57 this.lockedAllow = new System.Windows.Forms.CheckBox(); 58 this.lockedConfirm = new System.Windows.Forms.CheckBox(); 57 this.lockedForceUnlock = new System.Windows.Forms.CheckBox(); 59 58 this.erase = new Eraser.LightGroup(); 60 59 this.eraseFilesMethodLbl = new System.Windows.Forms.Label(); … … 89 88 this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); 90 89 this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); 91 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).BeginInit();92 this. Content.SuspendLayout();90 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).BeginInit(); 91 this.content.SuspendLayout(); 93 92 this.pluginsMenu.SuspendLayout(); 94 93 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 95 94 this.SuspendLayout(); 96 95 // 97 // titleL bl98 // 99 this.errorProvider.SetIconAlignment( base.TitleLabel, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("titleLbl.IconAlignment"))));100 resources.ApplyResources( base.TitleLabel, "titleLbl");96 // titleLabel 97 // 98 this.errorProvider.SetIconAlignment(this.titleLabel, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("titleLabel.IconAlignment")))); 99 resources.ApplyResources(this.titleLabel, "titleLabel"); 101 100 // 102 101 // titleIcon 103 102 // 104 this.errorProvider.SetIconAlignment(this. TitleIcon, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("titleIcon.IconAlignment"))));105 this. TitleIcon.Image = global::Eraser.Properties.Resources.ToolbarSettings;103 this.errorProvider.SetIconAlignment(this.titleIcon, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("titleIcon.IconAlignment")))); 104 this.titleIcon.Image = global::Eraser.Properties.Resources.ToolbarSettings; 106 105 // 107 106 // content 108 107 // 109 this.Content.Controls.Add(this.schedulerClearCompleted); 110 this.Content.Controls.Add(this.plausibleDeniabilityFilesAddFolder); 111 this.Content.Controls.Add(this.plausibleDeniabilityFilesRemove); 112 this.Content.Controls.Add(this.plausibleDeniabilityFilesAddFile); 113 this.Content.Controls.Add(this.plausibleDeniabilityFiles); 114 this.Content.Controls.Add(this.uiLanguage); 115 this.Content.Controls.Add(this.uiLanguageLbl); 116 this.Content.Controls.Add(this.plausibleDeniability); 117 this.Content.Controls.Add(this.erasePRNG); 118 this.Content.Controls.Add(this.erasePRNGLbl); 119 this.Content.Controls.Add(this.schedulerMissedIgnore); 120 this.Content.Controls.Add(this.schedulerMissedImmediate); 121 this.Content.Controls.Add(this.schedulerMissed); 122 this.Content.Controls.Add(this.scheduler); 123 this.Content.Controls.Add(this.pluginsManager); 124 this.Content.Controls.Add(this.plugins); 125 this.Content.Controls.Add(this.eraseUnusedMethod); 126 this.Content.Controls.Add(this.eraseFilesMethod); 127 this.Content.Controls.Add(this.eraseUnusedMethodLbl); 128 this.Content.Controls.Add(this.eraseFilesMethodLbl); 129 this.Content.Controls.Add(this.erase); 130 this.Content.Controls.Add(this.lockedConfirm); 131 this.Content.Controls.Add(this.lockedAllow); 132 this.Content.Controls.Add(this.uiContextMenu); 133 this.Content.Controls.Add(this.ui); 134 this.errorProvider.SetIconAlignment(this.Content, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("content.IconAlignment")))); 135 resources.ApplyResources(this.Content, "content"); 108 this.content.Controls.Add(this.schedulerClearCompleted); 109 this.content.Controls.Add(this.plausibleDeniabilityFilesAddFolder); 110 this.content.Controls.Add(this.plausibleDeniabilityFilesRemove); 111 this.content.Controls.Add(this.plausibleDeniabilityFilesAddFile); 112 this.content.Controls.Add(this.plausibleDeniabilityFiles); 113 this.content.Controls.Add(this.uiLanguage); 114 this.content.Controls.Add(this.uiLanguageLbl); 115 this.content.Controls.Add(this.plausibleDeniability); 116 this.content.Controls.Add(this.erasePRNG); 117 this.content.Controls.Add(this.erasePRNGLbl); 118 this.content.Controls.Add(this.schedulerMissedIgnore); 119 this.content.Controls.Add(this.schedulerMissedImmediate); 120 this.content.Controls.Add(this.schedulerMissed); 121 this.content.Controls.Add(this.scheduler); 122 this.content.Controls.Add(this.pluginsManager); 123 this.content.Controls.Add(this.plugins); 124 this.content.Controls.Add(this.eraseUnusedMethod); 125 this.content.Controls.Add(this.eraseFilesMethod); 126 this.content.Controls.Add(this.eraseUnusedMethodLbl); 127 this.content.Controls.Add(this.eraseFilesMethodLbl); 128 this.content.Controls.Add(this.erase); 129 this.content.Controls.Add(this.lockedForceUnlock); 130 this.content.Controls.Add(this.uiContextMenu); 131 this.content.Controls.Add(this.ui); 132 this.errorProvider.SetIconAlignment(this.content, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("content.IconAlignment")))); 133 resources.ApplyResources(this.content, "content"); 136 134 // 137 135 // ui … … 150 148 this.uiContextMenu.UseVisualStyleBackColor = true; 151 149 // 152 // lockedAllow 153 // 154 resources.ApplyResources(this.lockedAllow, "lockedAllow"); 155 this.lockedAllow.Checked = true; 156 this.lockedAllow.CheckState = System.Windows.Forms.CheckState.Checked; 157 this.errorProvider.SetIconAlignment(this.lockedAllow, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("lockedAllow.IconAlignment")))); 158 this.lockedAllow.Name = "lockedAllow"; 159 this.lockedAllow.UseVisualStyleBackColor = true; 160 this.lockedAllow.CheckedChanged += new System.EventHandler(this.lockedAllow_CheckedChanged); 161 // 162 // lockedConfirm 163 // 164 resources.ApplyResources(this.lockedConfirm, "lockedConfirm"); 165 this.errorProvider.SetIconAlignment(this.lockedConfirm, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("lockedConfirm.IconAlignment")))); 166 this.lockedConfirm.Name = "lockedConfirm"; 167 this.lockedConfirm.UseVisualStyleBackColor = true; 150 // lockedForceUnlock 151 // 152 resources.ApplyResources(this.lockedForceUnlock, "lockedForceUnlock"); 153 this.lockedForceUnlock.Checked = true; 154 this.lockedForceUnlock.CheckState = System.Windows.Forms.CheckState.Checked; 155 this.errorProvider.SetIconAlignment(this.lockedForceUnlock, ((System.Windows.Forms.ErrorIconAlignment)(resources.GetObject("lockedForceUnlock.IconAlignment")))); 156 this.lockedForceUnlock.Name = "lockedForceUnlock"; 157 this.lockedForceUnlock.UseVisualStyleBackColor = true; 168 158 // 169 159 // erase … … 391 381 resources.ApplyResources(this, "$this"); 392 382 this.Controls.SetChildIndex(this.saveSettings, 0); 393 this.Controls.SetChildIndex(this. TitleLabel, 0);394 this.Controls.SetChildIndex(this. TitleIcon, 0);395 this.Controls.SetChildIndex(this. Content, 0);396 ((System.ComponentModel.ISupportInitialize)(this. TitleIcon)).EndInit();397 this. Content.ResumeLayout(false);398 this. Content.PerformLayout();383 this.Controls.SetChildIndex(this.titleLabel, 0); 384 this.Controls.SetChildIndex(this.titleIcon, 0); 385 this.Controls.SetChildIndex(this.content, 0); 386 ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).EndInit(); 387 this.content.ResumeLayout(false); 388 this.content.PerformLayout(); 399 389 this.pluginsMenu.ResumeLayout(false); 400 390 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); … … 406 396 #endregion 407 397 408 private System.Windows.Forms.CheckBox lockedConfirm; 409 private System.Windows.Forms.CheckBox lockedAllow; 398 private System.Windows.Forms.CheckBox lockedForceUnlock; 410 399 private System.Windows.Forms.CheckBox uiContextMenu; 411 400 private LightGroup ui; -
trunk/eraser6/Eraser/SettingsPanel.cs
r1101 r1158 38 38 namespace Eraser 39 39 { 40 public partial class SettingsPanel40 internal partial class SettingsPanel : BasePanel 41 41 { 42 42 public SettingsPanel() … … 179 179 180 180 uiContextMenu.Checked = settings.IntegrateWithShell; 181 lockedAllow.Checked = 182 ManagerLibrary.Settings.EraseLockedFilesOnRestart; 183 lockedConfirm.Checked = 184 ManagerLibrary.Settings.ConfirmEraseOnRestart; 185 lockedAllow_CheckedChanged(lockedAllow, new EventArgs()); 181 lockedForceUnlock.Checked = 182 ManagerLibrary.Settings.ForceUnlockLockedFiles; 186 183 schedulerMissedImmediate.Checked = 187 184 ManagerLibrary.Settings.ExecuteMissedTasksImmediately; … … 250 247 } 251 248 252 private void lockedAllow_CheckedChanged(object sender, EventArgs e)253 {254 lockedConfirm.Enabled = lockedAllow.Checked;255 }256 257 249 private void plausableDeniabilityFilesRemoveUpdate() 258 250 { … … 349 341 350 342 //Save the settings that don't fail first. 351 managerSettings.EraseLockedFilesOnRestart = lockedAllow.Checked; 352 managerSettings.ConfirmEraseOnRestart = lockedConfirm.Checked; 343 managerSettings.ForceUnlockLockedFiles = lockedForceUnlock.Checked; 353 344 managerSettings.ExecuteMissedTasksImmediately = schedulerMissedImmediate.Checked; 354 345 settings.ClearCompletedTasks = schedulerClearCompleted.Checked; -
trunk/eraser6/Eraser/SettingsPanel.resx
r858 r1158 221 221 </data> 222 222 <data name=">>$this.Type" xml:space="preserve"> 223 <value>Eraser.BasePanel, Eraser, Version=6.0. 3.847, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value>223 <value>Eraser.BasePanel, Eraser, Version=6.0.5.1157, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value> 224 224 </data> 225 225 <data name="titleIcon.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms"> … … 242 242 </data> 243 243 <data name="schedulerClearCompleted.Location" type="System.Drawing.Point, System.Drawing"> 244 <value>20, 4 51</value>244 <value>20, 427</value> 245 245 </data> 246 246 <data name="schedulerClearCompleted.Size" type="System.Drawing.Size, System.Drawing"> … … 272 272 </data> 273 273 <data name="plausibleDeniabilityFilesAddFolder.Location" type="System.Drawing.Point, System.Drawing"> 274 <value>543, 2 36</value>274 <value>543, 212</value> 275 275 </data> 276 276 <data name="plausibleDeniabilityFilesAddFolder.Size" type="System.Drawing.Size, System.Drawing"> … … 302 302 </data> 303 303 <data name="plausibleDeniabilityFilesRemove.Location" type="System.Drawing.Point, System.Drawing"> 304 <value>634, 2 36</value>304 <value>634, 212</value> 305 305 </data> 306 306 <data name="plausibleDeniabilityFilesRemove.Size" type="System.Drawing.Size, System.Drawing"> … … 332 332 </data> 333 333 <data name="plausibleDeniabilityFilesAddFile.Location" type="System.Drawing.Point, System.Drawing"> 334 <value>462, 2 36</value>334 <value>462, 212</value> 335 335 </data> 336 336 <data name="plausibleDeniabilityFilesAddFile.Size" type="System.Drawing.Size, System.Drawing"> … … 362 362 </data> 363 363 <data name="plausibleDeniabilityFiles.Location" type="System.Drawing.Point, System.Drawing"> 364 <value>36, 2 63</value>364 <value>36, 239</value> 365 365 </data> 366 366 <data name="plausibleDeniabilityFiles.Size" type="System.Drawing.Size, System.Drawing"> … … 443 443 </data> 444 444 <data name="plausibleDeniability.Location" type="System.Drawing.Point, System.Drawing"> 445 <value>20, 2 40</value>445 <value>20, 216</value> 446 446 </data> 447 447 <data name="plausibleDeniability.Size" type="System.Drawing.Size, System.Drawing"> … … 527 527 </data> 528 528 <data name="schedulerMissedIgnore.Location" type="System.Drawing.Point, System.Drawing"> 529 <value>36, 511</value>529 <value>36, 487</value> 530 530 </data> 531 531 <data name="schedulerMissedIgnore.Size" type="System.Drawing.Size, System.Drawing"> … … 557 557 </data> 558 558 <data name="schedulerMissedImmediate.Location" type="System.Drawing.Point, System.Drawing"> 559 <value>36, 4 91</value>559 <value>36, 467</value> 560 560 </data> 561 561 <data name="schedulerMissedImmediate.Size" type="System.Drawing.Size, System.Drawing"> … … 587 587 </data> 588 588 <data name="schedulerMissed.Location" type="System.Drawing.Point, System.Drawing"> 589 <value>17, 4 75</value>589 <value>17, 451</value> 590 590 </data> 591 591 <data name="schedulerMissed.Size" type="System.Drawing.Size, System.Drawing"> … … 623 623 </data> 624 624 <data name="scheduler.Location" type="System.Drawing.Point, System.Drawing"> 625 <value>0, 413</value>625 <value>0, 389</value> 626 626 </data> 627 627 <data name="scheduler.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms"> … … 638 638 </data> 639 639 <data name=">>scheduler.Type" xml:space="preserve"> 640 <value>Eraser.LightGroup, Eraser, Version=6.0. 3.847, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value>640 <value>Eraser.LightGroup, Eraser, Version=6.0.5.1157, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value> 641 641 </data> 642 642 <data name=">>scheduler.Parent" xml:space="preserve"> … … 678 678 <data name="pluginsMenu.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms"> 679 679 <value>TopLeft</value> 680 </data>681 <data name="settingsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">682 <value>125, 22</value>683 </data>684 <data name="settingsToolStripMenuItem.Text" xml:space="preserve">685 <value>Settings...</value>686 680 </data> 687 681 <data name="pluginsMenu.Size" type="System.Drawing.Size, System.Drawing"> … … 718 712 </data> 719 713 <data name="pluginsManager.Location" type="System.Drawing.Point, System.Drawing"> 720 <value>20, 5 72</value>714 <value>20, 548</value> 721 715 </data> 722 716 <data name="pluginsManager.Size" type="System.Drawing.Size, System.Drawing"> … … 730 724 AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w 731 725 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 732 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACA 733 AwAAAk1TRnQBSQFMAwEBAAEEAQABBAEAARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA 734 ARADAAEBAQABIAYAARAuAAM/AW0BLQFKAXkB/wM6AWL0AAEiAXkBxwH/AUMBzQH8Af8BNQFaAYcB//QA 735 ASIBeQHHAf8BPAGgAdIB/wNEAXn0AAEiAXkBxwH/AUUB0QH8Af8BNQFaAYcB//QAASIBeQHHAf8BPgGh 736 AdEB/wNEAXn0AAEiAXkBxwH/AU8B4gH9Af8BNgFWAYAB//QAASIBeQHHAf8BVgHXAfwB/wE2AVYBgAH/ 737 8AADLQFGASIBeQHHAf8BbAHeAfwB/wE2AVYBgAH/AyQBNegAAzUBVgEvAYcBxwH/AVkBwAHwAf8BTgHL 738 Af4B/wFPAbMB3QH/AToBSwFkAf8DKgFB4AADMQFNAS8BhwHIAf8BUAG6AfcB/wFSAcIB+QH/AUgBtwH5 739 Af8BZgHWAfsB/wFDAaYB6AH/AToBSgFiAf8DJAE23AABVAFoAXsB4QFSAcEB+QH/AU4BtwH5Af8BkwHu 740 Af4B/wGPAewB/gH/AVABtAHzAf8BjQHjAf4B/wFNAboB4gH/AVcBWwFhAdrcAAE4AXsBsQH8AVcBxgH5 741 Af8BZwGKAawB/wFnAYoBrAH/AWcBigGsAf8BZwGKAawB/wFnAYoBrAH/AWAB1QH6Af8BNgFHAWYB/NwA 742 AVMBbQGCAecBWgHSAfoB/wFIAWIBhAH/DAABSwGQAcEB/wFRAbsB4QH/AVQBVwFfAd/cAAJMAU0BkgFE 743 AZ0B0AH/AXgB4wH6Af8BSAGFAZ4B/wFPAWIBhwH/AU8BdAGcAf8BWwF8AYoB4QFGAYwBqgH/A0gBhdwA 744 AxIBGAFTAlYBrAFEAZoBzQH/AWwB1QH1Af8BbwHpAf4B/wFrAdQB8wH/AUgBkgGyAf8BTwJRAZwDFwEg 745 4AADEgEYA0cBggFXAV4BYQHHAUMBhgGnAfsBVwFmAXUB2wNHAYIDFwEg0AABQgFNAT4HAAE+AwABKAMA 746 AUADAAEQAwABAQEAAQEFAAGAFwAD/wEAAf4BPwYAAf4BPwYAAf4BPwYAAf4BPwYAAf4BPwYAAf4BPwYA 747 Af4BPwYAAfwBHwYAAfgBDwYAAfABBwYAAfABBwYAAfABBwYAAfEBxwYAAfABBwYAAfABBwYAAfgBDwYA 748 Cw== 726 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAB8 727 AwAAAk1TRnQBSQFMAwEBAAEUAQABFAEAARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA 728 ARADAAEBAQABIAYAARAuAAM/AW0BKwFIAXcB/wM6AWL0AAEgAXcBxwH/AUEBzQH8Af8BMwFYAYcB//QA 729 ASABdwHHAf8BOgGgAdIB/wNEAXn0AAEgAXcBxwH/AUMB0QH8Af8BMwFYAYcB//QAASABdwHHAf8BPAGh 730 AdEB/wNEAXn0AAEgAXcBxwH/AU0B4gH9Af8BNAFUAYAB//QAASABdwHHAf8BVAHXAfwB/wE0AVQBgAH/ 731 8AADLQFGASABdwHHAf8BagHeAfwB/wE0AVQBgAH/AyQBNegAAzUBVgEtAYcBxwH/AVcBwAHwAf8BTAHL 732 Af4B/wFNAbMB3QH/ATgBSQFiAf8DKgFB4AADMQFNAS0BhwHIAf8BTgG6AfcB/wFQAcIB+QH/AUYBtwH5 733 Af8BZAHWAfsB/wFBAaYB6AH/ATgBSAFgAf8DJAE23AABWAFkAXEB4QFQAcEB+QH/AUwBtwH5Af8BkwHu 734 Af4B/wGPAewB/gH/AU4BtAHzAf8BjQHjAf4B/wFLAboB4gH/AVoBXQFhAdrcAAE2AXkBrQH8AVUBxgH5 735 Af8BZQGKAawB/wFlAYoBrAH/AWUBigGsAf8BZQGKAawB/wFlAYoBrAH/AV4B1QH6Af8BNAFDAWQB/NwA 736 AVUBaQF4AecBWAHSAfoB/wFGAWABhAH/DAABSQGQAcEB/wFPAbsB4QH/AlcBXQHf3AADTAGSAUIBnQHQ 737 Af8BdgHjAfoB/wFGAYUBngH/AU0BYAGHAf8BTQFyAZwB/wFbAXEBewHhAUQBjAGqAf8DSAGF3AADEgEY 738 AVMCVAGsAUIBmgHNAf8BagHVAfUB/wFtAekB/gH/AWkB1AHzAf8BRgGSAbIB/wFPAlEBnAMXASDgAAMS 739 ARgDRwGCAVkBWwFcAccBQwGEAZ8B+wFaAWMBagHbA0cBggMXASDQAAFCAU0BPgcAAT4DAAEoAwABQAMA 740 ARADAAEBAQABAQUAAYAXAAP/AQAB/gE/BgAB/gE/BgAB/gE/BgAB/gE/BgAB/gE/BgAB/gE/BgAB/gE/ 741 BgAB/AEfBgAB+AEPBgAB8AEHBgAB8AEHBgAB8AEHBgAB8QHHBgAB8AEHBgAB8AEHBgAB+AEPBgAL 749 742 </value> 750 743 </data> … … 777 770 </data> 778 771 <data name="plugins.Location" type="System.Drawing.Point, System.Drawing"> 779 <value>0, 5 34</value>772 <value>0, 510</value> 780 773 </data> 781 774 <data name="plugins.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms"> … … 792 785 </data> 793 786 <data name=">>plugins.Type" xml:space="preserve"> 794 <value>Eraser.LightGroup, Eraser, Version=6.0. 3.847, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value>787 <value>Eraser.LightGroup, Eraser, Version=6.0.5.1157, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value> 795 788 </data> 796 789 <data name=">>plugins.Parent" xml:space="preserve"> … … 936 929 </data> 937 930 <data name=">>erase.Type" xml:space="preserve"> 938 <value>Eraser.LightGroup, Eraser, Version=6.0. 3.847, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value>931 <value>Eraser.LightGroup, Eraser, Version=6.0.5.1157, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value> 939 932 </data> 940 933 <data name=">>erase.Parent" xml:space="preserve"> … … 944 937 <value>20</value> 945 938 </data> 946 <data name="locked Confirm.AutoSize" type="System.Boolean, mscorlib">947 <value>True</value> 948 </data> 949 <data name="locked Confirm.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms">950 <value>TopLeft</value> 951 </data> 952 <data name="locked Confirm.Location" type="System.Drawing.Point, System.Drawing">953 <value> 36, 216</value>954 </data> 955 <data name="locked Confirm.Size" type="System.Drawing.Size, System.Drawing">956 <value> 182, 17</value>957 </data> 958 <data name="locked Confirm.TabIndex" type="System.Int32, mscorlib">959 <value>1 6</value>960 </data> 961 <data name="locked Confirm.Text" xml:space="preserve">962 <value> Confirm with user before doing so</value>963 </data> 964 <data name=">>locked Confirm.Name" xml:space="preserve">965 <value>locked Confirm</value>966 </data> 967 <data name=">>locked Confirm.Type" xml:space="preserve">939 <data name="lockedForceUnlock.AutoSize" type="System.Boolean, mscorlib"> 940 <value>True</value> 941 </data> 942 <data name="lockedForceUnlock.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms"> 943 <value>TopLeft</value> 944 </data> 945 <data name="lockedForceUnlock.Location" type="System.Drawing.Point, System.Drawing"> 946 <value>20, 193</value> 947 </data> 948 <data name="lockedForceUnlock.Size" type="System.Drawing.Size, System.Drawing"> 949 <value>236, 17</value> 950 </data> 951 <data name="lockedForceUnlock.TabIndex" type="System.Int32, mscorlib"> 952 <value>15</value> 953 </data> 954 <data name="lockedForceUnlock.Text" xml:space="preserve"> 955 <value>Force locked files to be unlocked for erasure</value> 956 </data> 957 <data name=">>lockedForceUnlock.Name" xml:space="preserve"> 958 <value>lockedForceUnlock</value> 959 </data> 960 <data name=">>lockedForceUnlock.Type" xml:space="preserve"> 968 961 <value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 969 962 </data> 970 <data name=">>locked Confirm.Parent" xml:space="preserve">971 <value>content</value> 972 </data> 973 <data name=">>locked Confirm.ZOrder" xml:space="preserve">963 <data name=">>lockedForceUnlock.Parent" xml:space="preserve"> 964 <value>content</value> 965 </data> 966 <data name=">>lockedForceUnlock.ZOrder" xml:space="preserve"> 974 967 <value>21</value> 975 </data>976 <data name="lockedAllow.AutoSize" type="System.Boolean, mscorlib">977 <value>True</value>978 </data>979 <data name="lockedAllow.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms">980 <value>TopLeft</value>981 </data>982 <data name="lockedAllow.Location" type="System.Drawing.Point, System.Drawing">983 <value>20, 193</value>984 </data>985 <data name="lockedAllow.Size" type="System.Drawing.Size, System.Drawing">986 <value>251, 17</value>987 </data>988 <data name="lockedAllow.TabIndex" type="System.Int32, mscorlib">989 <value>15</value>990 </data>991 <data name="lockedAllow.Text" xml:space="preserve">992 <value>Allow locked files to be erased on system restart</value>993 </data>994 <data name=">>lockedAllow.Name" xml:space="preserve">995 <value>lockedAllow</value>996 </data>997 <data name=">>lockedAllow.Type" xml:space="preserve">998 <value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>999 </data>1000 <data name=">>lockedAllow.Parent" xml:space="preserve">1001 <value>content</value>1002 </data>1003 <data name=">>lockedAllow.ZOrder" xml:space="preserve">1004 <value>22</value>1005 968 </data> 1006 969 <data name="uiContextMenu.AutoSize" type="System.Boolean, mscorlib"> … … 1032 995 </data> 1033 996 <data name=">>uiContextMenu.ZOrder" xml:space="preserve"> 1034 <value>2 3</value>997 <value>22</value> 1035 998 </data> 1036 999 <data name="ui.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms"> … … 1062 1025 </data> 1063 1026 <data name=">>ui.Type" xml:space="preserve"> 1064 <value>Eraser.LightGroup, Eraser, Version=6.0. 3.847, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value>1027 <value>Eraser.LightGroup, Eraser, Version=6.0.5.1157, Culture=neutral, PublicKeyToken=311f5aaf640c645d</value> 1065 1028 </data> 1066 1029 <data name=">>ui.Parent" xml:space="preserve"> … … 1068 1031 </data> 1069 1032 <data name=">>ui.ZOrder" xml:space="preserve"> 1070 <value>2 4</value>1033 <value>23</value> 1071 1034 </data> 1072 1035 <data name="content.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms"> … … 1074 1037 </data> 1075 1038 <data name="content.Size" type="System.Drawing.Size, System.Drawing"> 1076 <value>712, 810</value>1039 <value>712, 786</value> 1077 1040 </data> 1078 1041 <data name=">>content.Name" xml:space="preserve"> … … 1088 1051 <value>0</value> 1089 1052 </data> 1090 <data name="titleL bl.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms">1091 <value>TopLeft</value> 1092 </data> 1093 <data name="titleL bl.Size" type="System.Drawing.Size, System.Drawing">1053 <data name="titleLabel.IconAlignment" type="System.Windows.Forms.ErrorIconAlignment, System.Windows.Forms"> 1054 <value>TopLeft</value> 1055 </data> 1056 <data name="titleLabel.Size" type="System.Drawing.Size, System.Drawing"> 1094 1057 <value>101, 32</value> 1095 1058 </data> 1096 <data name="titleL bl.Text" xml:space="preserve">1059 <data name="titleLabel.Text" xml:space="preserve"> 1097 1060 <value>Settings</value> 1098 1061 </data> 1099 <data name=">>titleL bl.Name" xml:space="preserve">1100 <value>titleL bl</value>1101 </data> 1102 <data name=">>titleL bl.Type" xml:space="preserve">1062 <data name=">>titleLabel.Name" xml:space="preserve"> 1063 <value>titleLabel</value> 1064 </data> 1065 <data name=">>titleLabel.Type" xml:space="preserve"> 1103 1066 <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 1104 1067 </data> 1105 <data name=">>titleL bl.Parent" xml:space="preserve">1068 <data name=">>titleLabel.Parent" xml:space="preserve"> 1106 1069 <value>$this</value> 1107 1070 </data> 1108 <data name=">>titleL bl.ZOrder" xml:space="preserve">1071 <data name=">>titleLabel.ZOrder" xml:space="preserve"> 1109 1072 <value>2</value> 1073 </data> 1074 <data name="settingsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing"> 1075 <value>125, 22</value> 1076 </data> 1077 <data name="settingsToolStripMenuItem.Text" xml:space="preserve"> 1078 <value>Settings...</value> 1110 1079 </data> 1111 1080 <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Note: See TracChangeset
for help on using the changeset viewer.
