From 2f5fe06987495202df84ebaad408325a61edbc9c Mon Sep 17 00:00:00 2001 From: InterfaceGUI Date: Wed, 23 Jan 2019 20:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DiscordGameServersStatus/ServerlistForm.vb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/DiscordGameServersStatus/DiscordGameServersStatus/ServerlistForm.vb b/DiscordGameServersStatus/DiscordGameServersStatus/ServerlistForm.vb index d082a1f..4cbeaf9 100644 --- a/DiscordGameServersStatus/DiscordGameServersStatus/ServerlistForm.vb +++ b/DiscordGameServersStatus/DiscordGameServersStatus/ServerlistForm.vb @@ -16,12 +16,18 @@ Public Class ServerlistForm Private Sub ServerlistForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load DataGridView1.RowHeadersWidth = 50 If My.Settings.ServersName IsNot Nothing Then + If My.Settings.ServerEN Is Nothing Then + For i = 0 To My.Settings.ServersName.Count - 1 + 生成按鈕(i, My.Settings.ServersName(i), My.Settings.Serversip(i), My.Settings.ServersGame(i), 0) + Next + Else + For i = 0 To My.Settings.ServersName.Count - 1 - For i = 0 To My.Settings.ServersName.Count - 1 + 生成按鈕(i, My.Settings.ServersName(i), My.Settings.Serversip(i), My.Settings.ServersGame(i), My.Settings.ServerEN(i)) - 生成按鈕(i, My.Settings.ServersName(i), My.Settings.Serversip(i), My.Settings.ServersGame(i), My.Settings.ServerEN(i)) + Next + End If - Next serverCount = My.Settings.ServersName.Count - 1