fixed grid update when adding/deleting annotations
This commit is contained in:
parent
dda71c5d1b
commit
ecfaf38e79
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user