private void textBoxSearch_TextChanged(object sender, EventArgs e)
{
var textContent = getContent();
var lookfor = getLookForCharacter(textContent);
var text = getLastParameter(lookfor, textContent);
var dir = preparePath(textContent, lookfor, text);
if (_directoryMode)
{
if (_lastDirectory == _directory)
dir = Path.Combine(_lastDirectory, dir);
listDirectories(dir);
return;
}
else
{
var path = "/" + textContent.Trim().Replace(' ', '/');
_builder.NavigateTo(path);
listOptions();
}
}