From e71a7e09554fd6f46d170c6c5426e39f01ea5a48 Mon Sep 17 00:00:00 2001
From: lg <999544862qq.com>
Date: 星期四, 29 八月 2024 16:35:20 +0800
Subject: [PATCH] 分页
---
DevApp/Gs.DevApp/UserControl/PageBar.Designer.cs | 633 +++++++++++++++++++++++++++++++++++++++
DevApp/Gs.DevApp/UserControl/PageBar.cs | 177 +++++++++++
DevApp/Gs.DevApp/UserControl/PageBar.resx | 120 +++++++
3 files changed, 930 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/PageBar.Designer.cs b/DevApp/Gs.DevApp/UserControl/PageBar.Designer.cs
new file mode 100644
index 0000000..c17a5f4
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/PageBar.Designer.cs
@@ -0,0 +1,633 @@
+锘縩amespace UserControls.Data
+{
+ partial class PageBar
+ {
+ /// <summary>
+ /// 蹇呴渶鐨勮璁″櫒鍙橀噺銆�
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// 娓呯悊鎵�鏈夋鍦ㄤ娇鐢ㄧ殑璧勬簮銆�
+ /// </summary>
+ /// <param name="disposing">濡傛灉搴旈噴鏀炬墭绠¤祫婧愶紝涓� true锛涘惁鍒欎负 false銆�</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 缁勪欢璁捐鍣ㄧ敓鎴愮殑浠g爜
+
+ /// <summary>
+ /// 璁捐鍣ㄦ敮鎸佹墍闇�鐨勬柟娉� - 涓嶈淇敼
+ /// 浣跨敤浠g爜缂栬緫鍣ㄤ慨鏀规鏂规硶鐨勫唴瀹广��
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
+ this.lbTotalRows = new DevExpress.XtraEditors.LabelControl();
+ this.lbEnd = new DevExpress.XtraEditors.LabelControl();
+ this.labelControl9 = new DevExpress.XtraEditors.LabelControl();
+ this.lbNextPage = new DevExpress.XtraEditors.LabelControl();
+ this.labelControl6 = new DevExpress.XtraEditors.LabelControl();
+ this.lbPrePage = new DevExpress.XtraEditors.LabelControl();
+ this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
+ this.lbFirstPage = new DevExpress.XtraEditors.LabelControl();
+ this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
+ this.cbxRowCount = new DevExpress.XtraEditors.ComboBoxEdit();
+ this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
+ this.tbxCurrentPage = new DevExpress.XtraEditors.TextEdit();
+ this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
+ this.lbTotalPages = new DevExpress.XtraEditors.LabelControl();
+ this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
+ this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
+ this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
+ this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
+ this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
+ this.layoutControl1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.cbxRowCount.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tbxCurrentPage.Properties)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // layoutControl1
+ //
+ this.layoutControl1.Controls.Add(this.lbTotalRows);
+ this.layoutControl1.Controls.Add(this.lbEnd);
+ this.layoutControl1.Controls.Add(this.labelControl9);
+ this.layoutControl1.Controls.Add(this.lbNextPage);
+ this.layoutControl1.Controls.Add(this.labelControl6);
+ this.layoutControl1.Controls.Add(this.lbPrePage);
+ this.layoutControl1.Controls.Add(this.labelControl4);
+ this.layoutControl1.Controls.Add(this.lbFirstPage);
+ this.layoutControl1.Controls.Add(this.labelControl2);
+ this.layoutControl1.Controls.Add(this.cbxRowCount);
+ this.layoutControl1.Controls.Add(this.labelControl1);
+ this.layoutControl1.Controls.Add(this.tbxCurrentPage);
+ this.layoutControl1.Controls.Add(this.labelControl3);
+ this.layoutControl1.Controls.Add(this.lbTotalPages);
+ this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.layoutControl1.Location = new System.Drawing.Point(0, 0);
+ this.layoutControl1.Name = "layoutControl1";
+ this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(271, 457, 562, 500);
+ this.layoutControl1.Root = this.layoutControlGroup1;
+ this.layoutControl1.Size = new System.Drawing.Size(954, 40);
+ this.layoutControl1.TabIndex = 7;
+ this.layoutControl1.Text = "layoutControl1";
+ //
+ // lbTotalRows
+ //
+ this.lbTotalRows.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.lbTotalRows.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbTotalRows.Appearance.Options.UseFont = true;
+ this.lbTotalRows.Location = new System.Drawing.Point(586, 2);
+ this.lbTotalRows.Name = "lbTotalRows";
+ this.lbTotalRows.Size = new System.Drawing.Size(96, 28);
+ this.lbTotalRows.StyleController = this.layoutControl1;
+ this.lbTotalRows.TabIndex = 15;
+ this.lbTotalRows.Text = "鍏� 鏉¤褰�";
+ //
+ // lbEnd
+ //
+ this.lbEnd.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.lbEnd.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbEnd.Appearance.Options.UseFont = true;
+ this.lbEnd.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lbEnd.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.RightCenter;
+ this.lbEnd.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.last_16x16;
+ this.lbEnd.Location = new System.Drawing.Point(267, 2);
+ this.lbEnd.Name = "lbEnd";
+ this.lbEnd.Size = new System.Drawing.Size(56, 28);
+ this.lbEnd.StyleController = this.layoutControl1;
+ this.lbEnd.TabIndex = 14;
+ this.lbEnd.Tag = "last";
+ this.lbEnd.Text = "鏈〉";
+ this.lbEnd.Click += new System.EventHandler(this.lbEnd_Click);
+ //
+ // labelControl9
+ //
+ this.labelControl9.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.labelControl9.Location = new System.Drawing.Point(252, 2);
+ this.labelControl9.Name = "labelControl9";
+ this.labelControl9.Size = new System.Drawing.Size(11, 28);
+ this.labelControl9.StyleController = this.layoutControl1;
+ this.labelControl9.TabIndex = 13;
+ this.labelControl9.Text = "|";
+ //
+ // lbNextPage
+ //
+ this.lbNextPage.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.lbNextPage.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbNextPage.Appearance.Options.UseFont = true;
+ this.lbNextPage.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lbNextPage.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.RightCenter;
+ this.lbNextPage.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.doublenext_16x16;
+ this.lbNextPage.Location = new System.Drawing.Point(172, 2);
+ this.lbNextPage.MaximumSize = new System.Drawing.Size(80, 0);
+ this.lbNextPage.Name = "lbNextPage";
+ this.lbNextPage.Size = new System.Drawing.Size(76, 28);
+ this.lbNextPage.StyleController = this.layoutControl1;
+ this.lbNextPage.TabIndex = 12;
+ this.lbNextPage.Tag = "next";
+ this.lbNextPage.Text = "涓嬩竴椤�";
+ this.lbNextPage.Click += new System.EventHandler(this.lbNextPage_Click);
+ //
+ // labelControl6
+ //
+ this.labelControl6.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.labelControl6.Location = new System.Drawing.Point(157, 2);
+ this.labelControl6.Name = "labelControl6";
+ this.labelControl6.Size = new System.Drawing.Size(11, 28);
+ this.labelControl6.StyleController = this.layoutControl1;
+ this.labelControl6.TabIndex = 10;
+ this.labelControl6.Text = "|";
+ //
+ // lbPrePage
+ //
+ this.lbPrePage.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.lbPrePage.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbPrePage.Appearance.Options.UseFont = true;
+ this.lbPrePage.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
+ this.lbPrePage.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lbPrePage.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
+ this.lbPrePage.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.doubleprev_16x16;
+ this.lbPrePage.Location = new System.Drawing.Point(77, 2);
+ this.lbPrePage.Name = "lbPrePage";
+ this.lbPrePage.Size = new System.Drawing.Size(76, 28);
+ this.lbPrePage.StyleController = this.layoutControl1;
+ this.lbPrePage.TabIndex = 9;
+ this.lbPrePage.Tag = "prv";
+ this.lbPrePage.Text = "涓婁竴椤�";
+ this.lbPrePage.Click += new System.EventHandler(this.lbPrePage_Click);
+ //
+ // labelControl4
+ //
+ this.labelControl4.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.labelControl4.Location = new System.Drawing.Point(62, 2);
+ this.labelControl4.Name = "labelControl4";
+ this.labelControl4.Size = new System.Drawing.Size(11, 28);
+ this.labelControl4.StyleController = this.layoutControl1;
+ this.labelControl4.TabIndex = 8;
+ this.labelControl4.Text = "|";
+ //
+ // lbFirstPage
+ //
+ this.lbFirstPage.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.lbFirstPage.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbFirstPage.Appearance.Options.UseFont = true;
+ this.lbFirstPage.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.lbFirstPage.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
+ this.lbFirstPage.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.first_16x16;
+ this.lbFirstPage.Location = new System.Drawing.Point(2, 2);
+ this.lbFirstPage.Name = "lbFirstPage";
+ this.lbFirstPage.Size = new System.Drawing.Size(56, 28);
+ this.lbFirstPage.StyleController = this.layoutControl1;
+ this.lbFirstPage.TabIndex = 7;
+ this.lbFirstPage.Tag = "first";
+ this.lbFirstPage.Text = "棣栭〉";
+ this.lbFirstPage.Click += new System.EventHandler(this.lbFirstPage_Click);
+ //
+ // labelControl2
+ //
+ this.labelControl2.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.labelControl2.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.labelControl2.Appearance.Options.UseFont = true;
+ this.labelControl2.Location = new System.Drawing.Point(716, 2);
+ this.labelControl2.Name = "labelControl2";
+ this.labelControl2.Size = new System.Drawing.Size(77, 26);
+ this.labelControl2.StyleController = this.layoutControl1;
+ this.labelControl2.TabIndex = 4;
+ this.labelControl2.Text = "姣忛〉鏄剧ず锛�";
+ //
+ // cbxRowCount
+ //
+ this.cbxRowCount.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.cbxRowCount.EditValue = "20";
+ this.cbxRowCount.Location = new System.Drawing.Point(797, 2);
+ this.cbxRowCount.Margin = new System.Windows.Forms.Padding(3, 6, 3, 0);
+ this.cbxRowCount.Name = "cbxRowCount";
+ this.cbxRowCount.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.cbxRowCount.Properties.Appearance.Options.UseFont = true;
+ this.cbxRowCount.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+ this.cbxRowCount.Properties.Items.AddRange(new object[] {
+ "10",
+ "20",
+ "50",
+ "100",
+ "200"});
+ this.cbxRowCount.Size = new System.Drawing.Size(62, 28);
+ this.cbxRowCount.StyleController = this.layoutControl1;
+ this.cbxRowCount.TabIndex = 5;
+ this.cbxRowCount.Tag = "rowcount";
+ this.cbxRowCount.SelectedIndexChanged += new System.EventHandler(this.cbxRowCount_SelectedIndexChanged);
+ //
+ // labelControl1
+ //
+ this.labelControl1.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.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.labelControl1.Appearance.Options.UseFont = true;
+ this.labelControl1.Location = new System.Drawing.Point(357, 2);
+ this.labelControl1.Name = "labelControl1";
+ this.labelControl1.Size = new System.Drawing.Size(62, 26);
+ this.labelControl1.StyleController = this.layoutControl1;
+ this.labelControl1.TabIndex = 1;
+ this.labelControl1.Text = "褰撳墠椤碉細";
+ //
+ // tbxCurrentPage
+ //
+ this.tbxCurrentPage.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.tbxCurrentPage.Location = new System.Drawing.Point(423, 2);
+ this.tbxCurrentPage.Margin = new System.Windows.Forms.Padding(3, 6, 3, 0);
+ this.tbxCurrentPage.Name = "tbxCurrentPage";
+ this.tbxCurrentPage.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.tbxCurrentPage.Properties.Appearance.Options.UseFont = true;
+ this.tbxCurrentPage.Size = new System.Drawing.Size(66, 28);
+ this.tbxCurrentPage.StyleController = this.layoutControl1;
+ this.tbxCurrentPage.TabIndex = 2;
+ this.tbxCurrentPage.Tag = "current";
+ this.tbxCurrentPage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbxCurrentPage_KeyDown);
+ //
+ // labelControl3
+ //
+ this.labelControl3.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.labelControl3.Location = new System.Drawing.Point(493, 2);
+ this.labelControl3.Name = "labelControl3";
+ this.labelControl3.Size = new System.Drawing.Size(8, 26);
+ this.labelControl3.StyleController = this.layoutControl1;
+ this.labelControl3.TabIndex = 6;
+ this.labelControl3.Text = "/";
+ //
+ // lbTotalPages
+ //
+ this.lbTotalPages.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.lbTotalPages.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
+ this.lbTotalPages.Appearance.Options.UseFont = true;
+ this.lbTotalPages.Location = new System.Drawing.Point(505, 2);
+ this.lbTotalPages.Name = "lbTotalPages";
+ this.lbTotalPages.Size = new System.Drawing.Size(47, 26);
+ this.lbTotalPages.StyleController = this.layoutControl1;
+ this.lbTotalPages.TabIndex = 3;
+ this.lbTotalPages.Text = "鎬婚〉鏁�";
+ //
+ // layoutControlGroup1
+ //
+ this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
+ this.layoutControlGroup1.GroupBordersVisible = false;
+ this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
+ this.layoutControlItem8,
+ this.layoutControlItem9,
+ this.layoutControlItem10,
+ this.layoutControlItem11,
+ this.layoutControlItem5,
+ this.layoutControlItem4,
+ this.layoutControlItem13,
+ this.layoutControlItem14,
+ this.layoutControlItem15,
+ this.emptySpaceItem3,
+ this.emptySpaceItem4,
+ this.layoutControlItem7,
+ this.layoutControlItem6,
+ this.layoutControlItem3,
+ this.layoutControlItem2,
+ this.layoutControlItem12,
+ this.emptySpaceItem1});
+ this.layoutControlGroup1.Name = "Root";
+ this.layoutControlGroup1.OptionsItemText.TextToControlDistance = 4;
+ this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
+ this.layoutControlGroup1.Size = new System.Drawing.Size(954, 40);
+ this.layoutControlGroup1.TextVisible = false;
+ //
+ // layoutControlItem8
+ //
+ this.layoutControlItem8.Control = this.lbFirstPage;
+ this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
+ this.layoutControlItem8.MaxSize = new System.Drawing.Size(60, 32);
+ this.layoutControlItem8.MinSize = new System.Drawing.Size(36, 32);
+ this.layoutControlItem8.Name = "layoutControlItem8";
+ this.layoutControlItem8.Size = new System.Drawing.Size(60, 40);
+ this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem8.TextVisible = false;
+ //
+ // layoutControlItem9
+ //
+ this.layoutControlItem9.Control = this.labelControl4;
+ this.layoutControlItem9.Location = new System.Drawing.Point(60, 0);
+ this.layoutControlItem9.MaxSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem9.MinSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem9.Name = "layoutControlItem9";
+ this.layoutControlItem9.Size = new System.Drawing.Size(15, 40);
+ this.layoutControlItem9.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem9.TextVisible = false;
+ //
+ // layoutControlItem10
+ //
+ this.layoutControlItem10.Control = this.lbPrePage;
+ this.layoutControlItem10.Location = new System.Drawing.Point(75, 0);
+ this.layoutControlItem10.MaxSize = new System.Drawing.Size(80, 32);
+ this.layoutControlItem10.MinSize = new System.Drawing.Size(55, 32);
+ this.layoutControlItem10.Name = "layoutControlItem10";
+ this.layoutControlItem10.Size = new System.Drawing.Size(80, 40);
+ this.layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem10.TextVisible = false;
+ //
+ // layoutControlItem11
+ //
+ this.layoutControlItem11.Control = this.labelControl6;
+ this.layoutControlItem11.Location = new System.Drawing.Point(155, 0);
+ this.layoutControlItem11.MaxSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem11.MinSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem11.Name = "layoutControlItem11";
+ this.layoutControlItem11.Size = new System.Drawing.Size(15, 40);
+ this.layoutControlItem11.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem11.TextVisible = false;
+ //
+ // layoutControlItem5
+ //
+ this.layoutControlItem5.Control = this.labelControl1;
+ this.layoutControlItem5.Location = new System.Drawing.Point(355, 0);
+ this.layoutControlItem5.MaxSize = new System.Drawing.Size(66, 30);
+ this.layoutControlItem5.MinSize = new System.Drawing.Size(66, 30);
+ this.layoutControlItem5.Name = "layoutControlItem5";
+ this.layoutControlItem5.Size = new System.Drawing.Size(66, 40);
+ this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem5.TextVisible = false;
+ //
+ // layoutControlItem4
+ //
+ this.layoutControlItem4.Control = this.tbxCurrentPage;
+ this.layoutControlItem4.Location = new System.Drawing.Point(421, 0);
+ this.layoutControlItem4.MaxSize = new System.Drawing.Size(70, 32);
+ this.layoutControlItem4.MinSize = new System.Drawing.Size(70, 32);
+ this.layoutControlItem4.Name = "layoutControlItem4";
+ this.layoutControlItem4.Size = new System.Drawing.Size(70, 40);
+ this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem4.TextVisible = false;
+ //
+ // layoutControlItem13
+ //
+ this.layoutControlItem13.Control = this.lbNextPage;
+ this.layoutControlItem13.Location = new System.Drawing.Point(170, 0);
+ this.layoutControlItem13.MaxSize = new System.Drawing.Size(80, 32);
+ this.layoutControlItem13.MinSize = new System.Drawing.Size(55, 32);
+ this.layoutControlItem13.Name = "layoutControlItem13";
+ this.layoutControlItem13.Size = new System.Drawing.Size(80, 40);
+ this.layoutControlItem13.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem13.TextVisible = false;
+ //
+ // layoutControlItem14
+ //
+ this.layoutControlItem14.Control = this.labelControl9;
+ this.layoutControlItem14.Location = new System.Drawing.Point(250, 0);
+ this.layoutControlItem14.MaxSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem14.MinSize = new System.Drawing.Size(15, 32);
+ this.layoutControlItem14.Name = "layoutControlItem14";
+ this.layoutControlItem14.Size = new System.Drawing.Size(15, 40);
+ this.layoutControlItem14.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem14.TextVisible = false;
+ //
+ // layoutControlItem15
+ //
+ this.layoutControlItem15.Control = this.lbEnd;
+ this.layoutControlItem15.Location = new System.Drawing.Point(265, 0);
+ this.layoutControlItem15.MaxSize = new System.Drawing.Size(60, 32);
+ this.layoutControlItem15.MinSize = new System.Drawing.Size(36, 32);
+ this.layoutControlItem15.Name = "layoutControlItem15";
+ this.layoutControlItem15.Size = new System.Drawing.Size(60, 40);
+ this.layoutControlItem15.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem15.TextVisible = false;
+ //
+ // emptySpaceItem3
+ //
+ this.emptySpaceItem3.AllowHotTrack = false;
+ this.emptySpaceItem3.Location = new System.Drawing.Point(325, 0);
+ this.emptySpaceItem3.MaxSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem3.MinSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem3.Name = "emptySpaceItem3";
+ this.emptySpaceItem3.Size = new System.Drawing.Size(30, 40);
+ this.emptySpaceItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
+ //
+ // emptySpaceItem4
+ //
+ this.emptySpaceItem4.AllowHotTrack = false;
+ this.emptySpaceItem4.Location = new System.Drawing.Point(684, 0);
+ this.emptySpaceItem4.MaxSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem4.MinSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem4.Name = "emptySpaceItem4";
+ this.emptySpaceItem4.Size = new System.Drawing.Size(30, 40);
+ this.emptySpaceItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
+ //
+ // layoutControlItem7
+ //
+ this.layoutControlItem7.Control = this.labelControl2;
+ this.layoutControlItem7.Location = new System.Drawing.Point(714, 0);
+ this.layoutControlItem7.MaxSize = new System.Drawing.Size(81, 30);
+ this.layoutControlItem7.MinSize = new System.Drawing.Size(81, 30);
+ this.layoutControlItem7.Name = "layoutControlItem7";
+ this.layoutControlItem7.Size = new System.Drawing.Size(81, 40);
+ this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem7.TextVisible = false;
+ //
+ // layoutControlItem6
+ //
+ this.layoutControlItem6.Control = this.cbxRowCount;
+ this.layoutControlItem6.Location = new System.Drawing.Point(795, 0);
+ this.layoutControlItem6.MaxSize = new System.Drawing.Size(66, 32);
+ this.layoutControlItem6.MinSize = new System.Drawing.Size(66, 32);
+ this.layoutControlItem6.Name = "layoutControlItem6";
+ this.layoutControlItem6.Size = new System.Drawing.Size(159, 40);
+ this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem6.TextVisible = false;
+ //
+ // layoutControlItem3
+ //
+ this.layoutControlItem3.Control = this.labelControl3;
+ this.layoutControlItem3.Location = new System.Drawing.Point(491, 0);
+ this.layoutControlItem3.MaxSize = new System.Drawing.Size(12, 30);
+ this.layoutControlItem3.MinSize = new System.Drawing.Size(12, 30);
+ this.layoutControlItem3.Name = "layoutControlItem3";
+ this.layoutControlItem3.Size = new System.Drawing.Size(12, 40);
+ this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem3.TextVisible = false;
+ //
+ // layoutControlItem2
+ //
+ this.layoutControlItem2.Control = this.lbTotalPages;
+ this.layoutControlItem2.Location = new System.Drawing.Point(503, 0);
+ this.layoutControlItem2.MaxSize = new System.Drawing.Size(51, 30);
+ this.layoutControlItem2.MinSize = new System.Drawing.Size(51, 30);
+ this.layoutControlItem2.Name = "layoutControlItem2";
+ this.layoutControlItem2.Size = new System.Drawing.Size(51, 40);
+ this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem2.TextVisible = false;
+ //
+ // layoutControlItem12
+ //
+ this.layoutControlItem12.Control = this.lbTotalRows;
+ this.layoutControlItem12.Location = new System.Drawing.Point(584, 0);
+ this.layoutControlItem12.MaxSize = new System.Drawing.Size(100, 32);
+ this.layoutControlItem12.MinSize = new System.Drawing.Size(100, 32);
+ this.layoutControlItem12.Name = "layoutControlItem12";
+ this.layoutControlItem12.Size = new System.Drawing.Size(100, 40);
+ this.layoutControlItem12.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
+ this.layoutControlItem12.TextVisible = false;
+ //
+ // emptySpaceItem1
+ //
+ this.emptySpaceItem1.AllowHotTrack = false;
+ this.emptySpaceItem1.Location = new System.Drawing.Point(554, 0);
+ this.emptySpaceItem1.MaxSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem1.MinSize = new System.Drawing.Size(30, 32);
+ this.emptySpaceItem1.Name = "emptySpaceItem1";
+ this.emptySpaceItem1.Size = new System.Drawing.Size(30, 40);
+ this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
+ this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
+ //
+ // PageBar
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.layoutControl1);
+ this.Name = "PageBar";
+ this.Size = new System.Drawing.Size(954, 40);
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
+ this.layoutControl1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.cbxRowCount.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tbxCurrentPage.Properties)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private DevExpress.XtraEditors.LabelControl labelControl1;
+ private DevExpress.XtraEditors.TextEdit tbxCurrentPage;
+ private DevExpress.XtraEditors.LabelControl lbTotalPages;
+ private DevExpress.XtraEditors.LabelControl labelControl2;
+ private DevExpress.XtraEditors.ComboBoxEdit cbxRowCount;
+ private DevExpress.XtraEditors.LabelControl labelControl3;
+ private DevExpress.XtraLayout.LayoutControl layoutControl1;
+ private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
+ private DevExpress.XtraEditors.LabelControl lbFirstPage;
+ private DevExpress.XtraEditors.LabelControl labelControl6;
+ private DevExpress.XtraEditors.LabelControl lbPrePage;
+ private DevExpress.XtraEditors.LabelControl labelControl4;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
+ private DevExpress.XtraEditors.LabelControl lbNextPage;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
+ private DevExpress.XtraEditors.LabelControl labelControl9;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
+ private DevExpress.XtraEditors.LabelControl lbEnd;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
+ private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3;
+ private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
+ private DevExpress.XtraEditors.LabelControl lbTotalRows;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
+ private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
+ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
+ }
+}
diff --git a/DevApp/Gs.DevApp/UserControl/PageBar.cs b/DevApp/Gs.DevApp/UserControl/PageBar.cs
new file mode 100644
index 0000000..c0e6f37
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/PageBar.cs
@@ -0,0 +1,177 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using DevExpress.XtraEditors;
+using DevExpress.XtraGrid;
+using Gs.DevApp.ToolBox;
+
+namespace UserControls.Data
+{
+ public partial class PageBar : UserControl
+ {
+ public delegate void GetPageDataEvents(int curPage, int pageSize);//瀹氫箟濮旀墭
+ public event GetPageDataEvents williamPagerEvent;//瀹氫箟浜嬩欢
+
+ public PageBar()
+ {
+ InitializeComponent();
+ // UtilityHelper.SetFont(layoutControl1);
+ }
+
+ #region 瀹氫箟灞炴��
+
+
+ int _TotalPages;
+ /// <summary>
+ /// 鎬婚〉鏁�
+ /// </summary>
+ public int TotalPages
+ {
+ get { return _TotalPages; }
+ set
+ {
+ _TotalPages = value;
+ }
+ }
+
+ /// <summary>
+ /// 褰撳墠椤�
+ /// </summary>
+ public int CurrentPage
+ {
+ get; set;
+ }
+
+ /// <summary>
+ /// 姣忛〉鏉℃暟
+ /// </summary>
+ public int RowsCount
+ {
+ get; set;
+ }
+
+ /// <summary>
+ /// 鎬昏褰曟暟
+ /// </summary>
+ public int RecordCount
+ {
+ get; set;
+ }
+ #endregion
+
+ //閫夋嫨姣忛〉鏄剧ず鏉℃暟
+ private void cbxRowCount_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ RowsCount = Convert.ToInt32(cbxRowCount.Text);
+ CurrentPage = 1;
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+
+ //鎵嬪姩杈撳叆鏄剧ず椤甸潰缂栧彿
+ private void tbxCurrentPage_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter)
+ {
+ int page = Convert.ToInt32(tbxCurrentPage.Text);
+ if (page < 1)
+ {
+ CurrentPage = 1;
+ }
+ else if (page > TotalPages)
+ {
+ CurrentPage = TotalPages;
+ }
+ else
+ {
+ CurrentPage = page;
+ }
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+ }
+
+
+ //鐐瑰嚮棣栭〉鎸夐挳
+ private void lbFirstPage_Click(object sender, EventArgs e)
+ {
+ if (CurrentPage == 1)
+ return;
+ CurrentPage = 1;
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+
+ //鐐瑰嚮涓婁竴椤垫寜閽�
+ private void lbPrePage_Click(object sender, EventArgs e)
+ {
+ if (CurrentPage == 1)
+ return;
+ if (CurrentPage <= TotalPages)
+ {
+ CurrentPage -= 1;
+ }
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+
+ //鐐瑰嚮涓嬩竴椤垫寜閽�
+ private void lbNextPage_Click(object sender, EventArgs e)
+ {
+ if (CurrentPage == TotalPages)
+ return;
+ if (CurrentPage < TotalPages)
+ {
+ CurrentPage += 1;
+ }
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+
+ //鏈〉鎸夐挳
+ private void lbEnd_Click(object sender, EventArgs e)
+ {
+ if (CurrentPage == TotalPages)
+ return;
+ CurrentPage = TotalPages;
+ if (williamPagerEvent != null)
+ BtnEvents(sender, e);
+ }
+
+ private void BtnEvents(object sender, EventArgs e)
+ {
+ //setTxt();
+ williamPagerEvent(CurrentPage, RowsCount);
+ }
+
+ public void setTxt()
+ {
+ tbxCurrentPage.Text = CurrentPage.ToString();
+ lbTotalPages.Text = "鍏� " + TotalPages.ToString() + "椤�";
+ lbTotalRows.Text = "鍏� " + RecordCount.ToString() + " 鏉¤褰�";
+ this.cbxRowCount.Text = this.RowsCount.ToString();
+ if (CurrentPage == 1)
+ lbFirstPage.Enabled = false;
+ else
+ lbFirstPage.Enabled = true;
+ if (CurrentPage == TotalPages)
+ lbEnd.Enabled = false;
+ else
+ lbEnd.Enabled = true;
+ if (CurrentPage == 1)
+ lbPrePage.Enabled = false;
+ else
+ lbPrePage.Enabled = true;
+ if (CurrentPage == TotalPages)
+ lbNextPage.Enabled = false;
+ else
+ lbNextPage.Enabled = true;
+ }
+ }
+}
diff --git a/DevApp/Gs.DevApp/UserControl/PageBar.resx b/DevApp/Gs.DevApp/UserControl/PageBar.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/PageBar.resx
@@ -0,0 +1,120 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
--
Gitblit v1.9.3