From 71028fd6a92904005c97f23c52431e14ee8a09d7 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Wed, 14 Jul 2021 13:44:25 +0800 Subject: [PATCH] Disable Edit Server if the server belong with a group --- Netch/Forms/ServerForm.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Netch/Forms/ServerForm.cs b/Netch/Forms/ServerForm.cs index 0a0daa7e..10909311 100644 --- a/Netch/Forms/ServerForm.cs +++ b/Netch/Forms/ServerForm.cs @@ -1,13 +1,13 @@ #nullable disable -using Netch.Models; -using Netch.Properties; -using Netch.Utils; using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Windows.Forms; +using Netch.Models; +using Netch.Properties; +using Netch.Utils; namespace Netch.Forms { @@ -74,6 +74,8 @@ namespace Netch.Forms AddSaveButton(); i18N.TranslateForm(this); + ConfigurationGroupBox.Enabled = string.IsNullOrEmpty(Server.Remark); + ConfigurationGroupBox.ResumeLayout(false); ConfigurationGroupBox.PerformLayout(); ResumeLayout(false);