private static bool AddUncPathItem(List<UncPathItem> pathItems, string name, string path)
{
bool hasError = true;
string message;
string uncPath = ShareExplorer.GetUncPathForLocalPath(path);
if (!String.IsNullOrEmpty(uncPath))
{
message = uncPath;
path = uncPath;
hasError = false;
}
else
{
message = path;
hasError = true;
}
pathItems.Add(new UncPathItem(name, path, message, hasError));
return hasError;
}