Page 1 of 1

Hook Requests - Commlogs / Tasks

Posted: Sun Apr 19, 2015 7:50 pm
by jsalmon
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;
  }
  ...

Re: Hook Requests - Commlogs / Tasks

Posted: Wed Apr 22, 2015 8:07 am
by allends
Plugin Hooks added to 15.1.22.