@@ -10,7 +10,10 @@ namespace ModelsLib
|
||||
}
|
||||
public PhotoUnit(string photoPath)
|
||||
{
|
||||
Thumb = photoPath.Insert(photoPath.LastIndexOf("\\") + 1, "thumb\\");
|
||||
var directory = Path.GetDirectoryName(photoPath);
|
||||
var filename = Path.GetFileName(photoPath);
|
||||
|
||||
Thumb = Path.Combine(directory!, "thumb", filename);
|
||||
PhotoPath = photoPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user