C2025-023 Electronic Procedures - Modifications to PROMS (Phase 1)

Change to not show open button if using a format that is not attached to an EP format file.
This commit is contained in:
2025-05-14 15:05:58 -04:00
parent 3e53ec9191
commit 31f608a9ec
3 changed files with 9 additions and 2 deletions

View File

@@ -340,7 +340,7 @@ namespace Volian.Controls.Library
if ((_Annotations != null) && (dgAnnotations.Rows.Count > 0))
{
CurrentAnnotation = _Annotations[dgAnnotations.CurrentRow.Index];
if (CurrentAnnotation.MyAnnotationType.IsEPAnnotationType)
if (CurrentAnnotation.MyAnnotationType.IsEPAnnotationType && CurrentItem.HasEPformat())
btnEPAnnotation.Visible = true;
}
else