protected override bool ApplyChanges() { ExcludedFiles.Clear(); foreach (string item in excludedFilesControl.ExcludedItems) { ExcludedFiles.Add(item); } ExcludedFolders.Clear(); foreach (string item in excludedFoldersControl.ExcludedItems) { ExcludedFolders.Add(item); } foreach (CheckBox child in tableLayoutPanel1.Controls) { string tag = (string)child.Tag; if (child.Checked) { if (!ExcludedAttributes.Contains(tag)) { ExcludedAttributes += tag; } } else { ExcludedAttributes = ExcludedAttributes.Replace(tag, string.Empty); } } return(true); }
protected bool ApplyChanges() { ExcludedFiles.Clear(); foreach (string item in excludedFilesControl.ExcludedItems) { ExcludedFiles.Add(item); } ExcludedFolders.Clear(); foreach (string item in excludedFoldersControl.ExcludedItems) { ExcludedFolders.Add(item); } return(true); }
/// <summary> /// Method for cleaning up. /// </summary> public override void Cleanup() { ExcludedFolders.Clear(); LibraryFolders.Clear(); AccessFolders.Clear(); }