1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-22 04:13:24 +00:00

Fixed customization path.

This commit is contained in:
Ylian Saint-Hilaire
2021-03-02 16:25:58 -08:00
parent b818675738
commit 31a62a585f
4 changed files with 17 additions and 15 deletions

View File

@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.Windows.Forms;
namespace MeshCentralRouter
@@ -17,7 +13,8 @@ namespace MeshCentralRouter
InitializeComponent();
// Load customizations
try { helpPictureBox.Image = (Bitmap)Image.FromFile(@"customization\help.png"); } catch (Exception) { }
FileInfo selfExe = new FileInfo(Assembly.GetExecutingAssembly().Location);
try { helpPictureBox.Image = (Bitmap)Image.FromFile(Path.Combine(selfExe.Directory.FullName, @"customization\help.png")); } catch (Exception) { }
}
}
}