コード例 #1
0
ファイル: FormImageViewer.cs プロジェクト: royedwards/DRDNet
 private void UpdatePictureBox()
 {
     try {
         backBuffGraph.Clear(Pens.White.Color);
         backBuffGraph.Transform = ContrImages.GetScreenMatrix(displayedDoc, ImageCurrent.Width, ImageCurrent.Height, imageZoom * zoomFactor, imageTranslation);
         backBuffGraph.DrawImage(renderImage, 0, 0);
         PictureBox1.Refresh();
     }
     catch {
         //Not being able to render the image is non-fatal and probably due to a simple change in state or rounding errors.
     }
 }
コード例 #2
0
ファイル: FormOpenDental.cs プロジェクト: nampn/ODental
 ///<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.
 }