Target Server/Port fixed in ListView

This commit is contained in:
DragonHunter 2015-05-10 17:39:20 +02:00
parent b7cad28b83
commit 58fcbe96f0
1 changed files with 5 additions and 0 deletions

View File

@ -54,12 +54,17 @@ namespace xServer.Forms
string TotalReceivedStr = GetSizeStr(ProxyClient.LengthReceived);
string TotalSendStr = GetSizeStr(ProxyClient.LengthSended);
ProxyClient.ListItem.SubItems[0].Text = ProxyClient.TargetServer;
ProxyClient.ListItem.SubItems[1].Text = ProxyClient.TargetPort.ToString();
if (ProxyClient.ListItem.SubItems[2].Text != TotalReceivedStr)
ProxyClient.ListItem.SubItems[2].Text = TotalReceivedStr;
if (ProxyClient.ListItem.SubItems[3].Text != TotalSendStr)
ProxyClient.ListItem.SubItems[3].Text = TotalSendStr;
if (!ProxyClient.IsConnected)
{
LvConnections.Items.Remove(ProxyClient.ListItem);