You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
631 B
24 lines
631 B
using System.Windows.Controls;
|
|
|
|
namespace WhackerLinkConsoleV2.Controls
|
|
{
|
|
public partial class SystemStatusBox : UserControl
|
|
{
|
|
public string SystemName { get; set; }
|
|
public string AddressPort { get; set; }
|
|
public string ConnectionState { get; set; } = "Disconnected";
|
|
|
|
public SystemStatusBox()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = this;
|
|
}
|
|
|
|
public SystemStatusBox(string systemName, string address, int port) : this()
|
|
{
|
|
SystemName = systemName;
|
|
AddressPort = $"Address: {address}:{port}";
|
|
}
|
|
}
|
|
}
|