public SearchParameters(SearchParameters aParams)
 {
     Exclusions = new SerializableBindingList <CheckBoxModel>();
     foreach (CheckBoxModel exclusion in aParams.Exclusions)
     {
         Exclusions.Add(new CheckBoxModel(exclusion.Text, exclusion.Checked));
     }
     Pattern              = aParams.Pattern;
     Scope                = aParams.Scope;
     SearchDirectory      = aParams.SearchDirectory;
     IgnoreCase           = aParams.IgnoreCase;
     UseRegex             = aParams.UseRegex;
     SearchSubdirectories = aParams.SearchSubdirectories;
     WholeWord            = aParams.WholeWord;
     SortByFile           = aParams.SortByFile;
     FileNameSearch       = aParams.FileNameSearch;
     SearchInProgress     = aParams.SearchInProgress;
 }
 public SearchParameters()
 {
     Exclusions = new SerializableBindingList <CheckBoxModel>();
 }