feat: settings, installer banner
This commit is contained in:
@@ -12,7 +12,7 @@ namespace CarManagerV3
|
||||
internal class ImageManager
|
||||
{
|
||||
|
||||
private static string _imagePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\CarManagerV3\\images";
|
||||
private static string _imagePath = Properties.Settings.Default.DataLocation + "\\images";
|
||||
private static NetworkCredential myNetCred = null;
|
||||
private static bool disableImageFetch = false;
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CarManagerV3
|
||||
/// </summary>
|
||||
public static void InitializeImageFolder()
|
||||
{
|
||||
_imagePath = Properties.Settings.Default.DataLocation + "\\images";
|
||||
string path = _imagePath;
|
||||
|
||||
if (!System.IO.Directory.Exists(path))
|
||||
@@ -39,6 +40,7 @@ namespace CarManagerV3
|
||||
/// <returns>The image path for this Car.</returns>
|
||||
public static string GetImagePath(Car car)
|
||||
{
|
||||
_imagePath = Properties.Settings.Default.DataLocation + "\\images";
|
||||
string basePath = $"{_imagePath}/";
|
||||
string fileName = $"{car.Make}_{car.Model}_{car.Year}_{car.Color}.png";
|
||||
return basePath + fileName;
|
||||
|
||||
Reference in New Issue
Block a user