This is a lengthy list and I will try to be as thorough as possible when addressing each of these hooks.
First, I will not that line numbers are generally a bad way to reference locations you want code inserted since our code is constantly changing.
It is good that you added the line description you want the hook above, but in some cases more context would help me to identify where you want the hooks.
Second, a large amount of these hooks are named incorrectly. This link should show what our current naming patterns for hooks are.
http://opendental.com/manual/patternplugins.html
Lastly, download our plug-in example solution. It has a lot of good examples of how to use our plug-in system. The main one you will want to focus on is getting controls from the sender object by casting it to the relevant form you retrieved it from.
http://opendental.com/manual/plugins.html
Now, onto the hooks.
Hook 1
Code: Select all
object[] parameters = { panel1, AptCur, pat };
Plugins.HookAddCode(this, "FormApptEdit.LoadAppointmentCentricControl", parameters);
This hook is currently named incorrectly for the location. You also do not need to pass in the panel. All controls should be available through the sender object that is passed along with the hook.
Code: Select all
Plugins.HookAddCode(this, "FormApptEdit.Load_end3",AptCur, pat);
Hook 2
Code: Select all
object[] parameters = {panel1, AptCur.AptNum};
Plugins.HookAddCode(this, "FormApptEdit.SaveApplicationCentricInfo", parameters);
This hook is also incorrectly named. Same as above, it does not need the panel object. Passing in the whole object makes it useful to other plug-in creators.
Code: Select all
Plugins.HookAddCode(this, "FormApptEdit.butOK_Click_end", AptCur);
Hook 3
Code: Select all
object[] parameters = { Controls, PatCur, textWirelessPhone.Text, textEmail, listTextOk};
Plugins.HookAddCode(this, "FormPatientEdit.LoadPatientCentricControl", parameters);
This hook is unnecessary. The hook you referenced above it will work fine.
Code: Select all
Plugins.HookAddCode(this,"FormPatientEdit.Load_end",PatCur);
Hook 4
Code: Select all
object[] parameters = { textPhone.Text };
Plugins.HookAddCode(sender, "FormPatientEdit.WirelessPhoneNumber_TextChanged", parameters);
This hook is named incorrectly and also needs no parameters.
Code: Select all
Plugins.HookAddCode(sender, "FormPatientEdit.textAnyPhoneNumber_TextChanged_end");
Hook 5
Code: Select all
object[] parameters = {listTextOk };
Plugins.HookAddCode(this, "FormPatientEdit.TextOk_SelectedIndexChanged", parameters);
This was very hard to decipher where you wanted this hook since your document said you want it in load, but you hook name suggested this method (ListBox_SelectedIndexChanged).
I have corrected the name and also removed the unnecessary parameter below.
Code: Select all
Plugins.HookAddCode(this, "FormPatientEdit.ListBox_SelectedIndexChanged_end");
Hook 6
Code: Select all
object[] parameter= { PatCur.PatNum };
Plugins.HookAddCode(this, "FormPatientEdit.SavePatientCentricInfo", parameter);
This hook is unnecessary. Right above it is a hook that passes in the PatCur object.
Code: Select all
Plugins.HookAddCode(this,"FormPatientEdit.butOK_Click_end",PatCur);
Hook 7 and 7.5?
Code: Select all
object[] parameters = { aptCur, true};
Plugins.HookAddCode(this, "ContrAppt.AppointmentCancellationProcess", parameters);
I see where you are going with this hook, but our pattern is to make hooks as separate as possible.
Absolute bools do not need to be passed into a hook and aptCur actually didn't exist in one of your locations.
Location 1
Code: Select all
Plugins.HookAddCode(this, "ContrAppt.ContrApptSheet2_MouseUp_validation_end", apt)
Location 2
Code: Select all
Plugins.HookAddCode(this, "ContrAppt.pinBoard_MouseUp_validation_end", aptCur)
Hook 8
Code: Select all
object[] parameters = {apt, false};
Plugins.HookAddCode(this, "ContrAppt.AppointmentCancellationProcess", parameters);
This has the same problems as Hook 7/7.5
Code: Select all
Plugins.HookAddCode(this, "ContrAppt.OnBreak_Click_validation_end", apt)
Hook 9
Code: Select all
Plugins.HookAddCode(this, "FormApptLists.EmptySlotButton");
There is currently no code in the FormApptLists_Load method so I assume you just want it in the method.
Code: Select all
Plugins.HookAddCode(this, "FormApptLists.Load_start");
Hook 10
Code: Select all
Plugins.HookAddCode(this, "FormOpenDental.RescheduleAppointments");
This hook is fine and just needs renamed.
Code: Select all
Plugins.HookAddCode(this, "FormOpenDental.RetrieveForAddress_after_received");
Hook 11
Code: Select all
Plugins.HookAddCode(this,"FormOpenDental.AddMenuBarItem");
This hook is unnecessary since the hook you need exists right above it
Code: Select all
Plugins.HookAddCode(this,"FormOpenDental.Load_end");