public void SetCommandEditor(CommandEditor searchPattern)
 {
     Search = searchPattern;
 }