void PreparePreviewPanel() { var pp = c1RibbonPreview1.PreviewPane; _reportPanel = (C1SplitterPanel)pp.Parent; pp.ZoomMode = ZoomModeEnum.PageWidth; pp.PropertyChanged += PreviewPane_PropertyChanged; }
private void Panel_CloseButtonClick(object sender, EventArgs e) { C1SplitterPanel panel = sender as C1SplitterPanel; if (panel != null) { panel.Collapsible = false; panel.Visible = false; } }
void SetActive(C1SplitterPanel pan) { if (_active == pan || !c1SplitterPanel1.Visible || !c1SplitterPanel2.Visible) { return; } int w1 = c1SplitterPanel1.Width; int w2 = c1SplitterPanel2.Width; _active = pan; c1SplitContainer1.Panels.BeginUpdate(); c1SplitContainer1.Panels.Remove(pan); c1SplitContainer1.Panels.Insert(0, pan); c1SplitterPanel1.Width = w1; c1SplitterPanel2.Width = w2; c1SplitContainer1.Panels.EndUpdate(); }
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); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); //theme1.SetTheme(tC, "Office2010Blue"); sB1.Text = ""; bg = txtSearch.BackColor; fc = txtSearch.ForeColor; ff = txtSearch.Font; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); tabReport = new C1DockingTabPage(); tabReport.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabReport.Size = new System.Drawing.Size(667, 175); tabReport.TabIndex = 0; tabReport.Text = "Report"; tabReport.Name = "tabReport"; tC.Controls.Add(tabReport); sCRpt = new C1.Win.C1SplitContainer.C1SplitContainer(); scRptLeft = new C1.Win.C1SplitContainer.C1SplitterPanel(); scRptRight = new C1.Win.C1SplitContainer.C1SplitterPanel(); sCRptReport = new C1.Win.C1SplitContainer.C1SplitContainer(); scRptReportName = new C1.Win.C1SplitContainer.C1SplitterPanel(); scRptReportCriteria = new C1.Win.C1SplitContainer.C1SplitterPanel(); sCRpt.SuspendLayout(); scRptRight.SuspendLayout(); scRptLeft.SuspendLayout(); sCRptReport.SuspendLayout(); scRptReportName.SuspendLayout(); scRptReportCriteria.SuspendLayout(); scRptLeft.Collapsible = true; scRptLeft.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Left; scRptLeft.Location = new System.Drawing.Point(0, 21); scRptLeft.Name = "scRptLeft"; scRptLeft.Controls.Add(sCRptReport); scRptLeft.ClientSize = new Size(20, 80); scRptLeft.Collapsible = true; scRptLeft.SizeRatio = 15; scRptRight.Collapsible = false; scRptRight.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Right; scRptRight.Location = new System.Drawing.Point(0, 21); scRptRight.Name = "scRptRight"; //scRptRight.Controls.Add(day0View); sCRpt.AutoSizeElement = C1.Framework.AutoSizeElement.Both; sCRpt.Name = "sCRpt"; sCRpt.Dock = System.Windows.Forms.DockStyle.Fill; sCRpt.Panels.Add(scRptLeft); sCRpt.Panels.Add(scRptRight); tabReport.Controls.Add(sCRpt); scRptReportCriteria.Collapsible = true; scRptReportCriteria.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Bottom; scRptReportCriteria.Location = new System.Drawing.Point(0, 21); scRptReportCriteria.Name = "scRptReportCriteria"; //scRptLeft.Controls.Add(pnEmailDay0); scRptReportCriteria.ClientSize = new Size(20, 80); scRptReportCriteria.Collapsible = true; scRptReportCriteria.SizeRatio = 25; scRptReportName.Collapsible = false; scRptReportName.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Top; scRptReportName.Location = new System.Drawing.Point(0, 21); scRptReportName.Name = "scRptReportName"; sCRptReport.AutoSizeElement = C1.Framework.AutoSizeElement.Both; sCRptReport.Name = "sCRptReport"; sCRptReport.Dock = System.Windows.Forms.DockStyle.Fill; sCRptReport.Panels.Add(scRptReportCriteria); sCRptReport.Panels.Add(scRptReportName); scRptLeft.ResumeLayout(false); scRptRight.ResumeLayout(false); sCRpt.ResumeLayout(false); scRptReportCriteria.ResumeLayout(false); scRptReportName.ResumeLayout(false); sCRptReport.ResumeLayout(false); scRptLeft.PerformLayout(); scRptRight.PerformLayout(); sCRpt.PerformLayout(); scRptReportCriteria.PerformLayout(); scRptReportName.PerformLayout(); sCRptReport.PerformLayout(); //txtDateStart.Value = System.DateTime.Now.Year + "-" + System.DateTime.Now.ToString("MM-dd"); txtDateStart.Value = ""; cboVisitBsp.SelectedItemChanged += CboVisitBsp_SelectedItemChanged; ic.ivfDB.bspDB.setCboBsp(cboVisitBsp, ic.iniC.service_point_id); //btnNew.Click += BtnNew_Click; txtSearch.KeyUp += TxtSearch_KeyUp; //txtDateStart.ValueChanged += TxtDateStart_ValueChanged; txtDateStart.DropDownClosed += TxtDateStart_DropDownClosed; tC.SelectedTabChanged += TC_SelectedTabChanged; btnSearch.Click += BtnSearch_Click; initGrfQue(); initGrfFinish(); initGrfSearch(); initGrfRptName(); initGrfRpt(); int timerlab = 0; int.TryParse(ic.iniC.timerlabreqaccept, out timerlab); timer = new Timer(); timer.Interval = timerlab * 1000; timer.Tick += Timer_Tick; timer.Enabled = true; timer.Start(); pageLoad = false; }
private void InitComponent() { sCFm = new C1SplitContainer(); scFmLeft = new C1SplitterPanel(); scFmRight = new C1SplitterPanel(); pnLeft = new Panel(); pnRight = new Panel(); pnRightTop = new Panel(); pnRightBotton = new Panel(); sCFm.SuspendLayout(); scFmLeft.SuspendLayout(); scFmRight.SuspendLayout(); pnLeft.SuspendLayout(); pnRight.SuspendLayout(); pnRightTop.SuspendLayout(); pnRightBotton.SuspendLayout(); pnLeft.Dock = DockStyle.Fill; pnRight.Dock = DockStyle.Fill; pnRightTop.Dock = DockStyle.Top; pnRightBotton.Dock = DockStyle.Fill; //pnRightTop.BackColor = Color.Red; sCFm.AutoSizeElement = C1.Framework.AutoSizeElement.Both; sCFm.Name = "sCFm"; sCFm.Dock = System.Windows.Forms.DockStyle.Fill; //sCOrdDiag.Panels.Add(pnOrdDiagVal); sCFm.Panels.Add(scFmLeft); sCFm.Panels.Add(scFmRight); sCFm.HeaderHeight = 20; scFmLeft.Collapsible = true; scFmLeft.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Left; scFmLeft.Location = new System.Drawing.Point(0, 21); scFmLeft.Name = "scFmLeft"; scFmRight.Collapsible = true; scFmRight.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Right; scFmRight.Location = new System.Drawing.Point(0, 21); scFmRight.Name = "scFmRight"; scFmLeft.Controls.Add(pnLeft); scFmRight.Controls.Add(pnRight); pnRight.Controls.Add(pnRightBotton); pnRight.Controls.Add(pnRightTop); setConponent(); sCFm.ResumeLayout(false); scFmLeft.ResumeLayout(false); scFmRight.ResumeLayout(false); pnLeft.ResumeLayout(false); pnRight.ResumeLayout(false); pnRightTop.ResumeLayout(false); pnRightBotton.ResumeLayout(false); pnRightTop.PerformLayout(); pnRightBotton.PerformLayout(); pnLeft.PerformLayout(); pnRight.PerformLayout(); sCFm.PerformLayout(); scFmLeft.PerformLayout(); scFmRight.PerformLayout(); this.Controls.Add(sCFm); }
void CreateSsrsPanel() { this.btnShowReport = new System.Windows.Forms.Button(); this.btnHideReport = new System.Windows.Forms.Button(); this.tvReports = new System.Windows.Forms.TreeView(); this.btnOpen = new System.Windows.Forms.Button(); this.chkSearchToolBar = new System.Windows.Forms.CheckBox(); this.gbLogin = new System.Windows.Forms.GroupBox(); this.tbDomain = new System.Windows.Forms.TextBox(); this.tbPassword = new System.Windows.Forms.TextBox(); this.tbUserName = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.tbSSRSServer = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); _ssrsPanel = new C1SplitterPanel(); _ssrsPanel.BorderColor = c1RibbonPreview1.OutlineViewSplitterPanel.BorderColor; _ssrsPanel.BorderWidth = 1; _host = new Panel(); _ssrsPanel.Controls.Add(_host); _host.Size = new System.Drawing.Size(290, 576); _host.Controls.Add(this.btnShowReport); _host.Controls.Add(this.btnHideReport); _host.Controls.Add(this.tvReports); _host.Controls.Add(this.btnOpen); _host.Controls.Add(this.chkSearchToolBar); _host.Controls.Add(this.gbLogin); _host.Controls.Add(this.tbSSRSServer); _host.Controls.Add(this.label1); _ssrsPanel.Dock = C1.Win.C1SplitContainer.PanelDockStyle.Left; _ssrsPanel.KeepRelativeSize = false; _ssrsPanel.MinWidth = 210; _ssrsPanel.ShowCloseButton = true; _ssrsPanel.Text = "SSRS Source Configuration"; _ssrsPanel.Width = 236; _ssrsPanel.CloseButtonClick += SsrsPanel_CloseButtonClick; _ssrsPanel.VisibleChanged += SsrsPanel_VisibleChanged; _ssrsPanel.SizeChanged += SsrsPanel_SizeChanged; // // btnShowReport // btnShowReport.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.btnShowReport.Location = new System.Drawing.Point(194, 547); this.btnShowReport.Name = "btnShowReport"; this.btnShowReport.Size = new System.Drawing.Size(89, 23); this.btnShowReport.TabIndex = 7; this.btnShowReport.Text = "Show Report"; this.btnShowReport.UseVisualStyleBackColor = true; this.btnShowReport.Click += new System.EventHandler(this.btnShowReport_Click); // // btnHideReport // btnHideReport.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; this.btnHideReport.Enabled = false; this.btnHideReport.Location = new System.Drawing.Point(8, 547); this.btnHideReport.Name = "btnHideReport"; this.btnHideReport.Size = new System.Drawing.Size(89, 23); this.btnHideReport.TabIndex = 6; this.btnHideReport.Text = "Hide Report"; this.btnHideReport.UseVisualStyleBackColor = true; this.btnHideReport.Click += new System.EventHandler(this.btnHideReport_Click); // // tvReports // tvReports.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.tvReports.HideSelection = false; this.tvReports.ImageIndex = 0; this.tvReports.ImageList = this.ilMain; this.tvReports.Location = new System.Drawing.Point(8, 193); this.tvReports.Name = "tvReports"; this.tvReports.SelectedImageIndex = 0; this.tvReports.Size = new System.Drawing.Size(275, 348); this.tvReports.TabIndex = 5; this.tvReports.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(tvReports_AfterSelect); this.tvReports.DoubleClick += new System.EventHandler(this.tvReports_DoubleClick); // // btnOpen // btnOpen.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.btnOpen.Location = new System.Drawing.Point(208, 164); this.btnOpen.Name = "btnOpen"; this.btnOpen.Size = new System.Drawing.Size(75, 23); this.btnOpen.TabIndex = 4; this.btnOpen.Text = "Open"; this.btnOpen.UseVisualStyleBackColor = true; this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click); // // chkSearchToolBar // this.chkSearchToolBar.AutoSize = true; this.chkSearchToolBar.Checked = true; this.chkSearchToolBar.Location = new System.Drawing.Point(8, 167); this.chkSearchToolBar.Name = "chkSearchToolBar"; this.chkSearchToolBar.Size = new System.Drawing.Size(127, 19); this.chkSearchToolBar.TabIndex = 3; this.chkSearchToolBar.Text = "Use Search ToolBar"; this.chkSearchToolBar.UseVisualStyleBackColor = true; this.chkSearchToolBar.Click += new System.EventHandler(this.chkSearchToolBar_Click); // // gbLogin // gbLogin.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.gbLogin.Controls.Add(this.tbDomain); this.gbLogin.Controls.Add(this.tbPassword); this.gbLogin.Controls.Add(this.tbUserName); this.gbLogin.Controls.Add(this.label4); this.gbLogin.Controls.Add(this.label3); this.gbLogin.Controls.Add(this.label2); this.gbLogin.Location = new System.Drawing.Point(8, 53); this.gbLogin.Name = "gbLogin"; this.gbLogin.Size = new System.Drawing.Size(274, 105); this.gbLogin.TabIndex = 2; this.gbLogin.TabStop = false; this.gbLogin.Text = " Login information "; // // tbDomain // tbDomain.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.tbDomain.Location = new System.Drawing.Point(80, 73); this.tbDomain.Name = "tbDomain"; this.tbDomain.Size = new System.Drawing.Size(184, 23); this.tbDomain.TabIndex = 5; // // tbPassword // tbPassword.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.tbPassword.Location = new System.Drawing.Point(80, 47); this.tbPassword.Name = "tbPassword"; this.tbPassword.PasswordChar = '*'; this.tbPassword.Size = new System.Drawing.Size(184, 23); this.tbPassword.TabIndex = 3; // // tbUserName // tbUserName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.tbUserName.Location = new System.Drawing.Point(80, 21); this.tbUserName.Name = "tbUserName"; this.tbUserName.Size = new System.Drawing.Size(184, 23); this.tbUserName.TabIndex = 1; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 75); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(52, 15); this.label4.TabIndex = 4; this.label4.Text = "Domain:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 49); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(60, 15); this.label3.TabIndex = 2; this.label3.Text = "Password:"******"label2"; this.label2.Size = new System.Drawing.Size(68, 15); this.label2.TabIndex = 0; this.label2.Text = "User Name:"; // // tbSSRSServer // tbSSRSServer.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.tbSSRSServer.Location = new System.Drawing.Point(8, 25); this.tbSSRSServer.Name = "tbSSRSServer"; this.tbSSRSServer.Size = new System.Drawing.Size(275, 23); this.tbSSRSServer.TabIndex = 1; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 7); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(70, 15); this.label1.TabIndex = 0; this.label1.Text = "SSRS Server:"; c1RibbonPreview1.SplitContainer.Panels.Insert(0, _ssrsPanel); }
private void initCompoment() { int gapLine = 20, gapX = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; sC = new C1SplitContainer(); scLeft = new C1.Win.C1SplitContainer.C1SplitterPanel(); scRight = new C1.Win.C1SplitContainer.C1SplitterPanel(); panel1 = new Panel(); sC.SuspendLayout(); scLeft.SuspendLayout(); scRight.SuspendLayout(); panel1.SuspendLayout(); this.SuspendLayout(); sC.Dock = System.Windows.Forms.DockStyle.Fill; sC.Location = new System.Drawing.Point(0, 0); sC.Name = "splitContainer1"; sC.Size = new System.Drawing.Size(800, 450); sC.TabIndex = 0; scLeft.Collapsible = true; scLeft.Height = 86; scLeft.Location = new System.Drawing.Point(0, 21); scLeft.Name = "scLeft"; scLeft.Size = new System.Drawing.Size(298, 58); scLeft.TabIndex = 0; scLeft.Text = "Customer List"; scLeft.Dock = PanelDockStyle.Left; scRight.Height = 85; scRight.Location = new System.Drawing.Point(0, 111); scRight.Name = "scRight"; scRight.Dock = PanelDockStyle.Right; scRight.Size = new System.Drawing.Size(298, 64); scRight.TabIndex = 1; scRight.Text = "Customer Add/Edit"; panel1.Dock = System.Windows.Forms.DockStyle.Fill; panel1.Name = "panel1"; setControlComponent(); sC.Panels.Add(scLeft); sC.Panels.Add(scRight); scRight.Controls.Add(panel1); this.Controls.Add(sC); panel1.ResumeLayout(false); sC.ResumeLayout(false); scLeft.ResumeLayout(false); scRight.ResumeLayout(false); this.ResumeLayout(false); panel1.PerformLayout(); sC.PerformLayout(); scLeft.PerformLayout(); scRight.PerformLayout(); this.PerformLayout(); }