private void initConfig() { fEdit = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Bold); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "c1DockingTab1"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; panel2.Controls.Add(tcMain); theme1.SetTheme(tcMain, mposC.iniC.themeApplication); theme1.SetTheme(panel1, mposC.iniC.themeApplication); theme1.SetTheme(panel2, mposC.iniC.themeApplication); theme1.SetTheme(cboYear, mposC.iniC.themeApplication); theme1.SetTheme(label7, mposC.iniC.themeApplication); mposC.setCboYear(cboYear); tabOnhand = new C1DockingTabPage(); tabOnhand.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabOnhand.Size = new System.Drawing.Size(667, 175); tabOnhand.TabIndex = 0; tabOnhand.Text = "Material"; tabOnhand.Name = "tabMat"; //theme1.SetTheme(tabOnhand, mposC.iniC.themeApplication); tcMain.Controls.Add(tabOnhand); initgrfOnhand(); }
private void initCompoment() { tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; //tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tcMain.ShowCaption = false; initCompomentTabDeposit(); initCompomentTabWithDraw(); this.Controls.Add(tcMain); //theme1.SetTheme(this, ic.iniC.themeApp); }
private void initConfig() { pageLoad = true; fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); lgrfPkg = new List <C1FlexGrid>(); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); cboStkSubName.SelectedIndexChanged += CboStkSubName_SelectedIndexChanged; ic.ivfDB.stknDB.setCboStockSubName(cboStkSubName); cboStkSubName.SelectedIndex = 0; tC1 = new C1DockingTab(); tabOnhand = new C1DockingTabPage(); tC1.SuspendLayout(); tabOnhand.SuspendLayout(); 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.CanCloseTabs = true; tabOnhand.Name = "tabOnhand"; tabOnhand.TabIndex = 0; tabOnhand.Text = "Onhand"; theme1.SetTheme(tC1, ic.theme); //theme1.SetTheme(groupBox1, theme2); tC1.ResumeLayout(false); tabOnhand.ResumeLayout(false); tC1.PerformLayout(); tabOnhand.PerformLayout(); tC1.Controls.Add(tabOnhand); pnStock.Controls.Add(tC1); initGrfStk(); sB1.Text = ""; pageLoad = false; }
public override void ZoomBounds(Control control, ZoomBoundsInfo infos) { base.ZoomBounds(control, infos); C1DockingTab dockingTab = control as C1DockingTab; try { dockingTab.ItemSize = infos.Zoom(dockingTab.ItemSize); } catch (Exception) { // When the docking tab is collapse, set ItemSize property may throw exception. // If this case occurs, set the ItemSize to Size.Empty as a workaround. dockingTab.ItemSize = Size.Empty; } dockingTab.SplitterWidth = infos.Zoom(dockingTab.SplitterWidth); dockingTab.TabsSpacing = infos.Zoom(dockingTab.TabsSpacing); dockingTab.TabAreaSpacing = infos.Zoom(dockingTab.TabAreaSpacing); }
private void initCompoment() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tcMain.SelectedTabChanged += TcMain_SelectedTabChanged; tabOPBkk = new C1DockingTabPage(); tabOPBkk.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabOPBkk.Size = new System.Drawing.Size(667, 175); tabOPBkk.TabIndex = 0; tabOPBkk.Text = "Vaccine"; tabOPBkk.Name = "tabVaccine"; tcMain.Controls.Add(tabOPBkk); tabOP = new C1DockingTabPage(); tabOP.Dock = System.Windows.Forms.DockStyle.Fill; tabOP.Name = "tabOP"; tabOP.Text = "OPBKK Main"; tcMain.Controls.Add(tabOP); grfSelect = new C1FlexGrid(); grfSelect.Font = fEdit; grfSelect.Dock = System.Windows.Forms.DockStyle.Fill; grfSelect.Location = new System.Drawing.Point(0, 0); grfSelect.Rows.Count = 1; grfSelect.Name = "grfSelect"; tabOPBkk.Controls.Add(grfSelect); theme1.SetTheme(grfSelect, "Office2010Red"); theme1.SetTheme(this, bc.iniC.themeApp); theme1.SetTheme(tcMain, bc.iniC.themeApp); this.Controls.Add(tcMain); }
private void initConfig() { fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); bc.bcDB.dgsDB.setCboDgs(cboDgs, ""); array1 = new ArrayList(); lStream = new List <listStream>(); strm = new listStream(); grfOrder = new C1FlexGrid(); //timer1 = new Timer(); //int chk = 0; //int.TryParse(bc.iniC.timerImgScanNew, out chk); //timer1.Interval = chk; //timer1.Enabled = true; //timer1.Tick += Timer1_Tick; //timer1.Stop(); theme1.SetTheme(sb1, "ExpressionDark"); theme1.SetTheme(groupBox1, "ExpressionDark"); theme1.SetTheme(panel2, "ExpressionDark"); theme1.SetTheme(panel3, "ExpressionDark"); foreach (Control con in groupBox1.Controls) { theme1.SetTheme(con, "ExpressionDark"); } //foreach (Control con in grfScan.Controls) //{ // theme1.SetTheme(con, "ExpressionDark"); //} initGrf(); txtHn.Value = hn; setGrf(); btnHn.Click += BtnHn_Click; btnOpen.Click += BtnOpen_Click; btnRefresh.Click += BtnRefresh_Click; txtHn.KeyUp += TxtHn_KeyUp; tcDtr = new C1DockingTab(); tcDtr.Dock = System.Windows.Forms.DockStyle.Fill; tcDtr.Location = new System.Drawing.Point(0, 266); tcDtr.Name = "c1DockingTab1"; tcDtr.Size = new System.Drawing.Size(669, 200); tcDtr.TabIndex = 0; tcDtr.TabsSpacing = 5; panel3.Controls.Add(tcDtr); tabScan = new C1DockingTabPage(); tabScan.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabScan.Size = new System.Drawing.Size(667, 175); tabScan.TabIndex = 0; tabScan.Text = "ใบยา / Staff's Note"; tabScan.Name = "tabPageScan"; tcDtr.Controls.Add(tabScan); tabOrder = new C1DockingTabPage(); tabOrder.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabOrder.Size = new System.Drawing.Size(667, 175); tabOrder.TabIndex = 0; tabOrder.Text = "ประวัติการสั่งการ"; tabOrder.Name = "tabOrder"; tcDtr.Controls.Add(tabOrder); grfOrder.Font = fEdit; grfOrder.Dock = System.Windows.Forms.DockStyle.Fill; grfOrder.Location = new System.Drawing.Point(0, 0); grfOrder.Rows[0].Visible = false; grfOrder.Cols[0].Visible = false; grfOrder.Cols[colOrderId].Visible = false; grfOrder.Rows.Count = 1; grfOrder.Cols.Count = 5; grfOrder.Cols[colOrderName].Caption = "ชื่อ"; grfOrder.Cols[colOrderMed].Caption = "-"; grfOrder.Cols[colOrderQty].Caption = "QTY"; grfOrder.Cols[colOrderName].Width = 300; grfOrder.Cols[colOrderMed].Width = 200; grfOrder.Cols[colOrderQty].Width = 60; grfOrder.Name = "grfOrder"; theme1.SetTheme(grfOrder, "Office2016Black"); tabOrder.Controls.Add(grfOrder); setPicStaffNote(); theme1.SetTheme(tcDtr, theme1.Theme); int i = 0; String idOld = ""; if (bc.bcDB.dgssDB.lDgss.Count <= 0) { bc.bcDB.dgssDB.getlBsp(); } foreach (DocGroupSubScan dgss in bc.bcDB.dgssDB.lDgss) { String dgsid = ""; dgsid = bc.bcDB.dgssDB.getDgsIdDgss(dgss.doc_group_sub_name); if (!dgsid.Equals(idOld)) { idOld = dgsid; String name = ""; name = bc.bcDB.dgsDB.getNameDgs(dgss.doc_group_id); C1DockingTabPage tabPage = new C1DockingTabPage(); tabPage.Location = new System.Drawing.Point(1, 24); tabPage.Size = new System.Drawing.Size(667, 175); tabPage.TabIndex = 0; tabPage.Text = " " + name + " "; tabPage.Name = dgsid; tcDtr.Controls.Add(tabPage); i++; C1DockingTab tabDtr1 = new C1DockingTab(); tabDtr1.Dock = System.Windows.Forms.DockStyle.Fill; tabDtr1.Location = new System.Drawing.Point(0, 266); tabDtr1.Name = "c1DockingTab1"; tabDtr1.Size = new System.Drawing.Size(669, 200); tabDtr1.TabIndex = 0; tabDtr1.TabsSpacing = 5; tabPage.Controls.Add(tabDtr1); theme1.SetTheme(tabDtr1, "Office2010Red"); foreach (DocGroupSubScan dgsss in bc.bcDB.dgssDB.lDgss) { if (dgsss.doc_group_id.Equals(dgss.doc_group_id)) { //addDevice.MenuItems.Add(new MenuItem(dgsss.doc_group_sub_name, new EventHandler(ContextMenu_upload))); C1DockingTabPage tabPage2 = new C1DockingTabPage(); tabPage2.Location = new System.Drawing.Point(1, 24); tabPage2.Size = new System.Drawing.Size(667, 175); tabPage2.TabIndex = 0; tabPage2.Text = " " + dgsss.doc_group_sub_name + " "; tabPage2.Name = "tab" + dgsss.doc_group_sub_id; tabDtr1.Controls.Add(tabPage2); C1FlexGrid grf = new C1FlexGrid(); grf.Font = fEdit; grf.Dock = System.Windows.Forms.DockStyle.Fill; grf.Location = new System.Drawing.Point(0, 0); grf.Rows[0].Visible = false; grf.Cols[0].Visible = false; grf.Rows.Count = 1; grf.Name = dgsss.doc_group_sub_id; grf.Cols.Count = 5; Column colpic1 = grf.Cols[colPic1]; colpic1.DataType = typeof(Image); Column colpic2 = grf.Cols[colPic2]; colpic2.DataType = typeof(String); Column colpic3 = grf.Cols[colPic3]; colpic3.DataType = typeof(Image); Column colpic4 = grf.Cols[colPic4]; colpic4.DataType = typeof(Image); grf.Cols[colPic1].Width = 310; grf.Cols[colPic2].Width = 310; grf.Cols[colPic3].Width = 310; grf.Cols[colPic4].Width = 310; grf.ShowCursor = true; grf.Cols[colPic2].Visible = false; grf.Cols[colPic3].Visible = true; grf.Cols[colPic4].Visible = false; grf.Cols[colPic1].AllowEditing = false; grf.Cols[colPic3].AllowEditing = false; grf.DoubleClick += Grf_DoubleClick; tabPage2.Controls.Add(grf); } } } else { } } }
private void initCompoment() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tabImportDf = new C1DockingTabPage(); tabImportDf.Dock = System.Windows.Forms.DockStyle.Fill; tabImportDf.Name = "tabImportDf"; tabImportDf.Text = "Import Item DF"; grfSelect = new C1FlexGrid(); grfSelect.Font = fEdit; grfSelect.Dock = System.Windows.Forms.DockStyle.Bottom; grfSelect.Location = new System.Drawing.Point(0, 0); grfSelect.Rows.Count = 1; lbDateStart = new Label(); txtDateStart = new C1DateEdit(); btnDeleteAll = new C1Button(); cboDocGrp = new C1ComboBox(); txtPaidType = new C1TextBox(); lbHn = new Label(); txtHn = new C1TextBox(); btnPrint = new C1Button(); btnGet = new C1Button(); bc.setControlLabel(ref lbDateStart, fEdit, "วันที่เริ่มต้น :", "lbDateStart", gapX, gapY); size = bc.MeasureString(lbDateStart); bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); bc.setControlC1ComboBox(ref cboDocGrp, "cboDocGrp", 80, txtDateStart.Location.X + txtDateStart.Width + 25, gapY); cboDocGrp.Font = fEdit; ComboBoxItem item = new ComboBoxItem(); item = new ComboBoxItem(); item.Value = "1"; item.Text = "รอบ 1"; cboDocGrp.Items.Add(item); item = new ComboBoxItem(); item.Value = "2"; item.Text = "รอบ 2"; cboDocGrp.Items.Add(item); item = new ComboBoxItem(); item.Value = "3"; item.Text = "รอบ 3"; cboDocGrp.Items.Add(item); //item = new ComboBoxItem(); //item.Value = "3"; //item.Text = "รอบ 3"; //cboDocGrp.Items.Add(item); bc.setControlC1TextBox(ref txtPaidType, fEdit, "txtPaidType", 140, cboDocGrp.Location.X + cboDocGrp.Width + 25, gapY); bc.setControlLabel(ref lbHn, fEdit, "search :", "lbHn", txtPaidType.Location.X + txtPaidType.Width + 55, gapY); size = bc.MeasureString(lbHn); bc.setControlC1TextBox(ref txtHn, fEdit, "txtHn", 140, lbHn.Location.X + lbHn.Width + 10, gapY); bc.setControlC1Button(ref btnDeleteAll, fEdit, "Clear Data", "btnDeleteAll", txtHn.Location.X + txtHn.Width + 20, gapY); btnDeleteAll.Width = 120; btnDeleteAll.Height = btnDeleteAll.Height + 10; bc.setControlC1Button(ref btnPrint, fEdit, "Print", "btnPrint", btnDeleteAll.Location.X + btnDeleteAll.Width + 60, gapY); btnPrint.Width = 140; btnPrint.Height = btnPrint.Height + 10; bc.setControlC1Button(ref btnGet, fEdit, "get", "btnGet", btnPrint.Location.X + btnPrint.Width + 60, gapY); btnGet.Width = 140; btnGet.Height = btnGet.Height + 10; tabImportDf.Controls.Add(grfSelect); theme1.SetTheme(grfSelect, "Office2010Red"); tabImportDf.Controls.Add(lbDateStart); tabImportDf.Controls.Add(txtDateStart); tabImportDf.Controls.Add(cboDocGrp); tabImportDf.Controls.Add(btnDeleteAll); tabImportDf.Controls.Add(btnPrint); tabImportDf.Controls.Add(txtPaidType); tabImportDf.Controls.Add(lbHn); tabImportDf.Controls.Add(txtHn); tabImportDf.Controls.Add(btnGet); tcMain.Controls.Add(tabImportDf); this.Controls.Add(tcMain); }
public PageManager(C1DockingTab tabDetailPanel) { _tabDetailPanel = tabDetailPanel; _tabDetailPanel.SelectedIndexChanged += TabDetailPanel_SelectedIndexChanged; }
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 = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tabImportDf = new C1DockingTabPage(); tabImportDf.Dock = System.Windows.Forms.DockStyle.Fill; tabImportDf.Name = "tabImportDf"; tabImportDf.Text = "Import Item DF"; grfSelect = new C1FlexGrid(); grfSelect.Font = fEdit; grfSelect.Dock = System.Windows.Forms.DockStyle.Bottom; grfSelect.Location = new System.Drawing.Point(0, 0); grfSelect.Rows.Count = 1; lbDateStart = new Label(); txtDateStart = new C1DateEdit(); lbDateEnd = new Label(); txtDateEnd = new C1DateEdit(); lbtxtPaidType = new Label(); txtPaidType = new C1TextBox(); btnImportDfSelect = new C1Button(); btnImportDfGen = new C1Button(); lbLoading = new Label(); lbLoading.Font = fEdit5B; lbLoading.BackColor = Color.WhiteSmoke; lbLoading.ForeColor = Color.Black; lbLoading.AutoSize = false; lbLoading.Size = new Size(300, 60); bc.setControlLabel(ref lbDateStart, fEdit, "วันที่เริ่มต้น :", "lbDateStart", gapX, gapY); size = bc.MeasureString(lbDateStart); bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); size = bc.MeasureString(lbDateStart); //bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); bc.setControlLabel(ref lbDateEnd, fEdit, "วันที่สิ้นสุด :", "lbDateEnd", txtDateStart.Location.X + txtDateStart.Width + 15, gapY); size = bc.MeasureString(lbDateEnd); bc.setControlC1DateTimeEdit(ref txtDateEnd, "txtDateEnd", lbDateEnd.Location.X + size.Width + 5, gapY); bc.setControlLabel(ref lbtxtPaidType, fEdit, "สิทธิ (xx,...) :", "lbtxtPaidType", txtDateEnd.Location.X + txtDateEnd.Width + 15, gapY); size = bc.MeasureString(lbtxtPaidType); bc.setControlC1TextBox(ref txtPaidType, fEdit, "txtPaidType", 120, lbtxtPaidType.Location.X + size.Width + 5, gapY); bc.setControlC1Button(ref btnImportDfSelect, fEdit, "ดึงข้อมูล", "btnSelect", txtPaidType.Location.X + txtPaidType.Width + 20, gapY); btnImportDfSelect.Width = 70; bc.setControlC1Button(ref btnImportDfGen, fEdit, "gen Text", "btnGen", btnImportDfSelect.Location.X + btnImportDfSelect.Width + 20, gapY); btnImportDfGen.Width = 80; tabImportDf.Controls.Add(grfSelect); theme1.SetTheme(grfSelect, "Office2010Red"); tabImportDf.Controls.Add(lbDateStart); tabImportDf.Controls.Add(txtDateStart); tabImportDf.Controls.Add(lbDateEnd); tabImportDf.Controls.Add(txtDateEnd); tabImportDf.Controls.Add(lbtxtPaidType); tabImportDf.Controls.Add(txtPaidType); tabImportDf.Controls.Add(btnImportDfSelect); tabImportDf.Controls.Add(btnImportDfGen); tcMain.Controls.Add(tabImportDf); this.Controls.Add(lbLoading); this.Controls.Add(tcMain); }
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(); }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); tcDtr = new C1DockingTab(); tcDtr.Dock = System.Windows.Forms.DockStyle.Fill; tcDtr.Location = new System.Drawing.Point(0, 266); tcDtr.Name = "c1DockingTab1"; tcDtr.Size = new System.Drawing.Size(669, 200); tcDtr.TabIndex = 0; tcDtr.TabsSpacing = 5; panel1.Controls.Add(tcDtr); //theme1.SetTheme(tcDtr, "Office2010Blue"); tabScan = new C1DockingTabPage(); tabScan.Location = new System.Drawing.Point(1, 24); tabScan.Name = "c1DockingTabPage1"; tabScan.Size = new System.Drawing.Size(667, 175); tabScan.TabIndex = 0; tabScan.Text = "PageScan"; tabScan.Name = "Page Scan"; tcDtr.Controls.Add(tabScan); //txtAnDate.Left = txtVisitDate.Left; //txtAnDate.Top = txtVisitDate.Top; //bc.ivfDB.dgsDB.setCboBsp(cboDgs, ""); DateTime dt = DateTime.Now; dt = dt.AddDays(-1); txtVisitDate.Value = dt.Year + "-" + dt.ToString("MM-dd"); array1 = new ArrayList(); arrayImg = new ArrayList(); timer1 = new Timer(); int chk = 0; int.TryParse(ic.iniC.timerImgScanNew, out chk); timer1.Interval = chk; timer1.Enabled = true; timer1.Tick += Timer1_Tick; timer1.Stop(); //_ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD, false); theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); theme1.SetTheme(groupBox1, theme1.Theme); theme1.SetTheme(panel1, theme1.Theme); theme1.SetTheme(tcDtr, theme1.Theme); foreach (Control con in groupBox1.Controls) { if (!(con is ProgressBar)) { theme1.SetTheme(con, theme1.Theme); } } foreach (Control con in panel1.Controls) { //theme1.SetTheme(con, theme1.Theme); } btnOpen.Click += BtnOpen_Click; btnHn.Click += BtnHn_Click; btnDel.Click += BtnDel_Click; sB.Text = "aaaaaaaaaa"; initGrf(); setGrf(); //pB1.Hide(); int i = 0; String idOld = ""; //foreach (DocGroupScan dgs in bc.ivfDB.dgsDB.lDgs) //{ // C1DockingTabPage tabPage = new C1DockingTabPage(); // tabPage.Location = new System.Drawing.Point(1, 24); // tabPage.Size = new System.Drawing.Size(667, 175); // tabPage.TabIndex = 0; // tabPage.Text = "Page" + dgs.doc_group_name; // tabPage.Name = " " + dgs.doc_group_id+" "; // tcDtr.Controls.Add(tabPage); // i++; // String dgsid = ""; // dgsid = bc.ivfDB.dgssDB.getDgsIdDgss(dgss.doc_group_sub_name); // if (!dgsid.Equals(idOld)) // { // } //} //MessageBox.Show("111", ""); if (ic.ivfDB.dgssDB.lDgss.Count <= 0) { ic.ivfDB.dgssDB.getlBsp(); } foreach (DocGroupSubScan dgss in ic.ivfDB.dgssDB.lDgss) { String dgsid = ""; dgsid = ic.ivfDB.dgssDB.getDgsIdDgss(dgss.doc_group_sub_name); if (!dgsid.Equals(idOld)) { //MessageBox.Show("222", ""); idOld = dgsid; String name = ""; name = ic.ivfDB.dgsDB.getNameDgs(dgss.doc_group_id); C1DockingTabPage tabPage = new C1DockingTabPage(); tabPage.Location = new System.Drawing.Point(1, 24); tabPage.Size = new System.Drawing.Size(667, 175); tabPage.TabIndex = 0; tabPage.Text = " " + name + " "; tabPage.Name = dgsid; tcDtr.Controls.Add(tabPage); i++; C1DockingTab tabDtr1 = new C1DockingTab(); tabDtr1.Dock = System.Windows.Forms.DockStyle.Fill; tabDtr1.Location = new System.Drawing.Point(0, 266); tabDtr1.Name = "c1DockingTab1"; tabDtr1.Size = new System.Drawing.Size(669, 200); tabDtr1.TabIndex = 0; tabDtr1.TabsSpacing = 5; tabPage.Controls.Add(tabDtr1); theme1.SetTheme(tabDtr1, "Office2010Red"); foreach (DocGroupSubScan dgsss in ic.ivfDB.dgssDB.lDgss) { if (dgsss.doc_group_id.Equals(dgss.doc_group_id)) { //MessageBox.Show("333", ""); //addDevice.MenuItems.Add(new MenuItem(dgsss.doc_group_sub_name, new EventHandler(ContextMenu_upload))); C1DockingTabPage tabPage2 = new C1DockingTabPage(); tabPage2.Location = new System.Drawing.Point(1, 24); tabPage2.Size = new System.Drawing.Size(667, 175); tabPage2.TabIndex = 0; tabPage2.Text = " " + dgsss.doc_group_sub_name + " "; tabPage2.Name = "tab" + dgsss.doc_group_sub_id; tabDtr1.Controls.Add(tabPage2); C1FlexGrid grf = new C1FlexGrid(); grf.Font = fEdit; grf.Dock = System.Windows.Forms.DockStyle.Fill; grf.Location = new System.Drawing.Point(0, 0); grf.Rows[0].Visible = false; grf.Cols[0].Visible = false; grf.Rows.Count = 1; grf.Name = dgsss.doc_group_sub_id; grf.Cols.Count = 5; Column colpic1 = grf.Cols[colPic1]; colpic1.DataType = typeof(Image); Column colpic2 = grf.Cols[colPic2]; colpic2.DataType = typeof(String); Column colpic3 = grf.Cols[colPic3]; colpic3.DataType = typeof(Image); Column colpic4 = grf.Cols[colPic4]; colpic4.DataType = typeof(Image); grf.Cols[colPic1].Width = 310; grf.Cols[colPic2].Width = 310; grf.Cols[colPic3].Width = 310; grf.Cols[colPic4].Width = 310; grf.ShowCursor = true; grf.Cols[colPic2].Visible = false; grf.Cols[colPic3].Visible = false; grf.Cols[colPic4].Visible = false; tabPage2.Controls.Add(grf); } } } else { } } }
private void initConfig() { this.FormBorderStyle = FormBorderStyle.None; fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); ic.ivfDB.dgsDB.setCboBsp(cboDgs, ""); array1 = new ArrayList(); lStream = new List <listStream>(); strm = new listStream(); grfOrder = new C1FlexGrid(); ptt = new Patient(); //timer1 = new Timer(); //int chk = 0; //int.TryParse(bc.iniC.timerImgScanNew, out chk); //timer1.Interval = chk; //timer1.Enabled = true; //timer1.Tick += Timer1_Tick; //timer1.Stop(); theme1.SetTheme(sb1, ic.iniC.themeApp); theme1.SetTheme(groupBox1, ic.iniC.themeApp); theme1.SetTheme(panel2, ic.iniC.themeApp); theme1.SetTheme(panel3, ic.iniC.themeApp); theme1.SetTheme(sC1, ic.iniC.themeApp); foreach (Control con in groupBox1.Controls) { theme1.SetTheme(con, ic.iniC.themeApp); } //foreach (Control con in grfScan.Controls) //{ // theme1.SetTheme(con, "ExpressionDark"); //} initGrf(); txtHn.Value = hn; ptt = ic.ivfDB.pttDB.selectByHn(txtHn.Text.Trim()); txtName.Value = ptt.Name; setGrfVs(); btnHn.Click += BtnHn_Click; btnOpen.Click += BtnOpen_Click; //btnRefresh.Click += BtnRefresh_Click; txtHn.KeyUp += TxtHn_KeyUp; //tcDtr.SelectedTabChanged += TcDtr_SelectedTabChanged; //sC1.TabIndexChanged += SC1_TabIndexChanged; //tcDtr.TabClick += TcDtr_TabClick; tcDtr = new C1DockingTab(); tcDtr.Dock = System.Windows.Forms.DockStyle.Fill; tcDtr.Location = new System.Drawing.Point(0, 266); tcDtr.Name = "c1DockingTab1"; tcDtr.Size = new System.Drawing.Size(669, 200); tcDtr.TabIndex = 0; tcDtr.TabsSpacing = 5; panel3.Controls.Add(tcDtr); theme1.SetTheme(tcDtr, ic.iniC.themeApplication); //tabStfNote = new C1DockingTabPage(); //tabStfNote.Location = new System.Drawing.Point(1, 24); ////tabScan.Name = "c1DockingTabPage1"; //tabStfNote.Size = new System.Drawing.Size(667, 175); //tabStfNote.TabIndex = 0; //tabStfNote.Text = "ใบยา / Staff's Note"; //tabStfNote.Name = "tabPageScan"; //tcDtr.Controls.Add(tabStfNote); tcDtr.TabClick += TcDtr_TabClick; tabOrder = new C1DockingTabPage(); tabOrder.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabOrder.Size = new System.Drawing.Size(667, 175); tabOrder.TabIndex = 0; tabOrder.Text = "ประวัติการสั่งการ"; tabOrder.Name = "tabOrder"; tcDtr.Controls.Add(tabOrder); tabScan = new C1DockingTabPage(); tabScan.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabScan.Size = new System.Drawing.Size(667, 175); tabScan.TabIndex = 0; tabScan.Text = "เวชระเบียน Scan"; tabScan.Name = "tabPageScan"; tcDtr.Controls.Add(tabScan); grfOrder.Font = fEdit; grfOrder.Dock = System.Windows.Forms.DockStyle.Fill; grfOrder.Location = new System.Drawing.Point(0, 0); grfOrder.Rows[0].Visible = false; grfOrder.Cols[0].Visible = false; grfOrder.Cols[colOrderId].Visible = false; grfOrder.Rows.Count = 1; grfOrder.Cols.Count = 5; grfOrder.Cols[colOrderName].Caption = "ชื่อ"; grfOrder.Cols[colOrderMed].Caption = "-"; grfOrder.Cols[colOrderQty].Caption = "QTY"; grfOrder.Cols[colOrderName].Width = 300; grfOrder.Cols[colOrderMed].Width = 200; grfOrder.Cols[colOrderQty].Width = 60; grfOrder.Name = "grfOrder"; grfScan = new C1FlexGrid(); grfScan.Font = fEdit; grfScan.Dock = System.Windows.Forms.DockStyle.Fill; grfScan.Location = new System.Drawing.Point(0, 0); grfScan.Rows[0].Visible = false; grfScan.Cols[0].Visible = false; grfScan.Rows.Count = 1; grfScan.Name = "grfScan"; grfScan.Cols.Count = 5; Column colpic1 = grfScan.Cols[colPic1]; colpic1.DataType = typeof(Image); Column colpic2 = grfScan.Cols[colPic2]; colpic2.DataType = typeof(String); Column colpic3 = grfScan.Cols[colPic3]; colpic3.DataType = typeof(Image); Column colpic4 = grfScan.Cols[colPic4]; colpic4.DataType = typeof(String); grfScan.Cols[colPic1].Width = 310; grfScan.Cols[colPic2].Width = 310; grfScan.Cols[colPic3].Width = 310; grfScan.Cols[colPic4].Width = 310; grfScan.ShowCursor = true; grfScan.Cols[colPic2].Visible = false; grfScan.Cols[colPic3].Visible = true; grfScan.Cols[colPic4].Visible = false; grfScan.Cols[colPic1].AllowEditing = false; grfScan.Cols[colPic3].AllowEditing = false; grfScan.DoubleClick += Grf_DoubleClick; //grfScan.AutoSizeRows(); //grfScan.AutoSizeCols(); //tabScan.Controls.Add(grfScan); theme1.SetTheme(grfOrder, "Office2016Black"); tabOrder.Controls.Add(grfOrder); tabScan.Controls.Add(grfScan); //setPicStaffNote(); theme1.SetTheme(tcDtr, theme1.Theme); }
private void initCompoment() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 150, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; //tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tcMain.ShowCaption = false; tabDeposit = new C1DockingTabPage(); tabDeposit.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabDeposit.Size = new System.Drawing.Size(667, 175); tabDeposit.TabIndex = 0; tabDeposit.Text = "Template Drug"; tabDeposit.Name = "tabDeposit"; tcMain.Controls.Add(tabDeposit); lbcboDrugName = new Label(); lbtxtRemark = new Label(); lbtxtQty = new Label(); lbtxtThai = new Label(); lbtxtEng = new Label(); lbtxtDtrName = new Label(); txtRemark = new C1TextBox(); txtQty = new C1TextBox(); txtThai = new C1TextBox(); txtEng = new C1TextBox(); txtDtrName = new C1TextBox(); cboDrugName = new C1ComboBox(); lbcboTempDrugName = new Label(); txtTempDrugName = new C1TextBox(); txtId = new C1TextBox(); cboTempDrugName = new C1ComboBox(); btnNew = new C1Button(); btnSave = new C1Button(); ic.setControlLabel(ref lbcboTempDrugName, fEdit, "Template Name :", "lbtxtTempDrugName", gapX, gapY); //ic.setControlC1TextBox(ref txtTempDrugName, fEdit, "txtTempDrugName", 400, xCol2, gapY); ic.setControlC1ComboBox(ref cboTempDrugName, fEdit, "cboTempDrugName", 400, xCol2, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtDtrName, fEdit, "Doctor Name :", "lbtxtDtrName", gapX, gapY); ic.setControlC1TextBox(ref txtDtrName, fEdit, "txtDtrName", 400, xCol2, gapY); gapY += gapLine; ic.setControlLabel(ref lbcboDrugName, fEdit, "Drug Name :", "lbcboDrugName", gapX, gapY); ic.setControlC1ComboBox(ref cboDrugName, "cboDrugName", 400, xCol2, gapY); cboDrugName.Font = fEdit; gapY += gapLine; ic.setControlLabel(ref lbtxtRemark, fEdit, "Remark :", "lbtxtRemark", gapX, gapY); ic.setControlC1TextBox(ref txtRemark, fEdit, "txtRemark", 400, xCol2, gapY); ic.setControlC1Button(ref btnNew, fEdit, "New", "btnNew", xCol4, gapY - 10); btnNew.Width = 70; gapY += gapLine; ic.setControlLabel(ref lbtxtThai, fEdit, "Thai :", "lbtxtThai", gapX, gapY); ic.setControlC1TextBox(ref txtThai, fEdit, "txtThai", 600, xCol2, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtEng, fEdit, "English :", "lbtxtEng", gapX, gapY); ic.setControlC1TextBox(ref txtEng, fEdit, "txtEng", 600, xCol2, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtQty, fEdit, "QTY :", "lbtxtQty", gapX, gapY); ic.setControlC1TextBox(ref txtQty, fEdit, "txtQty", 80, xCol2, gapY); txtQty.DataType = typeof(decimal); ic.setControlC1Button(ref btnSave, fEdit, "Save", "btnSave", xCol4, gapY); btnSave.Width = 70; grfDrug = new C1FlexGrid(); grfDrug.Name = "grfDeposit"; grfDrug.Font = fEdit; grfDrug.Dock = System.Windows.Forms.DockStyle.Bottom; grfDrug.Location = new System.Drawing.Point(0, 0); grfDrug.Rows.Count = 1; ContextMenu menuGw = new ContextMenu(); menuGw.MenuItems.Add("Void Drug", new EventHandler(ContextMenu_void_drug)); grfDrug.ContextMenu = menuGw; tabDeposit.Controls.Add(lbtxtDtrName); tabDeposit.Controls.Add(txtDtrName); tabDeposit.Controls.Add(lbcboDrugName); tabDeposit.Controls.Add(cboDrugName); tabDeposit.Controls.Add(lbtxtRemark); tabDeposit.Controls.Add(txtRemark); tabDeposit.Controls.Add(lbtxtThai); tabDeposit.Controls.Add(txtThai); tabDeposit.Controls.Add(lbtxtEng); tabDeposit.Controls.Add(txtEng); tabDeposit.Controls.Add(lbtxtQty); tabDeposit.Controls.Add(txtQty); tabDeposit.Controls.Add(btnSave); tabDeposit.Controls.Add(lbcboTempDrugName); tabDeposit.Controls.Add(cboTempDrugName); tabDeposit.Controls.Add(btnNew); tabDeposit.Controls.Add(grfDrug); this.Controls.Add(tcMain); theme1.SetTheme(lbcboDrugName, ic.theme); theme1.SetTheme(txtEng, ic.theme); Action <Control> setTheme = null; setTheme = (c) => { if (C1.Win.C1Themes.C1ThemeController.IsObjectThemeable(c)) { this.theme1.SetTheme(c, "Office2010Blue"); } foreach (Control cc in c.Controls) { setTheme(cc); } }; setTheme(this); }
private void initTC() { dtCat = mposC.mposDB.foocDB.selectAll(); dtRec = mposC.mposDB.foocDB.selectAll(); tC = new C1DockingTab(); tC.Dock = System.Windows.Forms.DockStyle.Fill; tC.Location = new System.Drawing.Point(0, 266); tC.Name = "c1DockingTab1"; tC.Size = new System.Drawing.Size(669, 200); tC.TabIndex = 0; tC.TabsSpacing = 5; tC.Font = fEdit1; pnOrder.Controls.Add(tC); tabPage = new C1DockingTabPage[dtCat.Rows.Count + 1]; TileFoods = new C1TileControl[dtCat.Rows.Count + 1]; gr1 = new Group[dtCat.Rows.Count + 1]; tabPage[0] = new C1DockingTabPage(); tabPage[0].Location = new System.Drawing.Point(1, 24); tabPage[0].Name = "c1DockingTabPage1"; tabPage[0].Size = new System.Drawing.Size(667, 175); tabPage[0].TabIndex = 0; tabPage[0].Text = "Recommend"; tabPage[0].Name = "Page0"; tC.Controls.Add(tabPage[0]); TileRec = new C1TileControl(); TileRec.Dock = DockStyle.Fill; if (mposC.iniC.TileFoodsOrientation.Equals("0")) { TileRec.Orientation = LayoutOrientation.Horizontal; } else { TileRec.Orientation = LayoutOrientation.Vertical; } grRec = new Group(); TileRec.Groups.Add(this.grRec); grRec = new Group(); panelElement1 = new C1.Win.C1Tile.PanelElement(); imageElement1 = new C1.Win.C1Tile.ImageElement(); tempFlickr = new C1.Win.C1Tile.Template(); imageElement8 = new C1.Win.C1Tile.ImageElement(); textElement1 = new C1.Win.C1Tile.TextElement(); pnFoodsName = new C1.Win.C1Tile.PanelElement(); pnFoodsPrice = new C1.Win.C1Tile.PanelElement(); txtFoodsName = new C1.Win.C1Tile.TextElement(); txtFoodsPrice = new C1.Win.C1Tile.TextElement(); imageElement8.ImageLayout = C1.Win.C1Tile.ForeImageLayout.ScaleOuter; txtFoodsName.BackColorSelector = C1.Win.C1Tile.BackColorSelector.Unbound; txtFoodsName.ForeColor = System.Drawing.Color.Black; txtFoodsName.ForeColorSelector = C1.Win.C1Tile.ForeColorSelector.Unbound; txtFoodsName.SingleLine = true; pnFoodsName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); pnFoodsName.Children.Add(txtFoodsName); pnFoodsName.Dock = System.Windows.Forms.DockStyle.Top; pnFoodsName.Padding = new System.Windows.Forms.Padding(4, 2, 4, 2); pnFoodsPrice.AlignmentOfContents = System.Drawing.ContentAlignment.MiddleRight; pnFoodsPrice.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); //panelElement11.Children.Add(panelElement12); pnFoodsPrice.Children.Add(txtFoodsPrice); pnFoodsPrice.Dock = System.Windows.Forms.DockStyle.Bottom; pnFoodsPrice.FixedHeight = 32; txtFoodsPrice.BackColorSelector = C1.Win.C1Tile.BackColorSelector.Unbound; txtFoodsPrice.Margin = new System.Windows.Forms.Padding(0, 0, 37, 0); txtFoodsPrice.TextSelector = C1.Win.C1Tile.TextSelector.Text1; textElement1.Font = fEdit; TileRec.Font = fEdit; panelElement1.Alignment = System.Drawing.ContentAlignment.BottomLeft; panelElement1.Children.Add(imageElement1); panelElement1.Children.Add(textElement1); panelElement1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); TileRec.DefaultTemplate.Elements.Add(panelElement1); TileRec.Templates.Add(this.tempFlickr); //TileFoods = new C1TileControl(); TileRec.Name = "tilerec"; TileRec.Dock = DockStyle.Fill; //pnOrder.Controls.Add(TileFoods); this.tempFlickr.Elements.Add(imageElement8); this.tempFlickr.Elements.Add(pnFoodsName); this.tempFlickr.Elements.Add(pnFoodsPrice); this.tempFlickr.Name = "tempFlickrrec"; TileRec.ScrollOffset = 0; TileRec.SurfaceContentAlignment = System.Drawing.ContentAlignment.TopLeft; TileRec.Padding = new System.Windows.Forms.Padding(0); TileRec.GroupPadding = new System.Windows.Forms.Padding(20); tabPage[0].Controls.Add(TileRec); for (int i = 1; i < dtCat.Rows.Count + 1; i++) { //if (i == 0) //{ //} //else //{ //if (i == dtCat.Rows.Count) continue; tabPage[i] = new C1DockingTabPage(); gr1[i] = new Group(); tabPage[i].Location = new System.Drawing.Point(1, 24); //tabPage.Name = "c1DockingTabPage"+i; tabPage[i].Size = new System.Drawing.Size(667, 175); tabPage[i].TabIndex = 0; tabPage[i].Text = dtCat.Rows[i - 1]["foods_cat_name"].ToString(); tabPage[i].Name = "Page" + i; //tabPage[i].Font = fEditB; tC.Controls.Add(tabPage[i]); TileFoods[i] = new C1TileControl(); if (i == 1) { intptr = TileFoods[i].Handle; } if (mposC.iniC.TileFoodsOrientation.Equals("0")) { TileFoods[i].Orientation = LayoutOrientation.Horizontal; } else { TileFoods[i].Orientation = LayoutOrientation.Vertical; } TileFoods[i].Groups.Add(this.gr1[i]); panelElement1 = new C1.Win.C1Tile.PanelElement(); imageElement1 = new C1.Win.C1Tile.ImageElement(); tempFlickr = new C1.Win.C1Tile.Template(); imageElement8 = new C1.Win.C1Tile.ImageElement(); textElement1 = new C1.Win.C1Tile.TextElement(); pnFoodsName = new C1.Win.C1Tile.PanelElement(); pnFoodsPrice = new C1.Win.C1Tile.PanelElement(); txtFoodsName = new C1.Win.C1Tile.TextElement(); txtFoodsPrice = new C1.Win.C1Tile.TextElement(); imageElement8.ImageLayout = C1.Win.C1Tile.ForeImageLayout.ScaleOuter; txtFoodsName.BackColorSelector = C1.Win.C1Tile.BackColorSelector.Unbound; txtFoodsName.ForeColor = System.Drawing.Color.Black; txtFoodsName.ForeColorSelector = C1.Win.C1Tile.ForeColorSelector.Unbound; txtFoodsName.SingleLine = true; pnFoodsName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); pnFoodsName.Children.Add(txtFoodsName); pnFoodsName.Dock = System.Windows.Forms.DockStyle.Top; pnFoodsName.Padding = new System.Windows.Forms.Padding(4, 2, 4, 2); pnFoodsPrice.AlignmentOfContents = System.Drawing.ContentAlignment.MiddleRight; pnFoodsPrice.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); //panelElement11.Children.Add(panelElement12); pnFoodsPrice.Children.Add(txtFoodsPrice); pnFoodsPrice.Dock = System.Windows.Forms.DockStyle.Bottom; pnFoodsPrice.FixedHeight = 32; txtFoodsPrice.BackColorSelector = C1.Win.C1Tile.BackColorSelector.Unbound; txtFoodsPrice.Margin = new System.Windows.Forms.Padding(0, 0, 37, 0); txtFoodsPrice.TextSelector = C1.Win.C1Tile.TextSelector.Text1; textElement1.Font = fEdit; TileFoods[i].Font = fEdit; panelElement1.Alignment = System.Drawing.ContentAlignment.BottomLeft; panelElement1.Children.Add(imageElement1); panelElement1.Children.Add(textElement1); panelElement1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); TileFoods[i].DefaultTemplate.Elements.Add(panelElement1); TileFoods[i].Templates.Add(this.tempFlickr); //TileFoods = new C1TileControl(); TileFoods[i].Name = "tile" + i; TileFoods[i].Dock = DockStyle.Fill; //pnOrder.Controls.Add(TileFoods); this.tempFlickr.Elements.Add(imageElement8); this.tempFlickr.Elements.Add(pnFoodsName); this.tempFlickr.Elements.Add(pnFoodsPrice); this.tempFlickr.Name = "tempFlickr"; TileFoods[i].ScrollOffset = 0; TileFoods[i].SurfaceContentAlignment = System.Drawing.ContentAlignment.TopLeft; TileFoods[i].Padding = new System.Windows.Forms.Padding(0); TileFoods[i].GroupPadding = new System.Windows.Forms.Padding(20); tabPage[i].Controls.Add(TileFoods[i]); //} } }
private void initTab() { int gapLine = 15, gapX = 20; Size size = new Size(); Size size1 = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; tC1 = new C1.Win.C1Command.C1DockingTab(); 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; tabItem = new C1.Win.C1Command.C1DockingTabPage(); tabItem.Name = "tabItem"; tabItem.TabIndex = 0; tabItem.Text = "Item Master"; tabDrug = new C1.Win.C1Command.C1DockingTabPage(); tabDrug.Name = "tabDrug"; tabDrug.TabIndex = 0; tabDrug.Text = "Drug"; tabSpecial = new C1.Win.C1Command.C1DockingTabPage(); tabSpecial.Name = "tabSpecial"; tabSpecial.TabIndex = 0; tabSpecial.Text = "Special Item"; tabLab = new C1.Win.C1Command.C1DockingTabPage(); tabLab.Name = "tabLab"; tabLab.TabIndex = 0; tabLab.Text = "Lab Item"; pnItem = new Panel(); pnItem.Dock = DockStyle.Fill; lbCboname = new Label(); lbCboname.Text = "Type :"; lbCboname.Font = fEdit; lbCboname.Location = new System.Drawing.Point(gapX, 10); lbCboname.AutoSize = true; cboItemType = new C1ComboBox(); size = ic.MeasureString(lbCboname); cboItemType.Location = new System.Drawing.Point(gapX + size.Width, lbCboname.Location.Y); cboItemType.SelectedItemChanged += CboItemType_SelectedItemChanged; lbItem = new Label(); lbItem.Text = "Item :"; lbItem.Font = fEdit; lbItem.Location = new System.Drawing.Point(gapX, gapLine + cboItemType.Height); lbItem.AutoSize = true; txtCode = new C1TextBox(); txtCode.Font = fEdit; txtCode.Location = new System.Drawing.Point(cboItemType.Location.X, lbItem.Location.Y); lbItemName = new Label(); lbItemName.Text = "..."; lbItemName.Font = fEdit; lbItemName.Location = new System.Drawing.Point(txtCode.Location.X + txtCode.Width, txtCode.Location.Y); lbItemName.AutoSize = true; btnSave = new C1Button(); btnSave.Name = ""; btnSave.Text = "Save"; btnSave.Font = fEdit; btnSave.Location = new System.Drawing.Point(txtCode.Location.X + txtCode.Width + 300, txtCode.Location.Y); btnSave.Click += BtnSave_Click; btnClear = new C1Button(); btnClear.Name = ""; btnClear.Text = "Clear"; btnClear.Font = fEdit; btnClear.Location = new System.Drawing.Point(btnSave.Location.X + btnSave.Width + 10, btnSave.Location.Y); btnClear.Click += BtnClear_Click; lbMessage = new Label(); lbMessage.Text = ""; lbMessage.Font = fEditB; lbMessage.Location = new System.Drawing.Point(btnClear.Location.X + btnClear.Width + 10, btnClear.Location.Y); lbMessage.AutoSize = true; panel1.Controls.Add(tC1); tC1.Controls.Add(tabItem); tC1.Controls.Add(tabDrug); tC1.Controls.Add(tabSpecial); tC1.Controls.Add(tabLab); grfItem = new C1FlexGrid(); grfItem.Font = fEdit; grfItem.Location = new System.Drawing.Point(gapX, gapLine + txtCode.Height + txtCode.Location.Y); grfItem.Size = new Size(900, 300); grfItem.RowColChange += GrfItem_RowColChange; lbCapPtt = new Label(); lbCapPtt.Text = "Master"; lbCapPtt.Font = fEdit; lbCapPtt.Location = new System.Drawing.Point(gapX, gapLine + grfItem.Location.Y + grfItem.Height); lbCapPtt.AutoSize = true; size = ic.MeasureString(lbCapPtt); txtItemCode = new C1TextBox(); txtItemCode.Font = fEdit; txtItemCode.Location = new System.Drawing.Point(gapX + size.Width, lbCapPtt.Location.Y); lbItemCode = new Label(); lbItemCode.Text = "..."; lbItemCode.Font = fEdit; lbItemCode.Location = new System.Drawing.Point(gapX + txtItemCode.Location.X + txtItemCode.Width, lbCapPtt.Location.Y); lbItemCode.AutoSize = true; lbCapLink = new Label(); lbCapLink.Text = "Link"; lbCapLink.Font = fEdit; lbCapLink.Location = new System.Drawing.Point(scrW / 2, lbCapPtt.Location.Y); lbCapLink.AutoSize = true; size = ic.MeasureString(lbCapLink); txtLinkCode = new C1TextBox(); txtLinkCode.Font = fEdit; txtLinkCode.Location = new System.Drawing.Point(lbCapLink.Location.X + size.Width, lbCapLink.Location.Y); lbLinkCode = new Label(); lbLinkCode.Text = "..."; lbLinkCode.Font = fEdit; lbLinkCode.Location = new System.Drawing.Point(gapX + txtLinkCode.Location.X + txtLinkCode.Width, lbCapPtt.Location.Y); lbLinkCode.AutoSize = true; grfPtt = new C1FlexGrid(); grfPtt.Font = fEdit; grfPtt.Location = new System.Drawing.Point(gapX, lbCapPtt.Height + lbCapPtt.Location.Y); grfPtt.Size = new Size((scrW / 2) - 50, 300); grfPtt.RowColChange += GrfPtt_RowColChange; grfLink = new C1FlexGrid(); grfLink.Font = fEdit; grfLink.Location = new System.Drawing.Point(gapX + grfPtt.Width + gapX, grfPtt.Location.Y); grfLink.Size = new Size((scrW / 2) - 50, 300); grfLink.RowColChange += GrfLink_RowColChange; tabItem.Controls.Add(pnItem); pnItem.Controls.Add(lbCboname); pnItem.Controls.Add(cboItemType); pnItem.Controls.Add(lbItemName); pnItem.Controls.Add(lbItem); pnItem.Controls.Add(txtCode); pnItem.Controls.Add(grfItem); pnItem.Controls.Add(lbCapPtt); pnItem.Controls.Add(lbCapLink); pnItem.Controls.Add(grfPtt); pnItem.Controls.Add(grfLink); pnItem.Controls.Add(txtItemCode); pnItem.Controls.Add(txtLinkCode); pnItem.Controls.Add(lbItemCode); pnItem.Controls.Add(lbLinkCode); pnItem.Controls.Add(btnSave); pnItem.Controls.Add(btnClear); pnItem.Controls.Add(lbMessage); theme1.SetTheme(panel1, ic.iniC.themeApp); theme1.SetTheme(tC1, ic.iniC.themeApp); theme1.SetTheme(tC1, ic.iniC.themeApp); theme1.SetTheme(lbMessage, ic.iniC.themeApp); lbMessage.Text = "สร้างข้อมูลLinkใหม่"; }
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 InitComponent() { int gapY = 30, gapX = 20, gapLine = 5, gapColName = 70; Size size = new Size(); theme1 = new C1ThemeController(); theme1.Theme = ic.iniC.themeApplication; pnTop = new Panel(); pnTop.Dock = DockStyle.Top; pnTop.Size = new Size(20, 60); pnBody = new Panel(); pnBody.Dock = DockStyle.Fill; pnTop.SuspendLayout(); pnBody.SuspendLayout(); this.SuspendLayout(); lbYear = new Label(); lbYear.Text = "Year :"; lbYear.Font = fEdit; lbYear.Location = new System.Drawing.Point(gapX, gapLine); lbYear.AutoSize = true; lbYear.Name = "lbYear"; size = ic.MeasureString(lbYear); cboYear = new C1ComboBox(); cboYear.AllowSpinLoop = false; cboYear.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; cboYear.Font = fEdit; cboYear.GapHeight = 0; cboYear.ImagePadding = new System.Windows.Forms.Padding(0); cboYear.ItemsDisplayMember = ""; cboYear.ItemsValueMember = ""; cboYear.Location = new System.Drawing.Point(size.Width + 20, lbYear.Location.Y); cboYear.Name = "cboYear"; cboYear.Size = new System.Drawing.Size(184, 20); cboYear.TabIndex = 562; cboYear.Tag = null; theme1.SetTheme(cboYear, "(default)"); cboYear.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; cboYear.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; cboYear.Location = new Point(gapColName, lbYear.Location.Y); btnNew = new C1Button(); btnNew.Name = "btnNew"; btnNew.Text = "New 2019"; btnNew.Font = this.fEdit; size = ic.MeasureString(btnNew); btnNew.Size = new Size(100, 40); btnNew.Location = new Point(cboYear.Location.X + cboYear.Width + 40, lbYear.Location.Y); btnNew.Click += BtnNew_Click; btnSave = new C1Button(); btnSave.Name = "btnSave"; btnSave.Text = "Save 2019"; btnSave.Font = this.fEdit; size = ic.MeasureString(btnSave); btnSave.Size = new Size(100, 40); btnSave.Location = new Point(btnNew.Location.X + btnNew.Width + 40, lbYear.Location.Y); btnSave.Click += BtnSave_Click; tC1 = new C1DockingTab(); 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.CanCloseTabs = true; tab2019 = new C1DockingTabPage(); tC1.SuspendLayout(); tab2019.SuspendLayout(); tab2019.Name = "tabOnhand"; tab2019.TabIndex = 0; tab2019.Text = "Onhand"; theme1.SetTheme(tC1, ic.theme); pnTop.Controls.Add(lbYear); pnTop.Controls.Add(cboYear); pnTop.Controls.Add(lbStkSubName); //pnTop.Controls.Add(cboStkSubName); pnTop.Controls.Add(btnNew); pnTop.Controls.Add(btnSave); this.Controls.Add(pnBody); this.Controls.Add(pnTop); tC1.Controls.Add(tab2019); pnBody.Controls.Add(tC1); theme1.SetTheme(pnBody, ic.iniC.themeApp); theme1.SetTheme(pnTop, "Office2010Red"); pnTop.ResumeLayout(false); pnBody.ResumeLayout(false); tC1.ResumeLayout(false); tab2019.ResumeLayout(false); this.ResumeLayout(false); pnBody.PerformLayout(); pnTop.PerformLayout(); tC1.PerformLayout(); tab2019.PerformLayout(); this.PerformLayout(); }