mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
Added customization support.
This commit is contained in:
14
MainForm.cs
14
MainForm.cs
@@ -251,6 +251,20 @@ namespace MeshCentralRouter
|
||||
// Right click action
|
||||
deviceDoubleClickAction = int.Parse(Settings.GetRegValue("DevDoubleClickClickAction", "0"));
|
||||
setDoubleClickDeviceAction();
|
||||
|
||||
// Load customizations
|
||||
bool showLicense = true;
|
||||
try { pictureBox1.Image = (Bitmap)Image.FromFile(@"customization\topbanner.png"); showLicense = false; } catch (Exception) { }
|
||||
try { pictureBox2.Image = pictureBox6.Image = (Bitmap)Image.FromFile(@"customization\logo.png"); showLicense = false; } catch (Exception) { }
|
||||
try { pictureBox3.Image = pictureBox4.Image = pictureBox5.Image = pictureBox7.Image = (Bitmap)Image.FromFile(@"customization\bottombanner.png"); showLicense = false; } catch (Exception) { }
|
||||
licenseLinkLabel.Visible = showLicense;
|
||||
try
|
||||
{
|
||||
string[] lines = File.ReadAllLines(@"customization\customize.txt");
|
||||
if (lines[0] != "") { this.Text = lines[0]; }
|
||||
if (lines[1] != "") { label1.Text = lines[1]; }
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
private void setDoubleClickDeviceAction()
|
||||
|
||||
Reference in New Issue
Block a user