fixed grid update when adding/deleting annotations

This commit is contained in:
John Jenko 2009-05-06 15:55:01 +00:00
parent dda71c5d1b
commit ecfaf38e79

View File

@ -224,7 +224,14 @@ namespace Volian.Controls.Library
private void UpdateAnnotationGrid()
{
_LoadingGrid = true;
_Annotations = (_CurrentItem == null) ? null : _CurrentItem.ItemAnnotations;
if (_CurrentItem == null)
_Annotations= null;
else
{
_CurrentItem.RefreshItemAnnotations();
_Annotations = _CurrentItem.ItemAnnotations;
}
itemAnnotationsBindingSource.DataSource = _Annotations;
dgAnnotations.Refresh();
if ((CurrentAnnotation == null || (_CurrentItem.ItemID != CurrentAnnotation.ItemID)))