From 28cdeadd948b57e59e3182b8f48a973c8ef23705 Mon Sep 17 00:00:00 2001 From: Bengang Yuan Date: Tue, 24 Oct 2023 09:50:57 +0800 Subject: [PATCH] Resolve NRPE code review comments from Tina. --- XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs b/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs index 268a008ed..a5893066f 100644 --- a/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs +++ b/XenAdmin/SettingsPanels/NRPEEditPage.CheckGroup.cs @@ -54,8 +54,8 @@ public CheckGroup(string name, string labelName) { Name = name; NameCell = new DataGridViewTextBoxCell { Value = labelName }; - WarningThresholdCell = new DataGridViewTextBoxCell(); - CriticalThresholdCell = new DataGridViewTextBoxCell(); + WarningThresholdCell = new DataGridViewTextBoxCell { Value = "" }; + CriticalThresholdCell = new DataGridViewTextBoxCell { Value = "" }; CheckThresholdRow = new DataGridViewRow(); CheckThresholdRow.Cells.AddRange(NameCell, WarningThresholdCell, CriticalThresholdCell); CheckThresholdRow.DefaultCellStyle.Format = "N2";