public void InitializeTool() { Debug.Assert(_parentControl is WipeModule, "ParentControl is not a WipeModule object"); wipeModule = _parentControl as WipeModule; FilterBox.Options = _options; FilterBox.Initialize(); }
public void InitializeTool() { wipeModule = _parentControl as WipeModule; if(_insertMode == false) { InsertButton.Text = "Save changes"; } else { InsertButton.Text = "Add Plugin"; } MethodInvoker invoker = new MethodInvoker(LoadPlugins); invoker.BeginInvoke(null, null); UpdateMethodInfo(); }
public void InitializeTool() { Debug.AssertType(_parentControl, typeof(WipeModule), "ParentControl is not a WipeModule object"); Debug.AssertNotNull(_folder, "Folder not set"); wipeModule = _parentControl as WipeModule; if(_insertMode == false) { InsertButton.Text = "Save changes"; FolderTextbox.Text = _folder.Path; PatternTextbox.Text = _folder.UseMask ? _folder.Mask : string.Empty; SubfoldersCheckbox.Checked = _folder.WipeSubfolders; DeleteCheckbox.Checked = _folder.DeleteFolders; if(_folder.FileFilter != null) { // always work with a copy of the file Filter FilterBox.FileFilter = (FileFilter)_folder.FileFilter.Clone(); FilterCheckbox.Checked = _folder.FileFilter.Enabled; } } else { InsertButton.Text = "Add Folder"; insertCount = 0; } UpdateMethodInfo(); }
public void InitializeTool() { Debug.AssertType(_parentControl, typeof(WipeModule), "ParentControl is not a WipeModule object"); Debug.AssertNotNull(_drive, "Drive not set"); wipeModule = _parentControl as WipeModule; if(_insertMode == false) { InsertButton.Text = "Save changes"; // load the options FreeSpaceCheckbox.Checked = _drive.WipeFreeSpace; ClusterTipsCheckbox.Checked = _drive.WipeClusterTips; MFTCheckbox.Checked = _drive.WipeMFT; } else { InsertButton.Text = "Add Free Space"; insertCount = 0; } UpdateMethodInfo(); }