1
0
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:
Ylian Saint-Hilaire
2020-07-30 14:23:31 -07:00
parent 0806a06608
commit e574e5007f
8 changed files with 876 additions and 179 deletions

View File

@@ -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