示例#1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.btnCustomers  = new System.Windows.Forms.Button();
     this.btnEmployees  = new System.Windows.Forms.Button();
     this.btnSave       = new System.Windows.Forms.Button();
     this.Panel1        = new System.Windows.Forms.Panel();
     this._ppv          = new C1.Win.C1Preview.C1PreviewPane();
     this._toolBar      = new System.Windows.Forms.ToolBar();
     this.tbbtnFirst    = new System.Windows.Forms.ToolBarButton();
     this.tbbtnPrev     = new System.Windows.Forms.ToolBarButton();
     this.tbbtnNext     = new System.Windows.Forms.ToolBarButton();
     this.tbbtnLast     = new System.Windows.Forms.ToolBarButton();
     this.tbbtnSep      = new System.Windows.Forms.ToolBarButton();
     this.tbbtnZoom     = new System.Windows.Forms.ToolBarButton();
     this.mnuZoom       = new System.Windows.Forms.ContextMenu();
     this._mz100        = new System.Windows.Forms.MenuItem();
     this._mzPage       = new System.Windows.Forms.MenuItem();
     this._mzTwoPages   = new System.Windows.Forms.MenuItem();
     this._mzThumbnails = new System.Windows.Forms.MenuItem();
     this.chkGroup      = new System.Windows.Forms.CheckBox();
     this._btnCustomers = new System.Windows.Forms.Button();
     this._btnEmployees = new System.Windows.Forms.Button();
     this._btnSave      = new System.Windows.Forms.Button();
     this.c1r           = new C1.C1Report.C1Report();
     this.status        = new System.Windows.Forms.StatusBar();
     this.Panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1r)).BeginInit();
     this.SuspendLayout();
     //
     // btnCustomers
     //
     this.btnCustomers.Location = new System.Drawing.Point(26, -64);
     this.btnCustomers.Name     = "btnCustomers";
     this.btnCustomers.Size     = new System.Drawing.Size(80, 29);
     this.btnCustomers.TabIndex = 7;
     this.btnCustomers.Text     = "Customers";
     //
     // btnEmployees
     //
     this.btnEmployees.Location = new System.Drawing.Point(-62, -64);
     this.btnEmployees.Name     = "btnEmployees";
     this.btnEmployees.Size     = new System.Drawing.Size(80, 29);
     this.btnEmployees.TabIndex = 5;
     this.btnEmployees.Text     = "Employees";
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(234, -64);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(80, 29);
     this.btnSave.TabIndex = 6;
     this.btnSave.Text     = "Save";
     //
     // Panel1
     //
     this.Panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Panel1.Controls.Add(this._ppv);
     this.Panel1.Controls.Add(this._toolBar);
     this.Panel1.Location = new System.Drawing.Point(8, 40);
     this.Panel1.Name     = "Panel1";
     this.Panel1.Size     = new System.Drawing.Size(489, 351);
     this.Panel1.TabIndex = 8;
     //
     // _ppv
     //
     this._ppv.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._ppv.Location = new System.Drawing.Point(0, 36);
     this._ppv.Name     = "_ppv";
     this._ppv.Size     = new System.Drawing.Size(485, 311);
     this._ppv.TabIndex = 6;
     this._ppv.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.ActualSize;
     //
     // _toolBar
     //
     this._toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this._toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbbtnFirst,
         this.tbbtnPrev,
         this.tbbtnNext,
         this.tbbtnLast,
         this.tbbtnSep,
         this.tbbtnZoom
     });
     this._toolBar.ButtonSize     = new System.Drawing.Size(0, 22);
     this._toolBar.DropDownArrows = true;
     this._toolBar.Location       = new System.Drawing.Point(0, 0);
     this._toolBar.Name           = "_toolBar";
     this._toolBar.ShowToolTips   = true;
     this._toolBar.Size           = new System.Drawing.Size(485, 36);
     this._toolBar.TabIndex       = 5;
     this._toolBar.TextAlign      = System.Windows.Forms.ToolBarTextAlign.Right;
     this._toolBar.Wrappable      = false;
     this._toolBar.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._toolBar_ButtonClick);
     //
     // tbbtnFirst
     //
     this.tbbtnFirst.Name = "tbbtnFirst";
     this.tbbtnFirst.Text = "<<";
     //
     // tbbtnPrev
     //
     this.tbbtnPrev.Name = "tbbtnPrev";
     this.tbbtnPrev.Text = "<";
     //
     // tbbtnNext
     //
     this.tbbtnNext.Name = "tbbtnNext";
     this.tbbtnNext.Text = ">";
     //
     // tbbtnLast
     //
     this.tbbtnLast.Name = "tbbtnLast";
     this.tbbtnLast.Text = ">>";
     //
     // tbbtnSep
     //
     this.tbbtnSep.Name  = "tbbtnSep";
     this.tbbtnSep.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbtnZoom
     //
     this.tbbtnZoom.DropDownMenu = this.mnuZoom;
     this.tbbtnZoom.Name         = "tbbtnZoom";
     this.tbbtnZoom.Style        = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
     this.tbbtnZoom.Text         = "Zoom";
     //
     // mnuZoom
     //
     this.mnuZoom.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this._mz100,
         this._mzPage,
         this._mzTwoPages,
         this._mzThumbnails
     });
     //
     // _mz100
     //
     this._mz100.Index  = 0;
     this._mz100.Text   = "100%";
     this._mz100.Click += new System.EventHandler(this._zoom_Click);
     //
     // _mzPage
     //
     this._mzPage.Index  = 1;
     this._mzPage.Text   = "Full Page";
     this._mzPage.Click += new System.EventHandler(this._zoom_Click);
     //
     // _mzTwoPages
     //
     this._mzTwoPages.Index  = 2;
     this._mzTwoPages.Text   = "Two Pages";
     this._mzTwoPages.Click += new System.EventHandler(this._zoom_Click);
     //
     // _mzThumbnails
     //
     this._mzThumbnails.Index  = 3;
     this._mzThumbnails.Text   = "Thumbnails";
     this._mzThumbnails.Click += new System.EventHandler(this._zoom_Click);
     //
     // chkGroup
     //
     this.chkGroup.Location = new System.Drawing.Point(200, 12);
     this.chkGroup.Name     = "chkGroup";
     this.chkGroup.Size     = new System.Drawing.Size(96, 16);
     this.chkGroup.TabIndex = 12;
     this.chkGroup.Text     = "Add Groups";
     //
     // _btnCustomers
     //
     this._btnCustomers.Location = new System.Drawing.Point(96, 8);
     this._btnCustomers.Name     = "_btnCustomers";
     this._btnCustomers.Size     = new System.Drawing.Size(80, 24);
     this._btnCustomers.TabIndex = 11;
     this._btnCustomers.Text     = "Customers";
     this._btnCustomers.Click   += new System.EventHandler(this._btnCustomers_Click);
     //
     // _btnEmployees
     //
     this._btnEmployees.Location = new System.Drawing.Point(8, 8);
     this._btnEmployees.Name     = "_btnEmployees";
     this._btnEmployees.Size     = new System.Drawing.Size(80, 24);
     this._btnEmployees.TabIndex = 9;
     this._btnEmployees.Text     = "Employees";
     this._btnEmployees.Click   += new System.EventHandler(this._btnEmployees_Click);
     //
     // _btnSave
     //
     this._btnSave.Location = new System.Drawing.Point(304, 8);
     this._btnSave.Name     = "_btnSave";
     this._btnSave.Size     = new System.Drawing.Size(80, 24);
     this._btnSave.TabIndex = 10;
     this._btnSave.Text     = "Save";
     this._btnSave.Click   += new System.EventHandler(this._btnSave_Click);
     //
     // c1r
     //
     this.c1r.ReportDefinition = resources.GetString("c1r.ReportDefinition");
     //
     // status
     //
     this.status.Location = new System.Drawing.Point(0, 398);
     this.status.Name     = "status";
     this.status.Size     = new System.Drawing.Size(505, 22);
     this.status.TabIndex = 13;
     this.status.Text     = "Ready";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(505, 420);
     this.Controls.Add(this.status);
     this.Controls.Add(this.chkGroup);
     this.Controls.Add(this._btnCustomers);
     this.Controls.Add(this._btnEmployees);
     this.Controls.Add(this._btnSave);
     this.Controls.Add(this.Panel1);
     this.Controls.Add(this.btnCustomers);
     this.Controls.Add(this.btnEmployees);
     this.Controls.Add(this.btnSave);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "C1Report: On-the-fly Reports";
     this.Panel1.ResumeLayout(false);
     this.Panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1r)).EndInit();
     this.ResumeLayout(false);
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this._c1r             = new C1.C1Report.C1Report();
     this._ppv             = new C1.Win.C1Preview.C1PreviewPane();
     this._tbPreview       = new System.Windows.Forms.ToolBar();
     this._btnRenderReport = new System.Windows.Forms.ToolBarButton();
     this._btnPrintReport  = new System.Windows.Forms.ToolBarButton();
     this._btnSep1         = new System.Windows.Forms.ToolBarButton();
     this._btnFirst        = new System.Windows.Forms.ToolBarButton();
     this._btnPrev         = new System.Windows.Forms.ToolBarButton();
     this._btnNext         = new System.Windows.Forms.ToolBarButton();
     this._btnLast         = new System.Windows.Forms.ToolBarButton();
     this._btnSep2         = new System.Windows.Forms.ToolBarButton();
     this._btnActual       = new System.Windows.Forms.ToolBarButton();
     this._previewMenu     = new System.Windows.Forms.ContextMenu();
     this._mn50            = new System.Windows.Forms.MenuItem();
     this._mn100           = new System.Windows.Forms.MenuItem();
     this._mn150           = new System.Windows.Forms.MenuItem();
     this._mn200           = new System.Windows.Forms.MenuItem();
     this._mn400           = new System.Windows.Forms.MenuItem();
     this._btnOnePage      = new System.Windows.Forms.ToolBarButton();
     this._btnTwoPages     = new System.Windows.Forms.ToolBarButton();
     this._btnSep3         = new System.Windows.Forms.ToolBarButton();
     this._imgList         = new System.Windows.Forms.ImageList(this.components);
     this._chartType       = new System.Windows.Forms.ComboBox();
     this._chart           = new C1.Win.C1Chart.C1Chart();
     ((System.ComponentModel.ISupportInitialize)(this._c1r)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._ppv)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._chart)).BeginInit();
     this.SuspendLayout();
     //
     // _c1r
     //
     this._c1r.ReportDefinition = resources.GetString("_c1r.ReportDefinition");
     this._c1r.ReportName       = "Sales by Category";
     this._c1r.PrintSection    += new C1.C1Report.ReportEventHandler(this._c1r_PrintSection);
     //
     // _ppv
     //
     this._ppv.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._ppv.Location = new System.Drawing.Point(0, 27);
     this._ppv.Name     = "_ppv";
     this._ppv.Size     = new System.Drawing.Size(542, 365);
     this._ppv.TabIndex = 2;
     //
     // _tbPreview
     //
     this._tbPreview.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this._tbPreview.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this._btnRenderReport,
         this._btnPrintReport,
         this._btnSep1,
         this._btnFirst,
         this._btnPrev,
         this._btnNext,
         this._btnLast,
         this._btnSep2,
         this._btnActual,
         this._btnOnePage,
         this._btnTwoPages,
         this._btnSep3
     });
     this._tbPreview.DropDownArrows = true;
     this._tbPreview.ImageList      = this._imgList;
     this._tbPreview.Location       = new System.Drawing.Point(0, 0);
     this._tbPreview.Name           = "_tbPreview";
     this._tbPreview.ShowToolTips   = true;
     this._tbPreview.Size           = new System.Drawing.Size(542, 27);
     this._tbPreview.TabIndex       = 11;
     this._tbPreview.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._tbPreview_ButtonClick);
     //
     // _btnRenderReport
     //
     this._btnRenderReport.ImageIndex  = 0;
     this._btnRenderReport.Name        = "_btnRenderReport";
     this._btnRenderReport.ToolTipText = "Render the Report";
     //
     // _btnPrintReport
     //
     this._btnPrintReport.ImageIndex  = 1;
     this._btnPrintReport.Name        = "_btnPrintReport";
     this._btnPrintReport.ToolTipText = "Print the Report";
     //
     // _btnSep1
     //
     this._btnSep1.Name  = "_btnSep1";
     this._btnSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // _btnFirst
     //
     this._btnFirst.ImageIndex  = 2;
     this._btnFirst.Name        = "_btnFirst";
     this._btnFirst.ToolTipText = "First page";
     //
     // _btnPrev
     //
     this._btnPrev.ImageIndex  = 3;
     this._btnPrev.Name        = "_btnPrev";
     this._btnPrev.ToolTipText = "Previous page";
     //
     // _btnNext
     //
     this._btnNext.ImageIndex  = 4;
     this._btnNext.Name        = "_btnNext";
     this._btnNext.ToolTipText = "Next page";
     //
     // _btnLast
     //
     this._btnLast.ImageIndex  = 5;
     this._btnLast.Name        = "_btnLast";
     this._btnLast.ToolTipText = "Last page";
     //
     // _btnSep2
     //
     this._btnSep2.Name  = "_btnSep2";
     this._btnSep2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // _btnActual
     //
     this._btnActual.DropDownMenu = this._previewMenu;
     this._btnActual.ImageIndex   = 6;
     this._btnActual.Name         = "_btnActual";
     this._btnActual.Style        = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
     this._btnActual.ToolTipText  = "Actual Size";
     //
     // _previewMenu
     //
     this._previewMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this._mn50,
         this._mn100,
         this._mn150,
         this._mn200,
         this._mn400
     });
     //
     // _mn50
     //
     this._mn50.Index  = 0;
     this._mn50.Text   = "50%";
     this._mn50.Click += new System.EventHandler(this._mnZoom_Click);
     //
     // _mn100
     //
     this._mn100.Index  = 1;
     this._mn100.Text   = "100%";
     this._mn100.Click += new System.EventHandler(this._mnZoom_Click);
     //
     // _mn150
     //
     this._mn150.Index  = 2;
     this._mn150.Text   = "150%";
     this._mn150.Click += new System.EventHandler(this._mnZoom_Click);
     //
     // _mn200
     //
     this._mn200.Index  = 3;
     this._mn200.Text   = "200%";
     this._mn200.Click += new System.EventHandler(this._mnZoom_Click);
     //
     // _mn400
     //
     this._mn400.Index  = 4;
     this._mn400.Text   = "400%";
     this._mn400.Click += new System.EventHandler(this._mnZoom_Click);
     //
     // _btnOnePage
     //
     this._btnOnePage.ImageIndex  = 7;
     this._btnOnePage.Name        = "_btnOnePage";
     this._btnOnePage.ToolTipText = "One page";
     //
     // _btnTwoPages
     //
     this._btnTwoPages.ImageIndex  = 8;
     this._btnTwoPages.Name        = "_btnTwoPages";
     this._btnTwoPages.ToolTipText = "Two pages";
     //
     // _btnSep3
     //
     this._btnSep3.Name  = "_btnSep3";
     this._btnSep3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // _imgList
     //
     this._imgList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_imgList.ImageStream")));
     this._imgList.TransparentColor = System.Drawing.Color.Red;
     this._imgList.Images.SetKeyName(0, "Preview.bmp");
     this._imgList.Images.SetKeyName(1, "Print.bmp");
     this._imgList.Images.SetKeyName(2, "PreviewFirst.bmp");
     this._imgList.Images.SetKeyName(3, "PreviewPrevious.bmp");
     this._imgList.Images.SetKeyName(4, "PreviewNext.bmp");
     this._imgList.Images.SetKeyName(5, "PreviewLast.bmp");
     this._imgList.Images.SetKeyName(6, "FitWidth.bmp");
     this._imgList.Images.SetKeyName(7, "FitPage.bmp");
     this._imgList.Images.SetKeyName(8, "FitTwoPages.bmp");
     //
     // _chartType
     //
     this._chartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._chartType.Items.AddRange(new object[] {
         "Bar",
         "Line",
         "Area"
     });
     this._chartType.Location              = new System.Drawing.Point(256, 2);
     this._chartType.Name                  = "_chartType";
     this._chartType.Size                  = new System.Drawing.Size(121, 21);
     this._chartType.TabIndex              = 13;
     this._chartType.SelectedIndexChanged += new System.EventHandler(this._chartType_SelectedIndexChanged);
     //
     // _chart
     //
     this._chart.BackColor = System.Drawing.Color.White;
     this._chart.Font      = new System.Drawing.Font("Tahoma", 8.25F);
     this._chart.Location  = new System.Drawing.Point(64, 40);
     this._chart.Name      = "_chart";
     this._chart.PropBag   = resources.GetString("_chart.PropBag");
     this._chart.Size      = new System.Drawing.Size(408, 312);
     this._chart.TabIndex  = 14;
     this._chart.Visible   = false;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(542, 392);
     this.Controls.Add(this._chart);
     this.Controls.Add(this._chartType);
     this.Controls.Add(this._ppv);
     this.Controls.Add(this._tbPreview);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "C1Report Sample: Report with embedded charts (C1Chart)";
     this.Load         += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this._c1r)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._ppv)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._chart)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }