Hook Request: butText_Click in FormConfirmList.cs

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Hook Request: butText_Click in FormConfirmList.cs

Post by mopensoft » Mon May 18, 2015 6:43 am

Hi OpenDental

Could you please add the following hook for me.

private void FillMain(){
if (Plugins.HookMethod(this, "FormConfirmList.FillMain_End", this))
return;

Thanks
MOpenSoft

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: Hook Request: butText_Click in FormConfirmList.cs

Post by allends » Mon May 18, 2015 9:51 am

I am confused. Where do you want this hook?

Code: Select all

private void FillMain(){
if (Plugins.HookMethod(this, "FormConfirmList.FillMain_End", this))
return;
Do you want it in butText or FillMain? Also if wherever you want it, do you want it at the beginning or end of the method? I would assume at the beginning, but then it is named incorrectly.

Code: Select all

private void butText_Click() {
if (Plugins.HookMethod(this,"FormConfirmList.butText_Click_start",this)) {
    return;
}
This hook would fall in-line with our patterns if that is what you are looking for.
Allen
Open Dental Software
http://www.opendental.com

User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Re: Hook Request: butText_Click in FormConfirmList.cs

Post by mopensoft » Mon May 18, 2015 10:48 pm

It is FillMain_Start and placed at the beginning. I do want to replace this function. Thanks

Code: Select all

private void FillMain(){
if (Plugins.HookMethod(this, "FormConfirmList.FillMain_Start", this))
return;

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: Hook Request: butText_Click in FormConfirmList.cs

Post by allends » Wed May 20, 2015 11:46 am

Also you pass the form (this) into the method, but you should already have access to it.

Code: Select all

private void FillMain(){
if (Plugins.HookMethod(this, "FormConfirmList.FillMain_Start", this))
return;
Is there a specific reason you need it passed in?
Allen
Open Dental Software
http://www.opendental.com

Post Reply