Пример #1
0
 /// <summary>
 /// 清理所有正在使用的资源。
 /// </summary>
 /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     if (toolFirst != null)
     {
         toolFirst.Dispose();
         toolFirst = null;
     }
     if (toolEnd != null)
     {
         toolEnd.Dispose();
         toolEnd = null;
     }
     if (toolNext != null)
     {
         toolNext.Dispose();
         toolNext = null;
     }
     if (toolLast != null)
     {
         toolLast.Dispose();
         toolLast = null;
     }
     if (lblPageInfo != null)
     {
         lblPageInfo.Dispose();
         lblPageInfo = null;
     }
     if (txtCurrentPage != null)
     {
         txtCurrentPage.Dispose();
         txtCurrentPage = null;
     }
     if (lbDesc != null)
     {
         lbDesc.Dispose();
         lbDesc = null;
     }
     if (panel1 != null)
     {
         panel1.Dispose();
         panel1 = null;
     }
     if (tControl2 != null)
     {
         tControl2.Dispose();
         tControl2 = null;
     }
     if (components != null)
     {
         components.Dispose();
         components = null;
     }
     base.Dispose(disposing);
 }
Пример #2
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     Paway.Forms.ToolItem toolItem1 = new Paway.Forms.ToolItem();
     Paway.Forms.ToolItem toolItem2 = new Paway.Forms.ToolItem();
     Paway.Forms.ToolItem toolItem3 = new Paway.Forms.ToolItem();
     Paway.Forms.ToolItem toolItem4 = new Paway.Forms.ToolItem();
     this.lbLeft         = new System.Windows.Forms.Label();
     this.lbRight        = new System.Windows.Forms.Label();
     this.lblPageInfo    = new System.Windows.Forms.Label();
     this.lbDesc         = new System.Windows.Forms.Label();
     this.panel1         = new Paway.Forms.TControl();
     this.toolEnd        = new Paway.Forms.ToolBar();
     this.toolNext       = new Paway.Forms.ToolBar();
     this.tControl2      = new Paway.Forms.TControl();
     this.txtCurrentPage = new Paway.Forms.TNumTestBox();
     this.toolLast       = new Paway.Forms.ToolBar();
     this.toolFirst      = new Paway.Forms.ToolBar();
     this.panel1.SuspendLayout();
     this.tControl2.SuspendLayout();
     this.SuspendLayout();
     //
     // lbLeft
     //
     this.lbLeft.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(204)))), ((int)(((byte)(223)))));
     this.lbLeft.Dock      = System.Windows.Forms.DockStyle.Left;
     this.lbLeft.Location  = new System.Drawing.Point(0, 0);
     this.lbLeft.Name      = "lbLeft";
     this.lbLeft.Size      = new System.Drawing.Size(1, 30);
     this.lbLeft.TabIndex  = 102;
     //
     // lbRight
     //
     this.lbRight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(149)))), ((int)(((byte)(204)))), ((int)(((byte)(223)))));
     this.lbRight.Dock      = System.Windows.Forms.DockStyle.Right;
     this.lbRight.Location  = new System.Drawing.Point(605, 0);
     this.lbRight.Name      = "lbRight";
     this.lbRight.Size      = new System.Drawing.Size(1, 30);
     this.lbRight.TabIndex  = 104;
     //
     // lblPageInfo
     //
     this.lblPageInfo.Dock      = System.Windows.Forms.DockStyle.Right;
     this.lblPageInfo.Font      = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lblPageInfo.ForeColor = System.Drawing.Color.Black;
     this.lblPageInfo.Location  = new System.Drawing.Point(264, 0);
     this.lblPageInfo.Name      = "lblPageInfo";
     this.lblPageInfo.Padding   = new System.Windows.Forms.Padding(5, 8, 20, 0);
     this.lblPageInfo.Size      = new System.Drawing.Size(341, 30);
     this.lblPageInfo.TabIndex  = 105;
     this.lblPageInfo.Text      = "共 {0:#,0} 条记录,每页 {1:#,0} 条,共 {2:#,0} 页";
     this.lblPageInfo.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // lbDesc
     //
     this.lbDesc.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lbDesc.Font      = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.lbDesc.ForeColor = System.Drawing.Color.Black;
     this.lbDesc.Location  = new System.Drawing.Point(184, 0);
     this.lbDesc.Name      = "lbDesc";
     this.lbDesc.Padding   = new System.Windows.Forms.Padding(20, 8, 0, 0);
     this.lbDesc.Size      = new System.Drawing.Size(80, 30);
     this.lbDesc.TabIndex  = 108;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.toolEnd);
     this.panel1.Controls.Add(this.toolNext);
     this.panel1.Controls.Add(this.tControl2);
     this.panel1.Controls.Add(this.toolLast);
     this.panel1.Controls.Add(this.toolFirst);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Font     = new System.Drawing.Font("微软雅黑", 11F);
     this.panel1.Location = new System.Drawing.Point(1, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Padding  = new System.Windows.Forms.Padding(20, 0, 0, 0);
     this.panel1.Size     = new System.Drawing.Size(183, 30);
     this.panel1.TabIndex = 107;
     //
     // toolEnd
     //
     this.toolEnd.Dock        = System.Windows.Forms.DockStyle.Left;
     this.toolEnd.Font        = new System.Drawing.Font("微软雅黑", 11F);
     this.toolEnd.IClickEvent = true;
     toolItem1.Hit            = "End";
     toolItem1.Text           = ">|";
     this.toolEnd.Items.Add(toolItem1);
     this.toolEnd.ItemSize                   = new System.Drawing.Size(30, 24);
     this.toolEnd.ItemSpace                  = 5;
     this.toolEnd.Location                   = new System.Drawing.Point(153, 0);
     this.toolEnd.Name                       = "toolEnd";
     this.toolEnd.Padding                    = new System.Windows.Forms.Padding(0, 2, 0, 0);
     this.toolEnd.Size                       = new System.Drawing.Size(30, 30);
     this.toolEnd.TabIndex                   = 27;
     this.toolEnd.TBackGround.ColorDown      = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(94)))), ((int)(((byte)(167)))));
     this.toolEnd.TBackGround.ColorMove      = System.Drawing.Color.FromArgb(((int)(((byte)(108)))), ((int)(((byte)(171)))), ((int)(((byte)(244)))));
     this.toolEnd.TBackGround.ColorNormal    = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
     this.toolEnd.TextFirst.ColorDown        = System.Drawing.Color.White;
     this.toolEnd.TextFirst.ColorMove        = System.Drawing.Color.White;
     this.toolEnd.TextFirst.ColorNormal      = System.Drawing.Color.Black;
     this.toolEnd.TextFirst.FontDown         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolEnd.TextFirst.FontMove         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolEnd.TextFirst.FontNormal       = new System.Drawing.Font("微软雅黑", 10F);
     this.toolEnd.TextFirst.StringHorizontal = System.Drawing.StringAlignment.Center;
     this.toolEnd.Trans                      = 150;
     //
     // toolNext
     //
     this.toolNext.Dock        = System.Windows.Forms.DockStyle.Left;
     this.toolNext.Font        = new System.Drawing.Font("微软雅黑", 11F);
     this.toolNext.IClickEvent = true;
     toolItem2.Hit             = "Next";
     toolItem2.Text            = ">";
     this.toolNext.Items.Add(toolItem2);
     this.toolNext.ItemSize                   = new System.Drawing.Size(30, 24);
     this.toolNext.ItemSpace                  = 5;
     this.toolNext.Location                   = new System.Drawing.Point(123, 0);
     this.toolNext.Name                       = "toolNext";
     this.toolNext.Padding                    = new System.Windows.Forms.Padding(0, 2, 0, 0);
     this.toolNext.Size                       = new System.Drawing.Size(30, 30);
     this.toolNext.TabIndex                   = 26;
     this.toolNext.TBackGround.ColorDown      = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(94)))), ((int)(((byte)(167)))));
     this.toolNext.TBackGround.ColorMove      = System.Drawing.Color.FromArgb(((int)(((byte)(108)))), ((int)(((byte)(171)))), ((int)(((byte)(244)))));
     this.toolNext.TBackGround.ColorNormal    = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
     this.toolNext.TextFirst.ColorDown        = System.Drawing.Color.White;
     this.toolNext.TextFirst.ColorMove        = System.Drawing.Color.White;
     this.toolNext.TextFirst.ColorNormal      = System.Drawing.Color.Black;
     this.toolNext.TextFirst.FontDown         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolNext.TextFirst.FontMove         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolNext.TextFirst.FontNormal       = new System.Drawing.Font("微软雅黑", 10F);
     this.toolNext.TextFirst.StringHorizontal = System.Drawing.StringAlignment.Center;
     this.toolNext.Trans                      = 150;
     //
     // tControl2
     //
     this.tControl2.Controls.Add(this.txtCurrentPage);
     this.tControl2.Dock     = System.Windows.Forms.DockStyle.Left;
     this.tControl2.Font     = new System.Drawing.Font("微软雅黑", 11F);
     this.tControl2.Location = new System.Drawing.Point(80, 0);
     this.tControl2.Name     = "tControl2";
     this.tControl2.Padding  = new System.Windows.Forms.Padding(0, 2, 0, 0);
     this.tControl2.Size     = new System.Drawing.Size(43, 30);
     this.tControl2.TabIndex = 22;
     //
     // txtCurrentPage
     //
     this.txtCurrentPage.Dock   = System.Windows.Forms.DockStyle.Fill;
     this.txtCurrentPage.Font   = new System.Drawing.Font("微软雅黑", 10F);
     this.txtCurrentPage.ITrans = true;
     this.txtCurrentPage.Lines  = new string[] {
         "0"
     };
     this.txtCurrentPage.Location  = new System.Drawing.Point(0, 2);
     this.txtCurrentPage.MaxLength = 10;
     this.txtCurrentPage.Name      = "txtCurrentPage";
     this.txtCurrentPage.Size      = new System.Drawing.Size(43, 28);
     this.txtCurrentPage.TabIndex  = 27;
     this.txtCurrentPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // toolLast
     //
     this.toolLast.Dock        = System.Windows.Forms.DockStyle.Left;
     this.toolLast.Font        = new System.Drawing.Font("微软雅黑", 11F);
     this.toolLast.IClickEvent = true;
     toolItem3.Hit             = "Last";
     toolItem3.Text            = "<";
     this.toolLast.Items.Add(toolItem3);
     this.toolLast.ItemSize                   = new System.Drawing.Size(30, 24);
     this.toolLast.ItemSpace                  = 5;
     this.toolLast.Location                   = new System.Drawing.Point(50, 0);
     this.toolLast.Name                       = "toolLast";
     this.toolLast.Padding                    = new System.Windows.Forms.Padding(0, 2, 0, 0);
     this.toolLast.Size                       = new System.Drawing.Size(30, 30);
     this.toolLast.TabIndex                   = 21;
     this.toolLast.TBackGround.ColorDown      = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(94)))), ((int)(((byte)(167)))));
     this.toolLast.TBackGround.ColorMove      = System.Drawing.Color.FromArgb(((int)(((byte)(108)))), ((int)(((byte)(171)))), ((int)(((byte)(244)))));
     this.toolLast.TBackGround.ColorNormal    = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
     this.toolLast.TextFirst.ColorDown        = System.Drawing.Color.White;
     this.toolLast.TextFirst.ColorMove        = System.Drawing.Color.White;
     this.toolLast.TextFirst.ColorNormal      = System.Drawing.Color.Black;
     this.toolLast.TextFirst.FontDown         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolLast.TextFirst.FontMove         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolLast.TextFirst.FontNormal       = new System.Drawing.Font("微软雅黑", 10F);
     this.toolLast.TextFirst.StringHorizontal = System.Drawing.StringAlignment.Center;
     this.toolLast.Trans                      = 150;
     //
     // toolFirst
     //
     this.toolFirst.Dock        = System.Windows.Forms.DockStyle.Left;
     this.toolFirst.Font        = new System.Drawing.Font("微软雅黑", 11F);
     this.toolFirst.IClickEvent = true;
     toolItem4.Hit  = "First";
     toolItem4.Text = "|<";
     this.toolFirst.Items.Add(toolItem4);
     this.toolFirst.ItemSize = new System.Drawing.Size(30, 24);
     this.toolFirst.Location = new System.Drawing.Point(20, 0);
     this.toolFirst.Name     = "toolFirst";
     this.toolFirst.Padding  = new System.Windows.Forms.Padding(0, 2, 0, 0);
     this.toolFirst.Size     = new System.Drawing.Size(30, 30);
     this.toolFirst.TabIndex = 16;
     this.toolFirst.TBackGround.ColorDown      = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(94)))), ((int)(((byte)(167)))));
     this.toolFirst.TBackGround.ColorMove      = System.Drawing.Color.FromArgb(((int)(((byte)(108)))), ((int)(((byte)(171)))), ((int)(((byte)(244)))));
     this.toolFirst.TBackGround.ColorNormal    = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
     this.toolFirst.TextFirst.ColorDown        = System.Drawing.Color.White;
     this.toolFirst.TextFirst.ColorMove        = System.Drawing.Color.White;
     this.toolFirst.TextFirst.ColorNormal      = System.Drawing.Color.Black;
     this.toolFirst.TextFirst.FontDown         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolFirst.TextFirst.FontMove         = new System.Drawing.Font("微软雅黑", 10F);
     this.toolFirst.TextFirst.FontNormal       = new System.Drawing.Font("微软雅黑", 10F);
     this.toolFirst.TextFirst.StringHorizontal = System.Drawing.StringAlignment.Center;
     this.toolFirst.Trans = 150;
     //
     // TPager
     //
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
     this.Controls.Add(this.lbDesc);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.lbLeft);
     this.Controls.Add(this.lblPageInfo);
     this.Controls.Add(this.lbRight);
     this.Cursor = System.Windows.Forms.Cursors.Hand;
     this.Name   = "TPager";
     this.Size   = new System.Drawing.Size(606, 30);
     this.panel1.ResumeLayout(false);
     this.tControl2.ResumeLayout(false);
     this.ResumeLayout(false);
 }