改进NTT异常显示

This commit is contained in:
ChsBuffer
2020-08-29 10:26:14 +08:00
parent 81da544108
commit 18963fa14b
3 changed files with 34 additions and 41 deletions

View File

@@ -126,6 +126,7 @@ namespace Netch.Forms
{
NatTypeStatusLabel.Text = String.Format("NAT{0}{1}", i18N.Translate(": "), text);
}
if (int.TryParse(text, out int natType))
{
if (natType > 0 && natType < 5)
@@ -134,6 +135,10 @@ namespace Netch.Forms
UpdateNatTypeLight(natType);
}
}
else
{
NatTypeStatusLightLabel.Visible = false;
}
}
else
{