Hook Request: ./OpenDental/Forms/FormClaimAttachment.cs
Posted: Sun Aug 02, 2020 6:05 pm
Hi OpenDental Team,
I would like to add a button to the FormClaimAttachment form that will allow the user to load images from a custom system.
I would need to be able to introspect the current claim and the current patient (to begin with to get PatNum, Date of Service, Patient Name). I'll need to pass the three parameters to our plugin as they're all private at the moment.
I would like to hand the image off to ShowImageAttachmentItemEdit like the other buttons do. Since direct cast to object in Plugins.HookAddCode fails for private void(Image), we first need to cast to Action<Image>.
Could you please add the following hook at the end of the class "FormClaimAttachment":
Thank you!
I would like to add a button to the FormClaimAttachment form that will allow the user to load images from a custom system.
I would need to be able to introspect the current claim and the current patient (to begin with to get PatNum, Date of Service, Patient Name). I'll need to pass the three parameters to our plugin as they're all private at the moment.
Code: Select all
private Claim _claimCur;
private Patient _claimPat;
private void ShowImageAttachmentItemEdit(Image img) {...}Could you please add the following hook at the end of the class "FormClaimAttachment":
Code: Select all
Plugins.HookAddCode(this,"FormClaimAttachment.Load_end", _patCur, _claimCur, (Action<Image>)ShowImageAttachmentItemEdit);