mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2026-02-22 04:13:24 +00:00
Fixed customization path.
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user