Skip to content

Commit

Permalink
Updated DataError handler to display errors when comments have incorr…
Browse files Browse the repository at this point in the history
…ect format.
  • Loading branch information
xvitaly committed May 5, 2024
1 parent f166e98 commit 7d959cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mhed/FrmMhed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7d959cb

Please sign in to comment.