Hook Requests - Commlogs / Tasks

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
jsalmon
Posts: 1553
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Hook Requests - Commlogs / Tasks

Post by jsalmon » Sun Apr 19, 2015 7:50 pm

First three hooks are going to be in FormOpenDental.cs, one in OnCommlog_Click() and the others within phoneSmall_GoToChanged()

Commlog click:

Code: Select all

private void OnCommlog_Click() {
  if(Plugins.HookMethod(this,"FormOpenDental.OnCommlog_Click",CurPatNum)) {
    return;
  }
  ...
Phone panel change:

Code: Select all

private void phoneSmall_GoToChanged(object sender,EventArgs e) {
  ...
  if(ped!=null && ped.IsTriageOperator) {
    if(Plugins.HookMethod(this,"FormOpenDental.phoneSmall_GoToChanged_IsTriage",pat,phoneSmall.Extension)) {
      return;
    }
    ...
  }
  else {//Not a triage operator.
    if(Plugins.HookMethod(this,"FormOpenDental.phoneSmall_GoToChanged_NotTriage",pat)) {
      return;
    }
    ...
The last hook needs to go in UserControlTasks.cs and replace AddTask_Clicked()

Code: Select all

private void AddTask_Clicked() {
  if(Plugins.HookMethod(this,"UserControlTasks.AddTask_Clicked")) {
    return;
  }
  ...
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

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

Re: Hook Requests - Commlogs / Tasks

Post by allends » Wed Apr 22, 2015 8:07 am

Plugin Hooks added to 15.1.22.
Allen
Open Dental Software
http://www.opendental.com

Post Reply