Op dinsdag 7 maart 2017 22:30:46 UTC+1 schreef Ryan:
Hi,
I'm this, but sender cannot be cast as Annot, it is of the ToolManager type.
this is my code:
_toolManager.AnnotationAdded += _toolManager_AnnotationAdded;
private void _toolManager_AnnotationAdded(object sender, AnnotationModificationEventArgs e)
{
Annot annotation = sender as Annot;
annotation.SetUniqueID(Guid.NewGuid().ToString());
}
I do have a PTAnnot in the e object, but that cannot be cast to Annot either.
How can this be solved? I need to create a unique id for each annotation.
Kind regards,
Martin