Skip to content

Commit

Permalink
Refactoring: switched DataError handler to HasFlag() use.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed May 4, 2024
1 parent 9e65735 commit 9dc4ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mhed/FrmMhed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ private async Task CleanOldUpdates()
/// <param name="e">Event arguments.</param>
private void HE_ModelView_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
if ((e.Context & DataGridViewDataErrorContexts.Commit) != 0)
if (e.Context.HasFlag(DataGridViewDataErrorContexts.Commit))
{
switch (e.ColumnIndex)
{
Expand Down

0 comments on commit 9dc4ca4

Please sign in to comment.