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(); }
public static Control CreateControl(string zoomPolicy, Font font, Size layoutSize) { switch (zoomPolicy) { case "C1ChartZoomPolicy": C1ChartSample chart1 = new C1ChartSample(); chart1.Dock = DockStyle.Fill; return(chart1); case "C1Chart3DZoomPolicy": C1Charts3DSample chart3d1 = new C1Charts3DSample(); chart3d1.Dock = DockStyle.Fill; return(chart3d1); case "C1FlexGridZoomPolicy": FlexGridSample flexGridSample1 = new FlexGridSample(); flexGridSample1.c1FlexGrid1.Dock = DockStyle.Fill; return(flexGridSample1.c1FlexGrid1); case "C1TrueDBGridZoomPolicy": C1TrueDBGrid trueDBGrid1 = new C1TrueDBGrid(); trueDBGrid1.BackColor = Color.AliceBlue; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZoomPolicyDemo)); trueDBGrid1.GroupByCaption = "Drag a column header here to group by that column"; trueDBGrid1.Name = "c1TrueDBGrid1"; trueDBGrid1.Dock = DockStyle.Fill; trueDBGrid1.TabAction = C1.Win.C1TrueDBGrid.TabActionEnum.GridNavigation; trueDBGrid1.TabIndex = 0; trueDBGrid1.Text = "c1TrueDBGrid1"; trueDBGrid1.PropBag = resources.GetString("c1TrueDBGrid_bag"); trueDBGrid1.AllowFilter = false; trueDBGrid1.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Blue; return(trueDBGrid1); case "C1PrintPreviewControlZoomPolicy": C1PrintPreviewControlSample printPreviewSample = new C1PrintPreviewControlSample(); printPreviewSample.Dock = DockStyle.Fill; return(printPreviewSample); case "C1RibbonZoomPolicy": C1RibbonSample ribbonSample1 = new C1RibbonSample(); ribbonSample1.Dock = DockStyle.Fill; return(ribbonSample1); case "C1StatusBarZoomPolicy": C1.Win.C1Ribbon.C1StatusBar c1StatusBar1 = new C1.Win.C1Ribbon.C1StatusBar(); C1.Win.C1Ribbon.RibbonLabel DocumentModifiedLabel = new C1.Win.C1Ribbon.RibbonLabel(); C1.Win.C1Ribbon.RibbonLabel zoomLabel1 = new C1.Win.C1Ribbon.RibbonLabel(); C1.Win.C1Ribbon.RibbonTrackBar ZoomTrackBar1 = new C1.Win.C1Ribbon.RibbonTrackBar(); c1StatusBar1.LeftPaneItems.Add(DocumentModifiedLabel); c1StatusBar1.RightPaneItems.Add(ZoomTrackBar1); c1StatusBar1.RightPaneItems.Add(zoomLabel1); c1StatusBar1.RightPaneWidth = 180; c1StatusBar1.Text = "Ready"; c1StatusBar1.VisualStyle = C1.Win.C1Ribbon.VisualStyle.Office2010Blue; // // DocumentModifiedLabel // DocumentModifiedLabel.Text = "Edit"; // // ZoomTrackBar1 // ZoomTrackBar1.Maximum = 1000; ZoomTrackBar1.Minimum = 10; ZoomTrackBar1.Value = 100; // // zoomLabel1 // zoomLabel1.FontPadding = C1.Win.C1Ribbon.FontPadding.Yes; zoomLabel1.Text = "100%"; return(c1StatusBar1); case "C1CalendarZoomPolicy": C1.Win.C1Schedule.C1Calendar c1Calendar1 = new C1.Win.C1Schedule.C1Calendar(); ZoomPolicyProviderBase.PutControlInCenter(c1Calendar1, layoutSize); return(c1Calendar1); case "C1ScheduleZoomPolicy": C1.Win.C1Schedule.C1Schedule c1Schedule1 = new C1.Win.C1Schedule.C1Schedule(); c1Schedule1.Dock = DockStyle.Fill; return(c1Schedule1); case "C1MainMenuZoomPolicy": C1MainMenu c1MainMenu1 = new C1MainMenu(); C1CommandLink commandLink1 = new C1CommandLink(); C1CommandMenu commandMenu1 = new C1CommandMenu(); commandMenu1.Font = new Font(c1MainMenu1.Font.FontFamily, 12); commandMenu1.Text = "commandMenu1"; commandLink1.Command = commandMenu1; c1MainMenu1.CommandLinks.Add(commandLink1); return(c1MainMenu1); case "C1DockingTabZoomPolicy": C1DockingTab dockingTab1 = new C1DockingTab(); C1DockingTabPage dockintTabPage1 = new C1DockingTabPage(); C1DockingTabPage dockintTabPage2 = new C1DockingTabPage(); C1DockingTabPage dockintTabPage3 = new C1DockingTabPage(); C1DockingTabPage dockintTabPage4 = new C1DockingTabPage(); dockintTabPage1.Text = "TabPage1"; dockintTabPage2.Text = "TabPage2"; dockintTabPage3.Text = "TabPage3"; dockintTabPage4.Text = "TabPage4"; dockingTab1.Controls.Add(dockintTabPage1); dockingTab1.Controls.Add(dockintTabPage2); dockingTab1.Controls.Add(dockintTabPage3); dockingTab1.Controls.Add(dockintTabPage4); dockingTab1.ItemSize = new Size(80, 20); dockingTab1.SplitterWidth = 5; dockingTab1.TabAreaSpacing = 5; dockingTab1.TabsSpacing = 5; return(dockingTab1); case "C1NavBarPolicy": C1NavBarSample navBarSample1 = new C1NavBarSample(); navBarSample1.Dock = DockStyle.Fill; return(navBarSample1); case "C1OutBarZoomPolicy": C1OutBarSample outBarSample1 = new C1OutBarSample(); outBarSample1.Dock = DockStyle.Fill; return(outBarSample1); default: break; } return(null); }
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(); }