Added a manual grid refresh after validation since this seems not to work automatically anymore

This commit is contained in:
Daniel Schick 2026-01-28 08:35:41 +01:00
parent 9d4f608383
commit 79ddbf1572
2 changed files with 38 additions and 27 deletions

View File

@ -1461,6 +1461,12 @@ namespace ENI2
MessageBox.Show(Properties.Resources.textValidationOK, Properties.Resources.textValidation, MessageBoxButton.OK, MessageBoxImage.Information); MessageBox.Show(Properties.Resources.textValidationOK, Properties.Resources.textValidation, MessageBoxButton.OK, MessageBoxImage.Information);
} }
} }
if (controlCache.TryGetValue(Properties.Resources.textOverview, out DetailBaseControl overviewControl) &&
overviewControl is OverViewDetailControl ovdc)
{
ovdc.RefreshMessageGrid();
}
} }
private void ApplyCrewEffectsWarningSuppression() private void ApplyCrewEffectsWarningSuppression()

View File

@ -370,6 +370,11 @@ namespace ENI2.DetailViewControls
this.Core.IsDirty = false; // ist ja schon gespeichert.. this.Core.IsDirty = false; // ist ja schon gespeichert..
} }
internal void RefreshMessageGrid()
{
this.dataGridMessages?.Items?.Refresh();
}
#endregion #endregion
#region private methods #region private methods