Page 1 of 1

4 more hooks

Posted: Fri Mar 18, 2011 8:23 am
by wjstarck
Towards the bottom of method butSetComplete_Click, after line 3300 on FormProcEdit:

Code: Select all

textNotes.Text+=ProcCodeNotes.GetNote(provNum,ProcCur.CodeNum);
Plugins.HookAddCode(this, "FormProcEdit.butSetComplete_Click_end",ProcCur,ProcOld,textNotes); <-----
listProcStatus.SelectedIndex=-1;

Towards the bottom of method menuItemSetComplete_Click, after line 7328 on ContrChart:

Code: Select all

procCur.ProcStatus=ProcStat.C; 
Plugins.HookAddCode(null, "ContrChart.menuItemSetComplete_Click_end",procCur,procOld); <-----
Procedures.Update(procCur,procOld);  

Towards the bottom of method SetCompleteInAppt, after line 1322 on OpenDentBusiness.Procedures:

Code: Select all

if(oldProc.ProcStatus!=ProcStat.C) {
ProcList[i].Note+=ProcCodeNotes.GetNote(ProcList[i].ProvNum,ProcList[i].CodeNum);
Plugins.HookAddCode(null, "Procedures.SetCompleteInAppt_end", ProcList[i], oldProc); <------
Procedures.Update(ProcList[i],oldProc);
Towards the bottom of method pd_PrintPage , after line 225 (line 222 in 7.9.x) on OpenDental.SheetPrinting:

Code: Select all

/*string fieldHomePhoneName = field.FieldName;
string fieldHomePhoneVal = field.FieldValue;
string fieldWirelessPhoneVal = field.FieldValue; */
Plugins.HookAddCode(null, "SheetPrinting.pd_PrintPage_end", field); <-----
GraphicsHelper.DrawString(g,gfx,field.FieldValue,font,Brushes.Black,field.Bounds);
No need to add to 7.7 or earlier - 7.8 and higher will do just fine.

Thanks.