コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 /// <summary>
 /// Method for cleaning up.
 /// </summary>
 public override void Cleanup()
 {
     ExcludedFolders.Clear();
     LibraryFolders.Clear();
     AccessFolders.Clear();
 }