So each has the following in Plugin.cs (one uses FormOpenDentalA and the other FormOpenDentalT):
Code: Select all
public override bool HookAddCode(object sender, string hookName, params object[] parameters){//required method
switch (hookName){
case "FormOpenDental.Load_end":
FormOpenDentalA.Load_end((OpenDental.FormOpenDental)sender, patNum);
return true;
default:
return false;
}
}
The declarations look like
Code: Select all
namespace Anesthesia{
///<summary></summary>
public class FormOpenDentalA : Control{
//Adds Anesthesia Menu to Main OpenDental Menu Bar
public static FormOpenDentalA formOpenDentalA;
public FormOpenDentalA(){