From 7d959cb4a54f0c8478edfc4eeaed951bce4d8883 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sun, 5 May 2024 12:25:26 +0200 Subject: [PATCH] Updated DataError handler to display errors when comments have incorrect format. --- src/mhed/FrmMhed.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mhed/FrmMhed.cs b/src/mhed/FrmMhed.cs index 7afc280..c34198d 100644 --- a/src/mhed/FrmMhed.cs +++ b/src/mhed/FrmMhed.cs @@ -888,6 +888,9 @@ private void HE_ModelView_DataError(object sender, DataGridViewDataErrorEventArg case 1: MessageBox.Show(AppStrings.AHE_IncorrectHostname, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Warning); break; + case 2: + MessageBox.Show(AppStrings.AHE_IncorrectComment, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Warning); + break; default: Logger.Warn(DebugStrings.AppDbgModelViewColumnIndexOutOfRange); break;