/// <summary> /// Event fired when a theme on an object managed by a theme controller has changed. /// We use this event to ensure that even if the theme specifies a font for C1Label, /// the size of the font on our label stays 12. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void c1ThemeController1_ObjectThemeApplied(C1.Win.C1Themes.C1ThemeController sender, C1.Win.C1Themes.ObjectThemeEventArgs e) { ScaleForm(); if (e.Object == this.c1Label1) { this.c1Label1.Font = new Font(this.c1Label1.Font.FontFamily, 12); } }
private void initCompoment() { int gapLine = 20, gapX = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; theme1 = new C1.Win.C1Themes.C1ThemeController(); this.sb1 = new C1.Win.C1Ribbon.C1StatusBar(); panel1 = new System.Windows.Forms.Panel(); pnHead = new System.Windows.Forms.Panel(); pnBotton = new System.Windows.Forms.Panel(); panel1.SuspendLayout(); pnHead.SuspendLayout(); pnBotton.SuspendLayout(); this.SuspendLayout(); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.TabIndex = 0; //panel1.BackColor = Color.Brown; this.sb1.AutoSizeElement = C1.Framework.AutoSizeElement.Width; this.sb1.Location = new System.Drawing.Point(0, 620); this.sb1.Name = "sb1"; this.sb1.Size = new System.Drawing.Size(956, 22); this.sb1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2007Blue; pnHead.Size = new System.Drawing.Size(scrW, 50); pnHead.BorderStyle = BorderStyle.Fixed3D; pnBotton.Dock = DockStyle.Fill; pnBotton.BorderStyle = BorderStyle.FixedSingle; setControlComponent(); pnHead.Controls.Add(lbCboYear); pnHead.Controls.Add(cboYear); this.Controls.Add(panel1); this.Controls.Add(this.sb1); panel1.Controls.Add(pnBotton); panel1.Controls.Add(pnHead); panel1.ResumeLayout(false); pnHead.ResumeLayout(false); pnBotton.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void initComponent() { //new LogWriter("d", "FrmDoctorView initComponent 00 "); int gapLine = 20, gapX = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; theme1 = new C1.Win.C1Themes.C1ThemeController(); this.sb1 = new C1.Win.C1Ribbon.C1StatusBar(); panel1 = new System.Windows.Forms.Panel(); pnHead = new System.Windows.Forms.Panel(); pnBotton = new System.Windows.Forms.Panel(); pnQue = new System.Windows.Forms.Panel(); pnApm = new System.Windows.Forms.Panel(); pnFinish = new System.Windows.Forms.Panel(); pnIPD = new System.Windows.Forms.Panel(); //theme1 = new C1.Win.C1Themes.C1ThemeController(); tC1 = new C1.Win.C1Command.C1DockingTab(); tabQue = new C1.Win.C1Command.C1DockingTabPage(); tabApm = new C1.Win.C1Command.C1DockingTabPage(); tabFinish = new C1.Win.C1Command.C1DockingTabPage(); tabIPD = new C1.Win.C1Command.C1DockingTabPage(); panel1.SuspendLayout(); pnHead.SuspendLayout(); pnBotton.SuspendLayout(); pnQue.SuspendLayout(); pnApm.SuspendLayout(); pnFinish.SuspendLayout(); pnIPD.SuspendLayout(); tC1.SuspendLayout(); tabQue.SuspendLayout(); tabApm.SuspendLayout(); tabFinish.SuspendLayout(); tabIPD.SuspendLayout(); this.SuspendLayout(); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.TabIndex = 0; //panel1.BackColor = Color.Brown; this.sb1.AutoSizeElement = C1.Framework.AutoSizeElement.Width; this.sb1.Location = new System.Drawing.Point(0, 620); this.sb1.Name = "sb1"; this.sb1.Size = new System.Drawing.Size(956, 22); this.sb1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2007Blue; pnHead.Size = new System.Drawing.Size(scrW, 50); pnHead.BorderStyle = BorderStyle.Fixed3D; tabQue.Name = "tabQue"; tabQue.TabIndex = 0; tabQue.Text = "Queue"; tabQue.Font = fEditB; //tabQue.TabIndex = tC1.TabCount + 1; tabApm.Name = "tabApm"; tabApm.TabIndex = 1; tabApm.Text = "Appointment"; tabApm.Font = fEditB; tabFinish.Name = "tabFinish"; tabFinish.TabIndex = 2; tabFinish.Text = "Finish"; tabFinish.Font = fEditB; tabIPD.Name = "tabIPD"; tabIPD.TabIndex = 3; tabIPD.Text = "IPD"; tabIPD.Font = fEditB; tC1.Dock = System.Windows.Forms.DockStyle.Fill; tC1.HotTrack = true; tC1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; tC1.TabSizeMode = C1.Win.C1Command.TabSizeModeEnum.Fit; tC1.TabsShowFocusCues = true; tC1.Alignment = TabAlignment.Top; tC1.SelectedTabBold = true; tC1.Name = "tC1"; tC1.Font = fEditB; tC1.CanCloseTabs = true; tC1.CanAutoHide = false; tC1.SelectedTabBold = true; //tC1.Location = new System.Drawing.Point(0, 0); //tC1.BackColor = Color.White; pnHead.Dock = DockStyle.Top; pnBotton.Dock = DockStyle.Fill; pnBotton.BorderStyle = BorderStyle.FixedSingle; pnQue.Dock = DockStyle.Fill; pnApm.Dock = DockStyle.Fill; pnFinish.Dock = DockStyle.Fill; pnIPD.Dock = DockStyle.Fill; //new LogWriter("d", "FrmDoctorView initComponent 01 "); setControlComponent(); this.Controls.Add(panel1); this.Controls.Add(this.sb1); panel1.Controls.Add(pnBotton); panel1.Controls.Add(pnHead); pnBotton.Controls.Add(tC1); tC1.Controls.Add(tabQue); tC1.Controls.Add(tabApm); tC1.Controls.Add(tabFinish); tC1.Controls.Add(tabIPD); tabQue.Controls.Add(pnQue); tabApm.Controls.Add(pnApm); tabFinish.Controls.Add(pnFinish); tabIPD.Controls.Add(pnIPD); pnHead.Controls.Add(lbDtrName); pnHead.Controls.Add(txtPttHn); pnHead.Controls.Add(btnHnSearch); pnHead.Controls.Add(txtDate); pnHead.Controls.Add(lbTxtDate); pnHead.Controls.Add(lbTxtPttHn); //pnHead.Controls.Add(lbPttName); this.WindowState = FormWindowState.Maximized; //lbDtrName.ResumeLayout(false); //lbTxtPttHn.ResumeLayout(false); panel1.ResumeLayout(false); pnHead.ResumeLayout(false); pnBotton.ResumeLayout(false); pnQue.ResumeLayout(false); pnApm.ResumeLayout(false); pnFinish.ResumeLayout(false); pnIPD.ResumeLayout(false); tC1.ResumeLayout(false); tabQue.ResumeLayout(false); tabApm.ResumeLayout(false); tabFinish.ResumeLayout(false); tabIPD.ResumeLayout(false); this.ResumeLayout(false); pnQue.PerformLayout(); pnApm.PerformLayout(); tC1.PerformLayout(); tabQue.PerformLayout(); tabApm.PerformLayout(); this.PerformLayout(); }
private void initCompoment() { int gapLine = 20, gapX = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; this.sb1 = new C1.Win.C1Ribbon.C1StatusBar(); this.panel1 = new Panel(); pnHead = new System.Windows.Forms.Panel(); pnBotton = new System.Windows.Forms.Panel(); this.theme1 = new C1.Win.C1Themes.C1ThemeController(); tC1 = new C1DockingTab(); panel1.SuspendLayout(); pnHead.SuspendLayout(); pnBotton.SuspendLayout(); tC1.SuspendLayout(); this.SuspendLayout(); sb1.AutoSizeElement = C1.Framework.AutoSizeElement.Width; sb1.Location = new System.Drawing.Point(0, 620); sb1.Name = "sb1"; sb1.Size = new System.Drawing.Size(956, 22); sb1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Custom; panel1.Dock = System.Windows.Forms.DockStyle.Fill; panel1.Location = new System.Drawing.Point(0, 0); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(956, 620); panel1.TabIndex = 0; pnHead.Size = new System.Drawing.Size(scrW, 50); pnHead.BorderStyle = BorderStyle.Fixed3D; pnHead.Dock = DockStyle.Top; pnBotton.Dock = DockStyle.Fill; pnBotton.BorderStyle = BorderStyle.FixedSingle; tC1.Dock = System.Windows.Forms.DockStyle.Fill; tC1.HotTrack = true; tC1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; tC1.TabSizeMode = C1.Win.C1Command.TabSizeModeEnum.Fit; tC1.TabsShowFocusCues = true; tC1.Alignment = TabAlignment.Bottom; tC1.SelectedTabBold = true; tC1.Name = "tC1"; setControlComponent(); this.Controls.Add(panel1); this.Controls.Add(this.sb1); panel1.Controls.Add(pnBotton); panel1.Controls.Add(pnHead); pnBotton.Controls.Add(tC1); pnHead.Controls.Add(btnCap1); this.WindowState = FormWindowState.Maximized; panel1.ResumeLayout(false); pnHead.ResumeLayout(false); pnBotton.ResumeLayout(false); tC1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }