private bool GetNameIsOk()
{
if (_collectionNameControl.Text.Trim().Length < 1)
{
return false;
}
if (_collectionNameControl.Text.IndexOfAny(Path.GetInvalidFileNameChars()) > -1)
{
return false;
}
_collectionInfo.PathToSettingsFile = CollectionSettings.GetPathForNewSettings(_destinationDirectory, _collectionNameControl.Text);
return !DestinationAlreadyExists && _collectionNameControl.Text.ToLowerInvariant() != "templates";
}