Page 1 of 1
Hook Request: butText_Click in FormConfirmList.cs
Posted: Mon May 18, 2015 6:43 am
by mopensoft
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
Re: Hook Request: butText_Click in FormConfirmList.cs
Posted: Mon May 18, 2015 9:51 am
by allends
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.
Re: Hook Request: butText_Click in FormConfirmList.cs
Posted: Mon May 18, 2015 10:48 pm
by mopensoft
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;
Re: Hook Request: butText_Click in FormConfirmList.cs
Posted: Wed May 20, 2015 11:46 am
by allends
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?