mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
改进NTT异常显示
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user