1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-22 20:33:26 +00:00

Merge pull request #8 from cookta2012/feature-friendly-names

Friendly name comments
This commit is contained in:
Ylian Saint-Hilaire
2020-09-16 11:27:10 -07:00
committed by GitHub
8 changed files with 220 additions and 66 deletions

View File

@@ -14,6 +14,7 @@ namespace MeshCentralRouter
{
public partial class MapUserControl : UserControl
{
public string ruleName;
public int protocol;
public int localPort;
public string remoteIP = null;
@@ -45,7 +46,14 @@ namespace MeshCentralRouter
public void UpdateInfo()
{
deviceNameLabel.Text = node.name;
if(this.ruleName != null)
{
deviceNameLabel.Text = node.name + ": " + this.ruleName;
}
else
{
deviceNameLabel.Text = node.name;
}
devicePictureBox.Image = deviceImageList.Images[node.icon - 1];
}