示例#1
0
        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);
        }
示例#2
0
 ///<summary></summary>
 public FormOpenDental(string[] cla)
 {
     Logger.openlog.Log("Initializing Open Dental...",Logger.Severity.INFO);
     CommandLineArgs=cla;
     Splash=new FormSplash();
     if(CommandLineArgs.Length==0) {
         Splash.Show();
     }
     InitializeComponent();
     SystemEvents.SessionSwitch+=new SessionSwitchEventHandler(SystemEvents_SessionSwitch);
     //toolbar
     ToolBarMain=new ODToolBar();
     ToolBarMain.Location=new Point(51,0);
     ToolBarMain.Size=new Size(931,25);
     ToolBarMain.Dock=DockStyle.Top;
     ToolBarMain.ImageList=imageListMain;
     ToolBarMain.ButtonClick+=new ODToolBarButtonClickEventHandler(ToolBarMain_ButtonClick);
     this.Controls.Add(ToolBarMain);
     //outlook bar
     myOutlookBar=new OutlookBar();
     myOutlookBar.Location=new Point(0,0);
     myOutlookBar.Size=new Size(51,626);
     myOutlookBar.ImageList=imageList32;
     myOutlookBar.Dock=DockStyle.Left;
     myOutlookBar.ButtonClicked+=new ButtonClickedEventHandler(myOutlookBar_ButtonClicked);
     this.Controls.Add(myOutlookBar);
     //contrAppt
     ContrAppt2=new ContrAppt();
     ContrAppt2.Visible=false;
     ContrAppt2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrAppt2);
     //contrFamily
     ContrFamily2=new ContrFamily();
     ContrFamily2.Visible=false;
     ContrFamily2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrFamily2);
     //contrFamilyEcw
     ContrFamily2Ecw=new ContrFamilyEcw();
     ContrFamily2Ecw.Visible=false;
     //ContrFamily2Ecw.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrFamily2Ecw);
     //contrAccount
     ContrAccount2=new ContrAccount();
     ContrAccount2.Visible=false;
     ContrAccount2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrAccount2);
     //contrTreat
     ContrTreat2=new ContrTreat();
     ContrTreat2.Visible=false;
     ContrTreat2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrTreat2);
     //contrChart
     ContrChart2=new ContrChart();
     ContrChart2.Visible=false;
     ContrChart2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrChart2);
     //contrImages
     ContrImages2=new ContrImages();
     ContrImages2.Visible=false;
     ContrImages2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrImages2);
     //contrManage
     ContrManage2=new ContrStaff();
     ContrManage2.Visible=false;
     ContrManage2.PatientSelected+=new PatientSelectedEventHandler(Contr_PatientSelected);
     this.Controls.Add(ContrManage2);
     //userControlTasks
     userControlTasks1=new UserControlTasks();
     userControlTasks1.Visible=false;
     userControlTasks1.GoToChanged+=new EventHandler(userControlTasks1_GoToChanged);
     GotoModule.ModuleSelected+=new ModuleEventHandler(GotoModule_ModuleSelected);
     this.Controls.Add(userControlTasks1);
     panelSplitter.ContextMenu=menuSplitter;
     menuItemDockBottom.Checked=true;
     phoneSmall=new UserControlPhoneSmall();
     phoneSmall.GoToChanged += new System.EventHandler(this.phoneSmall_GoToChanged);
     phoneSmall.Visible=false;
     this.Controls.Add(phoneSmall);
     //phonePanel=new UserControlPhonePanel();
     //phonePanel.Visible=false;
     //this.Controls.Add(phonePanel);
     //phonePanel.GoToChanged += new System.EventHandler(this.phonePanel_GoToChanged);
     Logger.openlog.Log("Open Dental initialization complete.",Logger.Severity.INFO);
     //Plugins.HookAddCode(this,"FormOpenDental.Constructor_end");//Can't do this because no plugins loaded.
 }