public static void InitializeOnStartup_end(OpenDental.ContrAccount sender) { contrAccountP=new ContrAccountP(); sender.Controls.Add(contrAccountP.panelInsInfoDetail); //any control could be used here: Label label2=(Label)sender.Controls.Find("label2",true)[0]; label2.MouseHover+=new EventHandler(contrAccountP.label2_MouseHover); label2.MouseLeave+=new EventHandler(contrAccountP.label2_MouseLeave); }
public static void InitializeOnStartup_end(OpenDental.ContrAccount sender) { contrAccountP = new ContrAccountP(); sender.Controls.Add(contrAccountP.panelInsInfoDetail); //any control could be used here: Label label2 = (Label)sender.Controls.Find("label2", true)[0]; label2.MouseHover += new EventHandler(contrAccountP.label2_MouseHover); label2.MouseLeave += new EventHandler(contrAccountP.label2_MouseLeave); }
public override bool HookAddCode(object sender, string hookName, params object[] parameters) //required method { switch (hookName) { case "ContrAccount.InitializeOnStartup_end": ContrAccountP.InitializeOnStartup_end((OpenDental.ContrAccount)sender); return(true); case "ContrAccount.RefreshModuleData_end": ContrAccountP.RefreshModuleData_end((OpenDental.ContrAccount)sender, (Family)parameters[0], (Patient)parameters[1]); return(true); case "ContrAccount.RefreshModuleData_null": ContrAccountP.RefreshModuleData_end((OpenDental.ContrAccount)sender, null, null); return(true); default: return(false); } }