Page 1 of 1
Hook Request: butText_Click in FormApptEdit.cs
Posted: Sun May 17, 2015 9:53 pm
by mopensoft
Hi OpenDental
Could you please add the following hook for me.
private void butText_Click(object sender,EventArgs e) {
if (Plugins.HookMethod(this, "FormApptEdit.butText_Click_Start", pat, AptCur, this))
{
return;
}
Thanks
MOpenSoft
Re: Hook Request: butText_Click in FormApptEdit.cs
Posted: Mon May 18, 2015 10:52 pm
by mopensoft
Can you also modify the existing hook at the end of FormApptEdit_load function from:
Code: Select all
Plugins.HookAddCode(this,"FormApptEdit.Load_End",pat,butText);
to
Code: Select all
Plugins.HookAddCode(this,"FormApptEdit.Load_End",AptCur);
I found that my existing hook is not very useful to get appointment info.
Thanks
Re: Hook Request: butText_Click in FormApptEdit.cs
Posted: Tue May 19, 2015 9:11 am
by allends
We cannot modify existing hooks because other plugins may rely on them. I can add another hook at the end that does what you want.
Code: Select all
Plugins.HookAddCode(this,"FormApptEdit.Load_end2",AptCur);
It would look like this.
Re: Hook Request: butText_Click in FormApptEdit.cs
Posted: Tue May 19, 2015 5:23 pm
by mopensoft
Thanks Allen
Although the existing one was mine request but it's not harm to get both.
Cheers
Minh
Re: Hook Request: butText_Click in FormApptEdit.cs
Posted: Wed May 20, 2015 11:49 am
by allends
Code: Select all
if(Plugins.HookMethod(this,"FormApptEdit.butText_Click_start",pat,AptCur,this)) {
return;
}
Code: Select all
Plugins.HookAddCode(this,"FormApptEdit.Load_end2",AptCur);
These two hooks were committed to 15.2.4. Note that I did lower case the end of the method to fall in line with our newer hook patterns.
Re: Hook Request: butText_Click in FormApptEdit.cs
Posted: Tue May 26, 2015 11:16 pm
by mopensoft
Thanks Allen.