mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
Updated UI syle to handle many more devices.
This commit is contained in:
17
NodeClass.cs
17
NodeClass.cs
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
@@ -16,10 +17,24 @@ namespace MeshCentralRouter
|
||||
public int conn;
|
||||
public int rdpport;
|
||||
public ulong rights;
|
||||
public MeshClass mesh;
|
||||
public ListViewItem listitem;
|
||||
public DeviceUserControl control;
|
||||
public Dictionary<string, ulong> links;
|
||||
|
||||
public override string ToString() { return name; }
|
||||
|
||||
public string getStateString()
|
||||
{
|
||||
string status = "";
|
||||
if ((conn & 1) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.Agent; }
|
||||
if ((conn & 2) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.CIRA; }
|
||||
if ((conn & 4) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.AMT; }
|
||||
if ((conn & 8) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.Relay; }
|
||||
if ((conn & 16) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.MQTT; }
|
||||
if (status == "") { status = Properties.Resources.Offline; }
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
public class MeshClass
|
||||
|
||||
Reference in New Issue
Block a user