Commit 3622c191 HZH

新增DataGridView,分页控件

1 个父辈 ee050c1b
正在显示 147 个修改的文件 包含 2057 行增加550 行删除
namespace HZH_Controls.Controls
{
partial class UCDataGridViewRow
{
/// <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 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.ucSplitLine_H1 = new HZH_Controls.Controls.UCSplitLine_H();
this.panCells = new System.Windows.Forms.TableLayoutPanel();
this.SuspendLayout();
//
// ucSplitLine_H1
//
this.ucSplitLine_H1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_H1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.ucSplitLine_H1.Location = new System.Drawing.Point(0, 55);
this.ucSplitLine_H1.Name = "ucSplitLine_H1";
this.ucSplitLine_H1.Size = new System.Drawing.Size(661, 1);
this.ucSplitLine_H1.TabIndex = 0;
this.ucSplitLine_H1.TabStop = false;
//
// panCells
//
this.panCells.ColumnCount = 1;
this.panCells.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.panCells.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.panCells.Dock = System.Windows.Forms.DockStyle.Fill;
this.panCells.Location = new System.Drawing.Point(0, 0);
this.panCells.Name = "panCells";
this.panCells.RowCount = 1;
this.panCells.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.panCells.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.panCells.Size = new System.Drawing.Size(661, 55);
this.panCells.TabIndex = 1;
//
// UCDataGridViewItem
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.panCells);
this.Controls.Add(this.ucSplitLine_H1);
this.Name = "UCDataGridViewItem";
this.Size = new System.Drawing.Size(661, 56);
this.ResumeLayout(false);
}
#endregion
private UCSplitLine_H ucSplitLine_H1;
private System.Windows.Forms.TableLayoutPanel panCells;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HZH_Controls.Controls
{
public partial class UCDataGridViewRow : UserControl, IDataGridViewRow
{
#region 属性
public event DataGridViewCellEventHandler CheckBoxChangeEvent;
public event DataGridViewCellEventHandler CellClick;
public event DataGridViewCellEventHandler SourceChanged;
public List<DataGridViewColumnEntity> Columns
{
get;
set;
}
public object DataSource
{
get;
set;
}
public bool IsShowCheckBox
{
get;
set;
}
private bool m_isChecked;
public bool IsChecked
{
get
{
return m_isChecked;
}
set
{
if (m_isChecked != value)
{
m_isChecked = value;
(this.panCells.Controls.Find("check", false)[0] as UCCheckBox).Checked = value;
}
}
}
#endregion
public UCDataGridViewRow()
{
InitializeComponent();
}
public void BindingCellData()
{
for (int i = 0; i < Columns.Count; i++)
{
DataGridViewColumnEntity com = Columns[i];
var cs = this.panCells.Controls.Find("lbl_" + com.DataField, false);
if (cs != null && cs.Length > 0)
{
var pro = DataSource.GetType().GetProperty(com.DataField);
if (pro != null)
cs[0].Text = pro.GetValue(DataSource, null).ToStringExt();
}
}
}
void Item_MouseDown(object sender, MouseEventArgs e)
{
if (CellClick != null)
{
CellClick(sender, new DataGridViewCellEventArgs()
{
CellControl = this,
CellIndex = (sender as Control).Tag.ToInt()
});
}
}
public void SetSelect(bool blnSelected)
{
if (blnSelected)
{
this.BackColor = Color.FromArgb(255, 247, 245);
}
else
{
this.BackColor = Color.Transparent;
}
}
public void ReloadCells()
{
try
{
ControlHelper.FreezeControl(this, true);
this.panCells.Controls.Clear();
this.panCells.ColumnStyles.Clear();
int intColumnsCount = Columns.Count();
if (Columns != null && intColumnsCount > 0)
{
if (IsShowCheckBox)
{
intColumnsCount++;
}
this.panCells.ColumnCount = intColumnsCount;
for (int i = 0; i < intColumnsCount; i++)
{
Control c = null;
if (i == 0 && IsShowCheckBox)
{
this.panCells.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(SizeType.Absolute, 30F));
UCCheckBox box = new UCCheckBox();
box.Name = "check";
box.TextValue = "";
box.Size = new Size(30, 30);
box.Dock = DockStyle.Fill;
box.CheckedChangeEvent += (a, b) =>
{
IsChecked = box.Checked;
if (CheckBoxChangeEvent != null)
{
CheckBoxChangeEvent(a, new DataGridViewCellEventArgs()
{
CellControl = box,
CellIndex = 0
});
}
};
c = box;
}
else
{
var item = Columns[i - (IsShowCheckBox ? 1 : 0)];
this.panCells.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(item.WidthType, item.Width));
Label lbl = new Label();
lbl.Tag = i - (IsShowCheckBox ? 1 : 0);
lbl.Name = "lbl_" + item.DataField;
lbl.Font = new Font("微软雅黑", 12);
lbl.ForeColor = Color.Black;
lbl.AutoSize = false;
lbl.Dock = DockStyle.Fill;
lbl.TextAlign = ContentAlignment.MiddleCenter;
lbl.MouseDown += (a, b) =>
{
Item_MouseDown(a, b);
};
c = lbl;
}
this.panCells.Controls.Add(c, i, 0);
}
}
}
finally
{
ControlHelper.FreezeControl(this, false);
}
}
}
}
<?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 \ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HZH_Controls.Controls
{
public interface IPageControl
{
/// <summary>
/// 数据源改变时发生
/// </summary>
event PageControlEventHandler ShowChanged;
/// <summary>
/// 数据源
/// </summary>
List<object> DataSource { get; set; }
/// <summary>
/// 显示数量
/// </summary>
int PageSize { get; set; }
/// <summary>
/// 开始下标
/// </summary>
int StartIndex { get; set; }
/// <summary>
/// 第一页
/// </summary>
void FirstPage();
/// <summary>
/// 前一页
/// </summary>
void PreviousPage();
/// <summary>
/// 下一页
/// </summary>
void NextPage();
/// <summary>
/// 最后一页
/// </summary>
void EndPage();
/// <summary>
/// 重新加载
/// </summary>
void Reload();
/// <summary>
/// 获取当前页数据
/// </summary>
/// <returns></returns>
List<object> GetCurrentSource();
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace HZH_Controls.Controls
{
[Serializable]
[ComVisible(true)]
public delegate void PageControlEventHandler(object currentSource);
}
namespace HZH_Controls.Controls namespace HZH_Controls.Controls.List
{ {
partial class UCPagerControl partial class UCPagerControl
{ {
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
...@@ -36,27 +38,53 @@ ...@@ -36,27 +38,53 @@
// //
// tableLayoutPanel1 // tableLayoutPanel1
// //
this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnCount = 4;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Controls.Add(this.panel2, 1, 0); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel1.Controls.Add(this.panel4, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.panel2, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(3); this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(3);
this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(304, 58); this.tableLayoutPanel1.Size = new System.Drawing.Size(304, 58);
this.tableLayoutPanel1.TabIndex = 0; this.tableLayoutPanel1.TabIndex = 1;
//
// panel4
//
this.panel4.BackgroundImage = global::HZH_Controls.Properties.Resources.end;
this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel4.Location = new System.Drawing.Point(228, 6);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(68, 46);
this.panel4.TabIndex = 3;
this.panel4.Visible = false;
this.panel4.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel4_MouseDown);
//
// panel3
//
this.panel3.BackgroundImage = global::HZH_Controls.Properties.Resources.first;
this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel3.Location = new System.Drawing.Point(6, 6);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(68, 46);
this.panel3.TabIndex = 2;
this.panel3.Visible = false;
this.panel3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel3_MouseDown);
// //
// panel2 // panel2
// //
this.panel2.BackgroundImage = global::HZH_Controls.Properties.Resources.rigth; this.panel2.BackgroundImage = global::HZH_Controls.Properties.Resources.right;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel2.Location = new System.Drawing.Point(155, 6); this.panel2.Location = new System.Drawing.Point(154, 6);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(143, 46); this.panel2.Size = new System.Drawing.Size(68, 46);
this.panel2.TabIndex = 1; this.panel2.TabIndex = 1;
this.panel2.Visible = false; this.panel2.Visible = false;
this.panel2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel2_MouseDown); this.panel2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel2_MouseDown);
...@@ -65,20 +93,18 @@ ...@@ -65,20 +93,18 @@
// //
this.panel1.BackgroundImage = global::HZH_Controls.Properties.Resources.left; this.panel1.BackgroundImage = global::HZH_Controls.Properties.Resources.left;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel1.Location = new System.Drawing.Point(6, 6); this.panel1.Location = new System.Drawing.Point(80, 6);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(143, 46); this.panel1.Size = new System.Drawing.Size(68, 46);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
this.panel1.Visible = false; this.panel1.Visible = false;
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseDown); this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseDown);
// //
// UCPagerControl // UCPagerControl
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.Name = "UCPagerControl"; this.Name = "UCPagerControl";
this.Size = new System.Drawing.Size(304, 58);
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
...@@ -87,7 +113,9 @@ ...@@ -87,7 +113,9 @@
#endregion #endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel1;
} }
} }
...@@ -7,140 +7,39 @@ using System.Linq; ...@@ -7,140 +7,39 @@ using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace HZH_Controls.Controls namespace HZH_Controls.Controls.List
{ {
public partial class UCPagerControl : UserControl public partial class UCPagerControl : UCPagerControlBase
{ {
public delegate void PageClickEvent(List<object> currentSource);
/// <summary>
/// 关联的数据源
/// </summary>
public List<object> Source { get; set; }
public event PageClickEvent LeftClick;
public event PageClickEvent RightClick;
public event PageClickEvent ShowChanged;
private int showCount = 1;
/// <summary>
/// 每页显示数量
/// </summary>
public int ShowCount
{
get { return showCount; }
set { showCount = value; }
}
private int startIndex = 0;
/// <summary>
/// 开始的下标
/// </summary>
public int StartIndex
{
get { return startIndex; }
set
{
startIndex = value;
if (startIndex <= 0)
startIndex = 0;
}
}
public UCPagerControl() public UCPagerControl()
{ {
InitializeComponent(); InitializeComponent();
} }
public void NextPage()
{
if (startIndex + showCount >= Source.Count)
{
return;
}
startIndex += showCount;
if (startIndex < 0)
startIndex = 0;
var s = GetCurrentSoutce();
if (RightClick != null)
{
RightClick(s);
}
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public void LastPage()
{
if (startIndex == 0)
return;
startIndex -= showCount;
if (startIndex < 0)
startIndex = 0;
var s = GetCurrentSoutce();
if (LeftClick != null)
{
LeftClick(s);
}
if (ShowChanged != null)
{
ShowChanged(s);
}
}
private void panel1_MouseDown(object sender, MouseEventArgs e) private void panel1_MouseDown(object sender, MouseEventArgs e)
{ {
LastPage(); PreviousPage();
} }
private void panel2_MouseDown(object sender, MouseEventArgs e) private void panel2_MouseDown(object sender, MouseEventArgs e)
{ {
NextPage(); NextPage();
} }
public void Reload()
{
var s = GetCurrentSoutce();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public List<object> GetCurrentSoutce()
{
int intShowCount = showCount;
if (intShowCount + startIndex > Source.Count)
intShowCount = Source.Count - startIndex;
object[] objs = new object[intShowCount];
Source.CopyTo(startIndex, objs, 0, intShowCount);
var lst = objs.ToList();
if (lst.Count > 0) private void panel3_MouseDown(object sender, MouseEventArgs e)
{
if (Source.IndexOf(lst[0]) > 0)
{
panel1.Visible = true;
}
else
{ {
panel1.Visible = false; FirstPage();
} }
if (Source.IndexOf(lst[lst.Count - 1]) >= Source.Count - 1)
{ private void panel4_MouseDown(object sender, MouseEventArgs e)
panel2.Visible = false;
}
else
{
panel2.Visible = true;
}
}
else
{ {
panel1.Visible = false; EndPage();
panel2.Visible = false;
} }
protected override void ShowBtn(bool blnLeftBtn, bool blnRightBtn)
{
panel1.Visible = panel3.Visible = blnLeftBtn;
return lst; panel2.Visible = panel4.Visible = blnRightBtn;
} }
} }
} }
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HZH_Controls.Controls
{
public class UCPagerControlBase : UserControl, IPageControl
{
#region 构造
/// <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 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Name = "UCPagerControlBase";
this.Size = new System.Drawing.Size(304, 58);
this.ResumeLayout(false);
}
#endregion
#endregion
/// <summary>
/// 关联的数据源
/// </summary>
public List<object> DataSource { get; set; }
public event PageControlEventHandler ShowChanged;
private int m_pageSize = 1;
/// <summary>
/// 每页显示数量
/// </summary>
public int PageSize
{
get { return m_pageSize; }
set { m_pageSize = value; }
}
private int startIndex = 0;
/// <summary>
/// 开始的下标
/// </summary>
public int StartIndex
{
get { return startIndex; }
set
{
startIndex = value;
if (startIndex <= 0)
startIndex = 0;
}
}
public UCPagerControlBase()
{
InitializeComponent();
}
public void FirstPage()
{
startIndex = 0;
var s = GetCurrentSource();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public void PreviousPage()
{
if (startIndex == 0)
return;
startIndex -= m_pageSize;
if (startIndex < 0)
startIndex = 0;
var s = GetCurrentSource();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public void NextPage()
{
if (startIndex + m_pageSize >= DataSource.Count)
{
return;
}
startIndex += m_pageSize;
if (startIndex < 0)
startIndex = 0;
var s = GetCurrentSource();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public void EndPage()
{
startIndex = DataSource.Count - 1 - m_pageSize;
if (startIndex < 0)
startIndex = 0;
var s = GetCurrentSource();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public void Reload()
{
var s = GetCurrentSource();
if (ShowChanged != null)
{
ShowChanged(s);
}
}
public List<object> GetCurrentSource()
{
int intShowCount = m_pageSize;
if (intShowCount + startIndex > DataSource.Count)
intShowCount = DataSource.Count - startIndex;
object[] objs = new object[intShowCount];
DataSource.CopyTo(startIndex, objs, 0, intShowCount);
var lst = objs.ToList();
bool blnLeft = false;
bool blnRight = false;
if (lst.Count > 0)
{
if (DataSource.IndexOf(lst[0]) > 0)
{
blnLeft = true;
}
else
{
blnLeft = false;
}
if (DataSource.IndexOf(lst[lst.Count - 1]) >= DataSource.Count - 1)
{
blnRight = false;
}
else
{
blnRight = true;
}
}
ShowBtn(blnLeft, blnRight);
return lst;
}
/// <summary>
/// 控制按钮显示
/// </summary>
/// <param name="blnLeftBtn"></param>
/// <param name="blnRightBtn"></param>
protected virtual void ShowBtn(bool blnLeftBtn, bool blnRightBtn)
{ }
}
}
...@@ -41,6 +41,31 @@ ...@@ -41,6 +41,31 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Controls\DataGridView\DataGridViewCellEntity.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventArgs.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventHandler.cs" />
<Compile Include="Controls\DataGridView\DataGridViewColumnEntity.cs" />
<Compile Include="Controls\DataGridView\IDataGridViewRow.cs" />
<Compile Include="Controls\DataGridView\UCDataGridView.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\DataGridView\UCDataGridView.Designer.cs">
<DependentUpon>UCDataGridView.cs</DependentUpon>
</Compile>
<Compile Include="Controls\DataGridView\UCDataGridViewRow.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\DataGridView\UCDataGridViewRow.Designer.cs">
<DependentUpon>UCDataGridViewRow.cs</DependentUpon>
</Compile>
<Compile Include="Controls\List\IPageControl.cs" />
<Compile Include="Controls\List\PageControlEventHandler.cs" />
<Compile Include="Controls\List\UCPagerControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\List\UCPagerControl.Designer.cs">
<DependentUpon>UCPagerControl.cs</DependentUpon>
</Compile>
<Compile Include="Helpers\ControlHelper.cs" /> <Compile Include="Helpers\ControlHelper.cs" />
<Compile Include="Controls\Btn\UCBtnExt.cs"> <Compile Include="Controls\Btn\UCBtnExt.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
...@@ -136,12 +161,9 @@ ...@@ -136,12 +161,9 @@
<Compile Include="Controls\List\UCListItemExt.Designer.cs"> <Compile Include="Controls\List\UCListItemExt.Designer.cs">
<DependentUpon>UCListItemExt.cs</DependentUpon> <DependentUpon>UCListItemExt.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Controls\List\UCPagerControl.cs"> <Compile Include="Controls\List\UCPagerControlBase.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
<Compile Include="Controls\List\UCPagerControl.Designer.cs">
<DependentUpon>UCPagerControl.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Process\ProcessExt.cs"> <Compile Include="Controls\Process\ProcessExt.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
...@@ -288,6 +310,12 @@ ...@@ -288,6 +310,12 @@
<EmbeddedResource Include="Controls\ComboBox\UCComboBox.resx"> <EmbeddedResource Include="Controls\ComboBox\UCComboBox.resx">
<DependentUpon>UCComboBox.cs</DependentUpon> <DependentUpon>UCComboBox.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Controls\DataGridView\UCDataGridView.resx">
<DependentUpon>UCDataGridView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DataGridView\UCDataGridViewRow.resx">
<DependentUpon>UCDataGridViewRow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DateTime\UCDatePickerExt.resx"> <EmbeddedResource Include="Controls\DateTime\UCDatePickerExt.resx">
<DependentUpon>UCDatePickerExt.cs</DependentUpon> <DependentUpon>UCDatePickerExt.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -321,6 +349,9 @@ ...@@ -321,6 +349,9 @@
<EmbeddedResource Include="Controls\List\UCPagerControl.resx"> <EmbeddedResource Include="Controls\List\UCPagerControl.resx">
<DependentUpon>UCPagerControl.cs</DependentUpon> <DependentUpon>UCPagerControl.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Controls\List\UCPagerControlBase.resx">
<DependentUpon>UCPagerControlBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Process\ProcessExt.resx"> <EmbeddedResource Include="Controls\Process\ProcessExt.resx">
<DependentUpon>ProcessExt.cs</DependentUpon> <DependentUpon>ProcessExt.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -435,9 +466,6 @@ ...@@ -435,9 +466,6 @@
<None Include="Resources\keyboard.png" /> <None Include="Resources\keyboard.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Resources\left.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\list_add.png" /> <None Include="Resources\list_add.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
...@@ -482,6 +510,18 @@ ...@@ -482,6 +510,18 @@
<ItemGroup> <ItemGroup>
<None Include="Resources\handinput.exe" /> <None Include="Resources\handinput.exe" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="Resources\end.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\left.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\right.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\first.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PreBuildEvent>md "$(TargetDir)HandInput" <PreBuildEvent>md "$(TargetDir)HandInput"
......
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
namespace HZH_Controls namespace HZH_Controls
{ {
public static partial class Ext public static partial class Ext
{ {
public static T CloneModel<T>(this T classObject) where T : class
{
T result;
if (classObject == null)
{
result = default(T);
}
else
{
object obj = Activator.CreateInstance(typeof(T));
PropertyInfo[] properties = typeof(T).GetProperties();
PropertyInfo[] array = properties;
for (int i = 0; i < array.Length; i++)
{
PropertyInfo propertyInfo = array[i];
if (propertyInfo.CanWrite)
propertyInfo.SetValue(obj, propertyInfo.GetValue(classObject, null), null);
}
result = (obj as T);
}
return result;
}
#region 转换为base64字符串 #region 转换为base64字符串
/// <summary> /// <summary>
/// 功能描述:转换为base64字符串 /// 功能描述:转换为base64字符串
......
...@@ -183,6 +183,16 @@ namespace HZH_Controls.Properties { ...@@ -183,6 +183,16 @@ namespace HZH_Controls.Properties {
/// <summary> /// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary> /// </summary>
internal static System.Drawing.Bitmap end {
get {
object obj = ResourceManager.GetObject("end", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap error { internal static System.Drawing.Bitmap error {
get { get {
object obj = ResourceManager.GetObject("error", resourceCulture); object obj = ResourceManager.GetObject("error", resourceCulture);
...@@ -193,6 +203,16 @@ namespace HZH_Controls.Properties { ...@@ -193,6 +203,16 @@ namespace HZH_Controls.Properties {
/// <summary> /// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary> /// </summary>
internal static System.Drawing.Bitmap first {
get {
object obj = ResourceManager.GetObject("first", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap help { internal static System.Drawing.Bitmap help {
get { get {
object obj = ResourceManager.GetObject("help", resourceCulture); object obj = ResourceManager.GetObject("help", resourceCulture);
...@@ -353,9 +373,9 @@ namespace HZH_Controls.Properties { ...@@ -353,9 +373,9 @@ namespace HZH_Controls.Properties {
/// <summary> /// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary> /// </summary>
internal static System.Drawing.Bitmap rigth { internal static System.Drawing.Bitmap right {
get { get {
object obj = ResourceManager.GetObject("rigth", resourceCulture); object obj = ResourceManager.GetObject("right", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
......
...@@ -196,9 +196,6 @@ ...@@ -196,9 +196,6 @@
<data name="radioButton10" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="radioButton10" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\radioButton10.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\radioButton10.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="rigth" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\rigth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="error" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="error" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
...@@ -217,4 +214,13 @@ ...@@ -217,4 +214,13 @@
<data name="warning" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="warning" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\warning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\warning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="end" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\end.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="first" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\first.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="right" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file

1.1 KB | 宽: | 高:

582 字节 | 宽: | 高:

HZH_Controls/HZH_Controls/Resources/left.png
HZH_Controls/HZH_Controls/Resources/left.png
HZH_Controls/HZH_Controls/Resources/left.png
HZH_Controls/HZH_Controls/Resources/left.png
  • 两方对比
  • 交换覆盖
  • 透明覆盖
...@@ -30,239 +30,245 @@ ...@@ -30,239 +30,245 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnImg1 = new HZH_Controls.Controls.UCBtnImg();
this.processExt1 = new HZH_Controls.Controls.ProcessExt();
this.textBoxTransparent1 = new HZH_Controls.Controls.TextBoxTransparent();
this.treeViewEx1 = new HZH_Controls.Controls.TreeViewEx();
this.ucCheckBox1 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox2 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox3 = new HZH_Controls.Controls.UCCheckBox();
this.ucComboBox1 = new HZH_Controls.Controls.UCComboBox();
this.ucComboBox2 = new HZH_Controls.Controls.UCComboBox();
this.ucDatePickerExt1 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.ucRadioButton1 = new HZH_Controls.Controls.UCRadioButton(); this.button1 = new System.Windows.Forms.Button();
this.ucRadioButton2 = new HZH_Controls.Controls.UCRadioButton(); this.button2 = new System.Windows.Forms.Button();
this.ucRadioButton3 = new HZH_Controls.Controls.UCRadioButton(); this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.ucDatePickerExt3 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucDatePickerExt2 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucDatePickerExt1 = new HZH_Controls.Controls.UCDatePickerExt();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.ucComboBox2 = new HZH_Controls.Controls.UCComboBox();
this.ucComboBox1 = new HZH_Controls.Controls.UCComboBox();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.ucListExt1 = new HZH_Controls.Controls.UCListExt(); this.ucListExt1 = new HZH_Controls.Controls.UCListExt();
this.ucNumTextBox1 = new HZH_Controls.Controls.UCNumTextBox(); this.groupBox5 = new System.Windows.Forms.GroupBox();
this.ucSplitLine_H1 = new HZH_Controls.Controls.UCSplitLine_H(); this.treeViewEx1 = new HZH_Controls.Controls.TreeViewEx();
this.ucSplitLine_V1 = new HZH_Controls.Controls.UCSplitLine_V(); this.groupBox4 = new System.Windows.Forms.GroupBox();
this.ucTextBoxEx4 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx3 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx2 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx1 = new HZH_Controls.Controls.UCTextBoxEx(); this.ucTextBoxEx1 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucNumTextBox1 = new HZH_Controls.Controls.UCNumTextBox();
this.textBoxTransparent1 = new HZH_Controls.Controls.TextBoxTransparent();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.ucCheckBox4 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox3 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox2 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox1 = new HZH_Controls.Controls.UCCheckBox();
this.ucRadioButton4 = new HZH_Controls.Controls.UCRadioButton();
this.ucRadioButton3 = new HZH_Controls.Controls.UCRadioButton();
this.ucRadioButton2 = new HZH_Controls.Controls.UCRadioButton();
this.ucRadioButton1 = new HZH_Controls.Controls.UCRadioButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.ucBtnImg1 = new HZH_Controls.Controls.UCBtnImg();
this.ucBtnFillet1 = new HZH_Controls.Controls.UCBtnFillet();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
this.groupBox1.SuspendLayout();
this.groupBox7.SuspendLayout();
this.groupBox6.SuspendLayout();
this.groupBox8.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox9.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// ucBtnExt1 // timer1
//
this.ucBtnExt1.BackColor = System.Drawing.Color.Maroon;
this.ucBtnExt1.BtnBackColor = System.Drawing.Color.Maroon;
this.ucBtnExt1.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt1.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt1.BtnText = "圆角无边框";
this.ucBtnExt1.ConerRadius = 31;
this.ucBtnExt1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ucBtnExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt1.IsRadius = true;
this.ucBtnExt1.IsShowRect = false;
this.ucBtnExt1.IsShowTips = false;
this.ucBtnExt1.Location = new System.Drawing.Point(19, 23);
this.ucBtnExt1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt1.Name = "ucBtnExt1";
this.ucBtnExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ucBtnExt1.RectWidth = 1;
this.ucBtnExt1.Size = new System.Drawing.Size(128, 60);
this.ucBtnExt1.TabIndex = 0;
this.ucBtnExt1.TabStop = false;
this.ucBtnExt1.TipsText = "";
//
// ucBtnExt2
//
this.ucBtnExt2.BackColor = System.Drawing.Color.Maroon;
this.ucBtnExt2.BtnBackColor = System.Drawing.Color.Maroon;
this.ucBtnExt2.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt2.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt2.BtnText = "圆角有边框";
this.ucBtnExt2.ConerRadius = 31;
this.ucBtnExt2.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt2.FillColor = System.Drawing.Color.Red;
this.ucBtnExt2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt2.IsRadius = true;
this.ucBtnExt2.IsShowRect = true;
this.ucBtnExt2.IsShowTips = false;
this.ucBtnExt2.Location = new System.Drawing.Point(190, 23);
this.ucBtnExt2.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt2.Name = "ucBtnExt2";
this.ucBtnExt2.RectColor = System.Drawing.Color.Blue;
this.ucBtnExt2.RectWidth = 2;
this.ucBtnExt2.Size = new System.Drawing.Size(128, 60);
this.ucBtnExt2.TabIndex = 0;
this.ucBtnExt2.TabStop = false;
this.ucBtnExt2.TipsText = "";
//
// ucBtnImg1
//
this.ucBtnImg1.BackColor = System.Drawing.Color.White;
this.ucBtnImg1.BtnBackColor = System.Drawing.Color.White;
this.ucBtnImg1.BtnFont = new System.Drawing.Font("微软雅黑", 15F);
this.ucBtnImg1.BtnForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
this.ucBtnImg1.BtnText = "有图标按钮";
this.ucBtnImg1.ConerRadius = 21;
this.ucBtnImg1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnImg1.FillColor = System.Drawing.Color.Lime;
this.ucBtnImg1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnImg1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
this.ucBtnImg1.Image = ((System.Drawing.Image)(resources.GetObject("ucBtnImg1.Image")));
this.ucBtnImg1.IsRadius = true;
this.ucBtnImg1.IsShowRect = true;
this.ucBtnImg1.IsShowTips = false;
this.ucBtnImg1.Location = new System.Drawing.Point(364, 23);
this.ucBtnImg1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnImg1.Name = "ucBtnImg1";
this.ucBtnImg1.RectColor = System.Drawing.Color.Red;
this.ucBtnImg1.RectWidth = 2;
this.ucBtnImg1.Size = new System.Drawing.Size(184, 60);
this.ucBtnImg1.TabIndex = 1;
this.ucBtnImg1.TabStop = false;
this.ucBtnImg1.TipsText = "";
//
// processExt1
//
this.processExt1.BackColor = System.Drawing.Color.White;
this.processExt1.ConerRadius = 5;
this.processExt1.FillColor = System.Drawing.Color.Transparent;
this.processExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.processExt1.IsRadius = true;
this.processExt1.IsShowRect = false;
this.processExt1.Location = new System.Drawing.Point(19, 104);
this.processExt1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.processExt1.MaxValue = 100;
this.processExt1.Name = "processExt1";
this.processExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.processExt1.RectWidth = 1;
this.processExt1.Size = new System.Drawing.Size(529, 22);
this.processExt1.TabIndex = 2;
this.processExt1.Value = 0;
//
// textBoxTransparent1
//
this.textBoxTransparent1.BackAlpha = 10;
this.textBoxTransparent1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.textBoxTransparent1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBoxTransparent1.DecLength = 2;
this.textBoxTransparent1.InputType = HZH_Controls.TextInputType.NotControl;
this.textBoxTransparent1.Location = new System.Drawing.Point(19, 152);
this.textBoxTransparent1.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.textBoxTransparent1.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.textBoxTransparent1.MyRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
this.textBoxTransparent1.Name = "textBoxTransparent1";
this.textBoxTransparent1.OldText = null;
this.textBoxTransparent1.PromptColor = System.Drawing.Color.Gray;
this.textBoxTransparent1.PromptFont = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.textBoxTransparent1.PromptText = "水印文字";
this.textBoxTransparent1.RegexPattern = "";
this.textBoxTransparent1.Size = new System.Drawing.Size(180, 14);
this.textBoxTransparent1.TabIndex = 3;
this.textBoxTransparent1.Text = "透明的文本框";
//
// treeViewEx1
//
this.treeViewEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(60)))), ((int)(((byte)(66)))));
this.treeViewEx1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
this.treeViewEx1.FullRowSelect = true;
this.treeViewEx1.HideSelection = false;
this.treeViewEx1.IsShowByCustomModel = true;
this.treeViewEx1.IsShowTip = false;
this.treeViewEx1.ItemHeight = 50;
this.treeViewEx1.Location = new System.Drawing.Point(19, 172);
this.treeViewEx1.LstTips = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("treeViewEx1.LstTips")));
this.treeViewEx1.Name = "treeViewEx1";
this.treeViewEx1.NodeBackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(60)))), ((int)(((byte)(66)))));
this.treeViewEx1.NodeDownPic = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.NodeDownPic")));
this.treeViewEx1.NodeForeColor = System.Drawing.Color.White;
this.treeViewEx1.NodeHeight = 50;
this.treeViewEx1.NodeIsShowSplitLine = false;
this.treeViewEx1.NodeSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(121)))), ((int)(((byte)(74)))));
this.treeViewEx1.NodeSelectedForeColor = System.Drawing.Color.White;
this.treeViewEx1.NodeSplitLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(54)))), ((int)(((byte)(53)))), ((int)(((byte)(58)))));
this.treeViewEx1.NodeUpPic = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.NodeUpPic")));
this.treeViewEx1.ParentNodeCanSelect = true;
this.treeViewEx1.ShowLines = false;
this.treeViewEx1.ShowPlusMinus = false;
this.treeViewEx1.ShowRootLines = false;
this.treeViewEx1.Size = new System.Drawing.Size(199, 313);
this.treeViewEx1.TabIndex = 4;
this.treeViewEx1.TipFont = new System.Drawing.Font("Arial Unicode MS", 12F);
this.treeViewEx1.TipImage = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.TipImage")));
this.treeViewEx1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewEx1_AfterSelect);
//
// ucCheckBox1
// //
this.ucCheckBox1.BackColor = System.Drawing.Color.Transparent; this.timer1.Enabled = true;
this.ucCheckBox1.Checked = false; this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
this.ucCheckBox1.Location = new System.Drawing.Point(315, 136);
this.ucCheckBox1.Name = "ucCheckBox1";
this.ucCheckBox1.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox1.Size = new System.Drawing.Size(94, 30);
this.ucCheckBox1.TabIndex = 5;
this.ucCheckBox1.TextValue = "复选框";
// //
// ucCheckBox2 // button1
//
this.button1.Location = new System.Drawing.Point(44, 34);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "FrmDialog";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(144, 34);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 0;
this.button2.Text = "FrmInputs";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(351, 34);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 0;
this.button3.Text = "FrmTemp1";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(251, 34);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 0;
this.button4.Text = "FrmTips";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.Location = new System.Drawing.Point(441, 34);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 0;
this.button5.Text = "FrmWaiting";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
this.button6.Location = new System.Drawing.Point(537, 34);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(116, 23);
this.button6.TabIndex = 0;
this.button6.Text = "FrmWithOKCancel1";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.Location = new System.Drawing.Point(690, 34);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(116, 23);
this.button7.TabIndex = 0;
this.button7.Text = "FrmWithOKCancel2";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.Location = new System.Drawing.Point(833, 34);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(116, 23);
this.button8.TabIndex = 0;
this.button8.Text = "FrmWithTitle";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.groupBox9);
this.groupBox1.Controls.Add(this.groupBox7);
this.groupBox1.Controls.Add(this.groupBox6);
this.groupBox1.Controls.Add(this.groupBox8);
this.groupBox1.Controls.Add(this.groupBox5);
this.groupBox1.Controls.Add(this.groupBox4);
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Location = new System.Drawing.Point(19, 79);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(1124, 499);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "控件";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.ucDatePickerExt3);
this.groupBox7.Controls.Add(this.ucDatePickerExt2);
this.groupBox7.Controls.Add(this.ucDatePickerExt1);
this.groupBox7.Location = new System.Drawing.Point(232, 363);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(374, 119);
this.groupBox7.TabIndex = 7;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "日历";
//
// ucDatePickerExt3
//
this.ucDatePickerExt3.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt3.ConerRadius = 5;
this.ucDatePickerExt3.CurrentTime = new System.DateTime(2019, 8, 8, 15, 17, 11, 0);
this.ucDatePickerExt3.FillColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt3.IsRadius = true;
this.ucDatePickerExt3.IsShowRect = true;
this.ucDatePickerExt3.Location = new System.Drawing.Point(224, 62);
this.ucDatePickerExt3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt3.Name = "ucDatePickerExt3";
this.ucDatePickerExt3.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt3.RectWidth = 1;
this.ucDatePickerExt3.Size = new System.Drawing.Size(128, 39);
this.ucDatePickerExt3.TabIndex = 0;
this.ucDatePickerExt3.TimeFontSize = 20;
this.ucDatePickerExt3.TimeType = HZH_Controls.Controls.DateTimePickerType.Time;
//
// ucDatePickerExt2
//
this.ucDatePickerExt2.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt2.ConerRadius = 5;
this.ucDatePickerExt2.CurrentTime = new System.DateTime(2019, 8, 8, 15, 17, 11, 0);
this.ucDatePickerExt2.FillColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt2.IsRadius = true;
this.ucDatePickerExt2.IsShowRect = true;
this.ucDatePickerExt2.Location = new System.Drawing.Point(7, 62);
this.ucDatePickerExt2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt2.Name = "ucDatePickerExt2";
this.ucDatePickerExt2.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt2.RectWidth = 1;
this.ucDatePickerExt2.Size = new System.Drawing.Size(210, 39);
this.ucDatePickerExt2.TabIndex = 0;
this.ucDatePickerExt2.TimeFontSize = 20;
this.ucDatePickerExt2.TimeType = HZH_Controls.Controls.DateTimePickerType.Date;
// //
this.ucCheckBox2.BackColor = System.Drawing.Color.Transparent; // ucDatePickerExt1
this.ucCheckBox2.Checked = true;
this.ucCheckBox2.Location = new System.Drawing.Point(426, 136);
this.ucCheckBox2.Name = "ucCheckBox2";
this.ucCheckBox2.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox2.Size = new System.Drawing.Size(94, 30);
this.ucCheckBox2.TabIndex = 5;
this.ucCheckBox2.TextValue = "复选框";
// //
// ucCheckBox3 this.ucDatePickerExt1.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt1.ConerRadius = 5;
this.ucDatePickerExt1.CurrentTime = new System.DateTime(2019, 8, 8, 15, 17, 11, 0);
this.ucDatePickerExt1.FillColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt1.IsRadius = true;
this.ucDatePickerExt1.IsShowRect = true;
this.ucDatePickerExt1.Location = new System.Drawing.Point(7, 17);
this.ucDatePickerExt1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt1.Name = "ucDatePickerExt1";
this.ucDatePickerExt1.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt1.RectWidth = 1;
this.ucDatePickerExt1.Size = new System.Drawing.Size(345, 39);
this.ucDatePickerExt1.TabIndex = 0;
this.ucDatePickerExt1.TimeFontSize = 20;
this.ucDatePickerExt1.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
// //
this.ucCheckBox3.BackColor = System.Drawing.Color.Transparent; // groupBox6
this.ucCheckBox3.Checked = true;
this.ucCheckBox3.Enabled = false;
this.ucCheckBox3.Location = new System.Drawing.Point(537, 136);
this.ucCheckBox3.Name = "ucCheckBox3";
this.ucCheckBox3.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox3.Size = new System.Drawing.Size(94, 30);
this.ucCheckBox3.TabIndex = 5;
this.ucCheckBox3.TextValue = "复选框";
// //
// ucComboBox1 this.groupBox6.Controls.Add(this.ucComboBox2);
// this.groupBox6.Controls.Add(this.ucComboBox1);
this.ucComboBox1.BackColor = System.Drawing.Color.Transparent; this.groupBox6.Location = new System.Drawing.Point(25, 363);
this.ucComboBox1.BackColorExt = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.groupBox6.Name = "groupBox6";
this.ucComboBox1.BoxStyle = System.Windows.Forms.ComboBoxStyle.DropDown; this.groupBox6.Size = new System.Drawing.Size(187, 119);
this.ucComboBox1.ConerRadius = 5; this.groupBox6.TabIndex = 6;
this.ucComboBox1.DropPanelHeight = -1; this.groupBox6.TabStop = false;
this.ucComboBox1.FillColor = System.Drawing.Color.White; this.groupBox6.Text = "下拉列表";
this.ucComboBox1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucComboBox1.IsRadius = false;
this.ucComboBox1.IsShowRect = true;
this.ucComboBox1.ItemWidth = 70;
this.ucComboBox1.Location = new System.Drawing.Point(272, 203);
this.ucComboBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucComboBox1.Name = "ucComboBox1";
this.ucComboBox1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucComboBox1.RectWidth = 1;
this.ucComboBox1.SelectedIndex = -1;
this.ucComboBox1.SelectedValue = "";
this.ucComboBox1.Size = new System.Drawing.Size(173, 32);
this.ucComboBox1.Source = null;
this.ucComboBox1.TabIndex = 6;
this.ucComboBox1.TextValue = null;
// //
// ucComboBox2 // ucComboBox2
// //
...@@ -276,7 +282,7 @@ ...@@ -276,7 +282,7 @@
this.ucComboBox2.IsRadius = false; this.ucComboBox2.IsRadius = false;
this.ucComboBox2.IsShowRect = true; this.ucComboBox2.IsShowRect = true;
this.ucComboBox2.ItemWidth = 70; this.ucComboBox2.ItemWidth = 70;
this.ucComboBox2.Location = new System.Drawing.Point(471, 203); this.ucComboBox2.Location = new System.Drawing.Point(7, 71);
this.ucComboBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.ucComboBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucComboBox2.Name = "ucComboBox2"; this.ucComboBox2.Name = "ucComboBox2";
this.ucComboBox2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.ucComboBox2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
...@@ -285,82 +291,48 @@ ...@@ -285,82 +291,48 @@
this.ucComboBox2.SelectedValue = ""; this.ucComboBox2.SelectedValue = "";
this.ucComboBox2.Size = new System.Drawing.Size(173, 32); this.ucComboBox2.Size = new System.Drawing.Size(173, 32);
this.ucComboBox2.Source = null; this.ucComboBox2.Source = null;
this.ucComboBox2.TabIndex = 6; this.ucComboBox2.TabIndex = 5;
this.ucComboBox2.TextValue = null; this.ucComboBox2.TextValue = null;
this.ucComboBox2.SelectedChangedEvent += new System.EventHandler(this.ucComboBox2_SelectedChangedEvent);
//
// ucDatePickerExt1
//
this.ucDatePickerExt1.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt1.ConerRadius = 5;
this.ucDatePickerExt1.CurrentTime = new System.DateTime(2019, 8, 8, 11, 12, 1, 0);
this.ucDatePickerExt1.FillColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt1.IsRadius = true;
this.ucDatePickerExt1.IsShowRect = true;
this.ucDatePickerExt1.Location = new System.Drawing.Point(272, 399);
this.ucDatePickerExt1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt1.Name = "ucDatePickerExt1";
this.ucDatePickerExt1.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt1.RectWidth = 1;
this.ucDatePickerExt1.Size = new System.Drawing.Size(345, 39);
this.ucDatePickerExt1.TabIndex = 7;
this.ucDatePickerExt1.TimeFontSize = 20;
this.ucDatePickerExt1.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// ucHorizontalList1
//
this.ucHorizontalList1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ucHorizontalList1.DataSource = null;
this.ucHorizontalList1.IsAutoSelectFirst = true;
this.ucHorizontalList1.Location = new System.Drawing.Point(262, 465);
this.ucHorizontalList1.Name = "ucHorizontalList1";
this.ucHorizontalList1.SelectedItem = null;
this.ucHorizontalList1.Size = new System.Drawing.Size(382, 53);
this.ucHorizontalList1.TabIndex = 8;
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// ucRadioButton1
//
this.ucRadioButton1.Checked = false;
this.ucRadioButton1.GroupName = null;
this.ucRadioButton1.Location = new System.Drawing.Point(315, 165);
this.ucRadioButton1.Name = "ucRadioButton1";
this.ucRadioButton1.Size = new System.Drawing.Size(105, 30);
this.ucRadioButton1.TabIndex = 9;
this.ucRadioButton1.TextValue = "单选按钮";
// //
// ucRadioButton2 // ucComboBox1
// //
this.ucRadioButton2.Checked = true; this.ucComboBox1.BackColor = System.Drawing.Color.Transparent;
this.ucRadioButton2.GroupName = null; this.ucComboBox1.BackColorExt = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.ucRadioButton2.Location = new System.Drawing.Point(426, 165); this.ucComboBox1.BoxStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
this.ucRadioButton2.Name = "ucRadioButton2"; this.ucComboBox1.ConerRadius = 5;
this.ucRadioButton2.Size = new System.Drawing.Size(105, 30); this.ucComboBox1.DropPanelHeight = -1;
this.ucRadioButton2.TabIndex = 9; this.ucComboBox1.FillColor = System.Drawing.Color.White;
this.ucRadioButton2.TextValue = "单选按钮"; this.ucComboBox1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.ucComboBox1.IsRadius = false;
this.ucComboBox1.IsShowRect = true;
this.ucComboBox1.ItemWidth = 70;
this.ucComboBox1.Location = new System.Drawing.Point(7, 26);
this.ucComboBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucComboBox1.Name = "ucComboBox1";
this.ucComboBox1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucComboBox1.RectWidth = 1;
this.ucComboBox1.SelectedIndex = -1;
this.ucComboBox1.SelectedValue = "";
this.ucComboBox1.Size = new System.Drawing.Size(173, 32);
this.ucComboBox1.Source = null;
this.ucComboBox1.TabIndex = 5;
this.ucComboBox1.TextValue = null;
// //
// ucRadioButton3 // groupBox8
// //
this.ucRadioButton3.Checked = false; this.groupBox8.Controls.Add(this.ucListExt1);
this.ucRadioButton3.Enabled = false; this.groupBox8.Location = new System.Drawing.Point(876, 30);
this.ucRadioButton3.GroupName = null; this.groupBox8.Name = "groupBox8";
this.ucRadioButton3.Location = new System.Drawing.Point(539, 165); this.groupBox8.Size = new System.Drawing.Size(240, 324);
this.ucRadioButton3.Name = "ucRadioButton3"; this.groupBox8.TabIndex = 4;
this.ucRadioButton3.Size = new System.Drawing.Size(105, 30); this.groupBox8.TabStop = false;
this.ucRadioButton3.TabIndex = 9; this.groupBox8.Text = "列表";
this.ucRadioButton3.TextValue = "单选按钮";
// //
// ucListExt1 // ucListExt1
// //
this.ucListExt1.AutoScroll = true; this.ucListExt1.AutoScroll = true;
this.ucListExt1.AutoSelectFirst = true; this.ucListExt1.AutoSelectFirst = true;
this.ucListExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.ucListExt1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucListExt1.ItemBackColor = System.Drawing.Color.White; this.ucListExt1.ItemBackColor = System.Drawing.Color.White;
this.ucListExt1.ItemForeColor = System.Drawing.Color.Black; this.ucListExt1.ItemForeColor = System.Drawing.Color.Black;
this.ucListExt1.ItemForeColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232))))); this.ucListExt1.ItemForeColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
...@@ -368,58 +340,190 @@ ...@@ -368,58 +340,190 @@
this.ucListExt1.ItemSelectedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232))))); this.ucListExt1.ItemSelectedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
this.ucListExt1.ItemSelectedForeColor = System.Drawing.Color.White; this.ucListExt1.ItemSelectedForeColor = System.Drawing.Color.White;
this.ucListExt1.ItemSelectedForeColor2 = System.Drawing.Color.White; this.ucListExt1.ItemSelectedForeColor2 = System.Drawing.Color.White;
this.ucListExt1.Location = new System.Drawing.Point(865, 12); this.ucListExt1.Location = new System.Drawing.Point(3, 17);
this.ucListExt1.Name = "ucListExt1"; this.ucListExt1.Name = "ucListExt1";
this.ucListExt1.SelectedCanClick = false; this.ucListExt1.SelectedCanClick = false;
this.ucListExt1.Size = new System.Drawing.Size(271, 445); this.ucListExt1.Size = new System.Drawing.Size(234, 304);
this.ucListExt1.TabIndex = 10; this.ucListExt1.TabIndex = 0;
this.ucListExt1.Title2Font = new System.Drawing.Font("微软雅黑", 14F); this.ucListExt1.Title2Font = new System.Drawing.Font("微软雅黑", 14F);
this.ucListExt1.TitleFont = new System.Drawing.Font("微软雅黑", 15F); this.ucListExt1.TitleFont = new System.Drawing.Font("微软雅黑", 15F);
this.ucListExt1.ItemClick += new HZH_Controls.Controls.UCListExt.ItemClickEvent(this.ucListExt1_ItemClick);
// //
// ucNumTextBox1 // groupBox5
// //
this.ucNumTextBox1.InputType = HZH_Controls.TextInputType.Number; this.groupBox5.Controls.Add(this.treeViewEx1);
this.ucNumTextBox1.IsNumCanInput = true; this.groupBox5.Location = new System.Drawing.Point(625, 30);
this.ucNumTextBox1.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderNum; this.groupBox5.Name = "groupBox5";
this.ucNumTextBox1.Location = new System.Drawing.Point(293, 254); this.groupBox5.Size = new System.Drawing.Size(240, 327);
this.ucNumTextBox1.MaxValue = new decimal(new int[] { this.groupBox5.TabIndex = 4;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "树";
//
// treeViewEx1
//
this.treeViewEx1.BackColor = System.Drawing.Color.White;
this.treeViewEx1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.treeViewEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeViewEx1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
this.treeViewEx1.FullRowSelect = true;
this.treeViewEx1.HideSelection = false;
this.treeViewEx1.IsShowByCustomModel = true;
this.treeViewEx1.IsShowTip = false;
this.treeViewEx1.ItemHeight = 50;
this.treeViewEx1.Location = new System.Drawing.Point(3, 17);
this.treeViewEx1.LstTips = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("treeViewEx1.LstTips")));
this.treeViewEx1.Name = "treeViewEx1";
this.treeViewEx1.NodeBackgroundColor = System.Drawing.Color.White;
this.treeViewEx1.NodeDownPic = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.NodeDownPic")));
this.treeViewEx1.NodeForeColor = System.Drawing.Color.Black;
this.treeViewEx1.NodeHeight = 50;
this.treeViewEx1.NodeIsShowSplitLine = true;
this.treeViewEx1.NodeSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(121)))), ((int)(((byte)(74)))));
this.treeViewEx1.NodeSelectedForeColor = System.Drawing.Color.White;
this.treeViewEx1.NodeSplitLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.treeViewEx1.NodeUpPic = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.NodeUpPic")));
this.treeViewEx1.ParentNodeCanSelect = true;
this.treeViewEx1.ShowLines = false;
this.treeViewEx1.ShowPlusMinus = false;
this.treeViewEx1.ShowRootLines = false;
this.treeViewEx1.Size = new System.Drawing.Size(234, 307);
this.treeViewEx1.TabIndex = 3;
this.treeViewEx1.TipFont = new System.Drawing.Font("Arial Unicode MS", 12F);
this.treeViewEx1.TipImage = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.TipImage")));
//
// groupBox4
//
this.groupBox4.Controls.Add(this.ucTextBoxEx4);
this.groupBox4.Controls.Add(this.ucTextBoxEx3);
this.groupBox4.Controls.Add(this.ucTextBoxEx2);
this.groupBox4.Controls.Add(this.ucTextBoxEx1);
this.groupBox4.Controls.Add(this.ucNumTextBox1);
this.groupBox4.Controls.Add(this.textBoxTransparent1);
this.groupBox4.Location = new System.Drawing.Point(397, 30);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(209, 327);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "文本框";
//
// ucTextBoxEx4
//
this.ucTextBoxEx4.BackColor = System.Drawing.Color.Transparent;
this.ucTextBoxEx4.ConerRadius = 5;
this.ucTextBoxEx4.Cursor = System.Windows.Forms.Cursors.IBeam;
this.ucTextBoxEx4.DecLength = 2;
this.ucTextBoxEx4.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxEx4.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx4.InputText = "";
this.ucTextBoxEx4.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxEx4.IsFocusColor = true;
this.ucTextBoxEx4.IsRadius = true;
this.ucTextBoxEx4.IsShowClearBtn = true;
this.ucTextBoxEx4.IsShowKeyboard = true;
this.ucTextBoxEx4.IsShowRect = true;
this.ucTextBoxEx4.IsShowSearchBtn = false;
this.ucTextBoxEx4.KeyBoardType = HZH_Controls.Controls.KeyBoardType.Null;
this.ucTextBoxEx4.Location = new System.Drawing.Point(6, 275);
this.ucTextBoxEx4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxEx4.MaxValue = new decimal(new int[] {
1000000, 1000000,
0, 0,
0, 0,
0}); 0});
this.ucNumTextBox1.MinValue = new decimal(new int[] { this.ucTextBoxEx4.MinValue = new decimal(new int[] {
1000000,
0, 0,
0, 0,
-2147483648});
this.ucTextBoxEx4.Name = "ucTextBoxEx4";
this.ucTextBoxEx4.Padding = new System.Windows.Forms.Padding(5);
this.ucTextBoxEx4.PromptColor = System.Drawing.Color.Gray;
this.ucTextBoxEx4.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx4.PromptText = "水印文字";
this.ucTextBoxEx4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucTextBoxEx4.RectWidth = 1;
this.ucTextBoxEx4.RegexPattern = "";
this.ucTextBoxEx4.Size = new System.Drawing.Size(195, 42);
this.ucTextBoxEx4.TabIndex = 2;
//
// ucTextBoxEx3
//
this.ucTextBoxEx3.BackColor = System.Drawing.Color.Transparent;
this.ucTextBoxEx3.ConerRadius = 5;
this.ucTextBoxEx3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.ucTextBoxEx3.DecLength = 2;
this.ucTextBoxEx3.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxEx3.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx3.InputText = "手写键盘";
this.ucTextBoxEx3.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxEx3.IsFocusColor = true;
this.ucTextBoxEx3.IsRadius = true;
this.ucTextBoxEx3.IsShowClearBtn = true;
this.ucTextBoxEx3.IsShowKeyboard = true;
this.ucTextBoxEx3.IsShowRect = true;
this.ucTextBoxEx3.IsShowSearchBtn = false;
this.ucTextBoxEx3.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderHand;
this.ucTextBoxEx3.Location = new System.Drawing.Point(6, 223);
this.ucTextBoxEx3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxEx3.MaxValue = new decimal(new int[] {
1000000,
0,
0, 0,
0}); 0});
this.ucNumTextBox1.Name = "ucNumTextBox1"; this.ucTextBoxEx3.MinValue = new decimal(new int[] {
this.ucNumTextBox1.Num = new decimal(new int[] { 1000000,
1, 0,
0,
-2147483648});
this.ucTextBoxEx3.Name = "ucTextBoxEx3";
this.ucTextBoxEx3.Padding = new System.Windows.Forms.Padding(5);
this.ucTextBoxEx3.PromptColor = System.Drawing.Color.Gray;
this.ucTextBoxEx3.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx3.PromptText = "";
this.ucTextBoxEx3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucTextBoxEx3.RectWidth = 1;
this.ucTextBoxEx3.RegexPattern = "";
this.ucTextBoxEx3.Size = new System.Drawing.Size(195, 42);
this.ucTextBoxEx3.TabIndex = 2;
//
// ucTextBoxEx2
//
this.ucTextBoxEx2.BackColor = System.Drawing.Color.Transparent;
this.ucTextBoxEx2.ConerRadius = 5;
this.ucTextBoxEx2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.ucTextBoxEx2.DecLength = 2;
this.ucTextBoxEx2.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxEx2.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx2.InputText = "英文键盘";
this.ucTextBoxEx2.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxEx2.IsFocusColor = true;
this.ucTextBoxEx2.IsRadius = true;
this.ucTextBoxEx2.IsShowClearBtn = true;
this.ucTextBoxEx2.IsShowKeyboard = true;
this.ucTextBoxEx2.IsShowRect = true;
this.ucTextBoxEx2.IsShowSearchBtn = false;
this.ucTextBoxEx2.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN;
this.ucTextBoxEx2.Location = new System.Drawing.Point(6, 171);
this.ucTextBoxEx2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxEx2.MaxValue = new decimal(new int[] {
1000000,
0, 0,
0, 0,
0}); 0});
this.ucNumTextBox1.Padding = new System.Windows.Forms.Padding(2); this.ucTextBoxEx2.MinValue = new decimal(new int[] {
this.ucNumTextBox1.Size = new System.Drawing.Size(152, 44); 1000000,
this.ucNumTextBox1.TabIndex = 11; 0,
// 0,
// ucSplitLine_H1 -2147483648});
// this.ucTextBoxEx2.Name = "ucTextBoxEx2";
this.ucSplitLine_H1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232))))); this.ucTextBoxEx2.Padding = new System.Windows.Forms.Padding(5);
this.ucSplitLine_H1.Location = new System.Drawing.Point(727, 237); this.ucTextBoxEx2.PromptColor = System.Drawing.Color.Gray;
this.ucSplitLine_H1.Name = "ucSplitLine_H1"; this.ucTextBoxEx2.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucSplitLine_H1.Size = new System.Drawing.Size(100, 1); this.ucTextBoxEx2.PromptText = "";
this.ucSplitLine_H1.TabIndex = 12; this.ucTextBoxEx2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucSplitLine_H1.TabStop = false; this.ucTextBoxEx2.RectWidth = 1;
// this.ucTextBoxEx2.RegexPattern = "";
// ucSplitLine_V1 this.ucTextBoxEx2.Size = new System.Drawing.Size(195, 42);
// this.ucTextBoxEx2.TabIndex = 2;
this.ucSplitLine_V1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_V1.Location = new System.Drawing.Point(826, 294);
this.ucSplitLine_V1.Name = "ucSplitLine_V1";
this.ucSplitLine_V1.Size = new System.Drawing.Size(1, 100);
this.ucSplitLine_V1.TabIndex = 13;
this.ucSplitLine_V1.TabStop = false;
// //
// ucTextBoxEx1 // ucTextBoxEx1
// //
...@@ -429,7 +533,7 @@ ...@@ -429,7 +533,7 @@
this.ucTextBoxEx1.DecLength = 2; this.ucTextBoxEx1.DecLength = 2;
this.ucTextBoxEx1.FillColor = System.Drawing.Color.Empty; this.ucTextBoxEx1.FillColor = System.Drawing.Color.Empty;
this.ucTextBoxEx1.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.ucTextBoxEx1.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucTextBoxEx1.InputText = ""; this.ucTextBoxEx1.InputText = "数字键盘";
this.ucTextBoxEx1.InputType = HZH_Controls.TextInputType.NotControl; this.ucTextBoxEx1.InputType = HZH_Controls.TextInputType.NotControl;
this.ucTextBoxEx1.IsFocusColor = true; this.ucTextBoxEx1.IsFocusColor = true;
this.ucTextBoxEx1.IsRadius = true; this.ucTextBoxEx1.IsRadius = true;
...@@ -437,8 +541,8 @@ ...@@ -437,8 +541,8 @@
this.ucTextBoxEx1.IsShowKeyboard = true; this.ucTextBoxEx1.IsShowKeyboard = true;
this.ucTextBoxEx1.IsShowRect = true; this.ucTextBoxEx1.IsShowRect = true;
this.ucTextBoxEx1.IsShowSearchBtn = false; this.ucTextBoxEx1.IsShowSearchBtn = false;
this.ucTextBoxEx1.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderAll_EN; this.ucTextBoxEx1.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderNum;
this.ucTextBoxEx1.Location = new System.Drawing.Point(262, 544); this.ucTextBoxEx1.Location = new System.Drawing.Point(7, 119);
this.ucTextBoxEx1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.ucTextBoxEx1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucTextBoxEx1.MaxValue = new decimal(new int[] { this.ucTextBoxEx1.MaxValue = new decimal(new int[] {
1000000, 1000000,
...@@ -458,67 +562,368 @@ ...@@ -458,67 +562,368 @@
this.ucTextBoxEx1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); this.ucTextBoxEx1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucTextBoxEx1.RectWidth = 1; this.ucTextBoxEx1.RectWidth = 1;
this.ucTextBoxEx1.RegexPattern = ""; this.ucTextBoxEx1.RegexPattern = "";
this.ucTextBoxEx1.Size = new System.Drawing.Size(382, 42); this.ucTextBoxEx1.Size = new System.Drawing.Size(195, 42);
this.ucTextBoxEx1.TabIndex = 14; this.ucTextBoxEx1.TabIndex = 2;
//
// ucNumTextBox1
//
this.ucNumTextBox1.InputType = HZH_Controls.TextInputType.Number;
this.ucNumTextBox1.IsNumCanInput = true;
this.ucNumTextBox1.KeyBoardType = HZH_Controls.Controls.KeyBoardType.UCKeyBorderNum;
this.ucNumTextBox1.Location = new System.Drawing.Point(6, 57);
this.ucNumTextBox1.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.ucNumTextBox1.MinValue = new decimal(new int[] {
0,
0,
0,
0});
this.ucNumTextBox1.Name = "ucNumTextBox1";
this.ucNumTextBox1.Num = new decimal(new int[] {
1,
0,
0,
0});
this.ucNumTextBox1.Padding = new System.Windows.Forms.Padding(2);
this.ucNumTextBox1.Size = new System.Drawing.Size(152, 44);
this.ucNumTextBox1.TabIndex = 1;
//
// textBoxTransparent1
//
this.textBoxTransparent1.BackAlpha = 10;
this.textBoxTransparent1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.textBoxTransparent1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBoxTransparent1.DecLength = 2;
this.textBoxTransparent1.Font = new System.Drawing.Font("宋体", 13F);
this.textBoxTransparent1.InputType = HZH_Controls.TextInputType.NotControl;
this.textBoxTransparent1.Location = new System.Drawing.Point(6, 30);
this.textBoxTransparent1.MaxValue = new decimal(new int[] {
1000000,
0,
0,
0});
this.textBoxTransparent1.MinValue = new decimal(new int[] {
1000000,
0,
0,
-2147483648});
this.textBoxTransparent1.MyRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
this.textBoxTransparent1.Name = "textBoxTransparent1";
this.textBoxTransparent1.OldText = null;
this.textBoxTransparent1.PromptColor = System.Drawing.Color.Gray;
this.textBoxTransparent1.PromptFont = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.textBoxTransparent1.PromptText = "";
this.textBoxTransparent1.RegexPattern = "";
this.textBoxTransparent1.Size = new System.Drawing.Size(164, 20);
this.textBoxTransparent1.TabIndex = 0;
this.textBoxTransparent1.Text = "这是一个透明文本框";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.ucCheckBox4);
this.groupBox3.Controls.Add(this.ucCheckBox3);
this.groupBox3.Controls.Add(this.ucCheckBox2);
this.groupBox3.Controls.Add(this.ucCheckBox1);
this.groupBox3.Controls.Add(this.ucRadioButton4);
this.groupBox3.Controls.Add(this.ucRadioButton3);
this.groupBox3.Controls.Add(this.ucRadioButton2);
this.groupBox3.Controls.Add(this.ucRadioButton1);
this.groupBox3.Location = new System.Drawing.Point(232, 30);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(149, 327);
this.groupBox3.TabIndex = 1;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "单选/复选";
//
// ucCheckBox4
//
this.ucCheckBox4.BackColor = System.Drawing.Color.Transparent;
this.ucCheckBox4.Checked = false;
this.ucCheckBox4.Location = new System.Drawing.Point(17, 279);
this.ucCheckBox4.Name = "ucCheckBox4";
this.ucCheckBox4.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox4.Size = new System.Drawing.Size(126, 30);
this.ucCheckBox4.TabIndex = 1;
this.ucCheckBox4.TextValue = "复选框4";
//
// ucCheckBox3
//
this.ucCheckBox3.BackColor = System.Drawing.Color.Transparent;
this.ucCheckBox3.Checked = false;
this.ucCheckBox3.Location = new System.Drawing.Point(17, 242);
this.ucCheckBox3.Name = "ucCheckBox3";
this.ucCheckBox3.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox3.Size = new System.Drawing.Size(126, 30);
this.ucCheckBox3.TabIndex = 1;
this.ucCheckBox3.TextValue = "复选框3";
//
// ucCheckBox2
//
this.ucCheckBox2.BackColor = System.Drawing.Color.Transparent;
this.ucCheckBox2.Checked = true;
this.ucCheckBox2.Location = new System.Drawing.Point(17, 205);
this.ucCheckBox2.Name = "ucCheckBox2";
this.ucCheckBox2.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox2.Size = new System.Drawing.Size(126, 30);
this.ucCheckBox2.TabIndex = 1;
this.ucCheckBox2.TextValue = "复选框2";
//
// ucCheckBox1
//
this.ucCheckBox1.BackColor = System.Drawing.Color.Transparent;
this.ucCheckBox1.Checked = true;
this.ucCheckBox1.Location = new System.Drawing.Point(17, 168);
this.ucCheckBox1.Name = "ucCheckBox1";
this.ucCheckBox1.Padding = new System.Windows.Forms.Padding(1);
this.ucCheckBox1.Size = new System.Drawing.Size(126, 30);
this.ucCheckBox1.TabIndex = 1;
this.ucCheckBox1.TextValue = "复选框1";
//
// ucRadioButton4
//
this.ucRadioButton4.Checked = false;
this.ucRadioButton4.GroupName = null;
this.ucRadioButton4.Location = new System.Drawing.Point(17, 131);
this.ucRadioButton4.Name = "ucRadioButton4";
this.ucRadioButton4.Size = new System.Drawing.Size(126, 30);
this.ucRadioButton4.TabIndex = 0;
this.ucRadioButton4.TextValue = "单选按钮4";
//
// ucRadioButton3
//
this.ucRadioButton3.Checked = false;
this.ucRadioButton3.GroupName = null;
this.ucRadioButton3.Location = new System.Drawing.Point(17, 94);
this.ucRadioButton3.Name = "ucRadioButton3";
this.ucRadioButton3.Size = new System.Drawing.Size(126, 30);
this.ucRadioButton3.TabIndex = 0;
this.ucRadioButton3.TextValue = "单选按钮3";
//
// ucRadioButton2
//
this.ucRadioButton2.Checked = false;
this.ucRadioButton2.GroupName = null;
this.ucRadioButton2.Location = new System.Drawing.Point(17, 57);
this.ucRadioButton2.Name = "ucRadioButton2";
this.ucRadioButton2.Size = new System.Drawing.Size(126, 30);
this.ucRadioButton2.TabIndex = 0;
this.ucRadioButton2.TextValue = "单选按钮2";
//
// ucRadioButton1
//
this.ucRadioButton1.Checked = true;
this.ucRadioButton1.GroupName = null;
this.ucRadioButton1.Location = new System.Drawing.Point(17, 20);
this.ucRadioButton1.Name = "ucRadioButton1";
this.ucRadioButton1.Size = new System.Drawing.Size(126, 30);
this.ucRadioButton1.TabIndex = 0;
this.ucRadioButton1.TextValue = "单选按钮1";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.ucBtnImg1);
this.groupBox2.Controls.Add(this.ucBtnFillet1);
this.groupBox2.Controls.Add(this.ucBtnExt2);
this.groupBox2.Controls.Add(this.ucBtnExt1);
this.groupBox2.Location = new System.Drawing.Point(25, 30);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(187, 327);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "按钮";
//
// ucBtnImg1
//
this.ucBtnImg1.BackColor = System.Drawing.Color.White;
this.ucBtnImg1.BtnBackColor = System.Drawing.Color.White;
this.ucBtnImg1.BtnFont = new System.Drawing.Font("微软雅黑", 17F);
this.ucBtnImg1.BtnForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
this.ucBtnImg1.BtnText = "按钮4";
this.ucBtnImg1.ConerRadius = 10;
this.ucBtnImg1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnImg1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ucBtnImg1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnImg1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
this.ucBtnImg1.Image = ((System.Drawing.Image)(resources.GetObject("ucBtnImg1.Image")));
this.ucBtnImg1.IsRadius = true;
this.ucBtnImg1.IsShowRect = true;
this.ucBtnImg1.IsShowTips = false;
this.ucBtnImg1.Location = new System.Drawing.Point(23, 251);
this.ucBtnImg1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnImg1.Name = "ucBtnImg1";
this.ucBtnImg1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ucBtnImg1.RectWidth = 1;
this.ucBtnImg1.Size = new System.Drawing.Size(141, 60);
this.ucBtnImg1.TabIndex = 3;
this.ucBtnImg1.TabStop = false;
this.ucBtnImg1.TipsText = "";
//
// ucBtnFillet1
//
this.ucBtnFillet1.BackColor = System.Drawing.Color.Transparent;
this.ucBtnFillet1.BtnImage = ((System.Drawing.Image)(resources.GetObject("ucBtnFillet1.BtnImage")));
this.ucBtnFillet1.BtnText = "按钮3 ";
this.ucBtnFillet1.ConerRadius = 10;
this.ucBtnFillet1.FillColor = System.Drawing.Color.Transparent;
this.ucBtnFillet1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnFillet1.IsRadius = true;
this.ucBtnFillet1.IsShowRect = true;
this.ucBtnFillet1.Location = new System.Drawing.Point(23, 174);
this.ucBtnFillet1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucBtnFillet1.Name = "ucBtnFillet1";
this.ucBtnFillet1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucBtnFillet1.RectWidth = 1;
this.ucBtnFillet1.Size = new System.Drawing.Size(141, 58);
this.ucBtnFillet1.TabIndex = 2;
//
// ucBtnExt2
//
this.ucBtnExt2.BackColor = System.Drawing.Color.Transparent;
this.ucBtnExt2.BtnBackColor = System.Drawing.Color.Transparent;
this.ucBtnExt2.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt2.BtnForeColor = System.Drawing.Color.Black;
this.ucBtnExt2.BtnText = "按钮2";
this.ucBtnExt2.ConerRadius = 10;
this.ucBtnExt2.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt2.FillColor = System.Drawing.Color.White;
this.ucBtnExt2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt2.IsRadius = true;
this.ucBtnExt2.IsShowRect = true;
this.ucBtnExt2.IsShowTips = false;
this.ucBtnExt2.Location = new System.Drawing.Point(23, 94);
this.ucBtnExt2.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt2.Name = "ucBtnExt2";
this.ucBtnExt2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucBtnExt2.RectWidth = 1;
this.ucBtnExt2.Size = new System.Drawing.Size(141, 58);
this.ucBtnExt2.TabIndex = 1;
this.ucBtnExt2.TabStop = false;
this.ucBtnExt2.TipsText = "";
//
// ucBtnExt1
//
this.ucBtnExt1.BackColor = System.Drawing.Color.Transparent;
this.ucBtnExt1.BtnBackColor = System.Drawing.Color.Transparent;
this.ucBtnExt1.BtnFont = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.ucBtnExt1.BtnForeColor = System.Drawing.Color.White;
this.ucBtnExt1.BtnText = "按钮1";
this.ucBtnExt1.ConerRadius = 10;
this.ucBtnExt1.Cursor = System.Windows.Forms.Cursors.Hand;
this.ucBtnExt1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucBtnExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucBtnExt1.IsRadius = true;
this.ucBtnExt1.IsShowRect = true;
this.ucBtnExt1.IsShowTips = false;
this.ucBtnExt1.Location = new System.Drawing.Point(23, 21);
this.ucBtnExt1.Margin = new System.Windows.Forms.Padding(0);
this.ucBtnExt1.Name = "ucBtnExt1";
this.ucBtnExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.ucBtnExt1.RectWidth = 1;
this.ucBtnExt1.Size = new System.Drawing.Size(141, 58);
this.ucBtnExt1.TabIndex = 0;
this.ucBtnExt1.TabStop = false;
this.ucBtnExt1.TipsText = "";
//
// groupBox9
//
this.groupBox9.Controls.Add(this.ucHorizontalList1);
this.groupBox9.Location = new System.Drawing.Point(625, 380);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(485, 102);
this.groupBox9.TabIndex = 8;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "横向列表";
//
// ucHorizontalList1
//
this.ucHorizontalList1.DataSource = null;
this.ucHorizontalList1.IsAutoSelectFirst = true;
this.ucHorizontalList1.Location = new System.Drawing.Point(6, 25);
this.ucHorizontalList1.Name = "ucHorizontalList1";
this.ucHorizontalList1.SelectedItem = null;
this.ucHorizontalList1.Size = new System.Drawing.Size(473, 53);
this.ucHorizontalList1.TabIndex = 0;
// //
// Form1 // Form1
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1148, 660); this.ClientSize = new System.Drawing.Size(1176, 616);
this.Controls.Add(this.ucTextBoxEx1); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.ucSplitLine_V1); this.Controls.Add(this.button5);
this.Controls.Add(this.ucSplitLine_H1); this.Controls.Add(this.button4);
this.Controls.Add(this.ucNumTextBox1); this.Controls.Add(this.button3);
this.Controls.Add(this.ucListExt1); this.Controls.Add(this.button2);
this.Controls.Add(this.ucRadioButton3); this.Controls.Add(this.button8);
this.Controls.Add(this.ucRadioButton2); this.Controls.Add(this.button7);
this.Controls.Add(this.ucRadioButton1); this.Controls.Add(this.button6);
this.Controls.Add(this.ucHorizontalList1); this.Controls.Add(this.button1);
this.Controls.Add(this.ucDatePickerExt1);
this.Controls.Add(this.ucComboBox2);
this.Controls.Add(this.ucComboBox1);
this.Controls.Add(this.ucCheckBox3);
this.Controls.Add(this.ucCheckBox2);
this.Controls.Add(this.ucCheckBox1);
this.Controls.Add(this.treeViewEx1);
this.Controls.Add(this.textBoxTransparent1);
this.Controls.Add(this.processExt1);
this.Controls.Add(this.ucBtnImg1);
this.Controls.Add(this.ucBtnExt2);
this.Controls.Add(this.ucBtnExt1);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "Form1"; this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox7.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox9.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private HZH_Controls.Controls.UCBtnExt ucBtnExt1; private HZH_Controls.Controls.UCBtnExt ucBtnExt1;
private HZH_Controls.Controls.UCBtnExt ucBtnExt2;
private HZH_Controls.Controls.UCBtnImg ucBtnImg1;
private HZH_Controls.Controls.ProcessExt processExt1;
private HZH_Controls.Controls.TextBoxTransparent textBoxTransparent1;
private HZH_Controls.Controls.TreeViewEx treeViewEx1; private HZH_Controls.Controls.TreeViewEx treeViewEx1;
private HZH_Controls.Controls.UCCheckBox ucCheckBox1; private System.Windows.Forms.GroupBox groupBox4;
private HZH_Controls.Controls.UCCheckBox ucCheckBox2; private HZH_Controls.Controls.UCTextBoxEx ucTextBoxEx4;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxEx3;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxEx2;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxEx1;
private HZH_Controls.Controls.UCNumTextBox ucNumTextBox1;
private HZH_Controls.Controls.TextBoxTransparent textBoxTransparent1;
private System.Windows.Forms.GroupBox groupBox3;
private HZH_Controls.Controls.UCCheckBox ucCheckBox4;
private HZH_Controls.Controls.UCCheckBox ucCheckBox3; private HZH_Controls.Controls.UCCheckBox ucCheckBox3;
private HZH_Controls.Controls.UCComboBox ucComboBox1; private HZH_Controls.Controls.UCCheckBox ucCheckBox2;
private HZH_Controls.Controls.UCCheckBox ucCheckBox1;
private HZH_Controls.Controls.UCRadioButton ucRadioButton4;
private HZH_Controls.Controls.UCRadioButton ucRadioButton3;
private HZH_Controls.Controls.UCRadioButton ucRadioButton2;
private HZH_Controls.Controls.UCRadioButton ucRadioButton1;
private HZH_Controls.Controls.UCBtnImg ucBtnImg1;
private HZH_Controls.Controls.UCBtnFillet ucBtnFillet1;
private HZH_Controls.Controls.UCBtnExt ucBtnExt2;
private System.Windows.Forms.GroupBox groupBox6;
private HZH_Controls.Controls.UCComboBox ucComboBox2; private HZH_Controls.Controls.UCComboBox ucComboBox2;
private HZH_Controls.Controls.UCComboBox ucComboBox1;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.GroupBox groupBox7;
private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt3;
private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt2;
private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt1; private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt1;
private HZH_Controls.Controls.UCHorizontalList ucHorizontalList1; private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.Timer timer1;
private HZH_Controls.Controls.UCRadioButton ucRadioButton1;
private HZH_Controls.Controls.UCRadioButton ucRadioButton2;
private HZH_Controls.Controls.UCRadioButton ucRadioButton3;
private HZH_Controls.Controls.UCListExt ucListExt1; private HZH_Controls.Controls.UCListExt ucListExt1;
private HZH_Controls.Controls.UCNumTextBox ucNumTextBox1; private System.Windows.Forms.GroupBox groupBox9;
private HZH_Controls.Controls.UCSplitLine_H ucSplitLine_H1; private HZH_Controls.Controls.UCHorizontalList ucHorizontalList1;
private HZH_Controls.Controls.UCSplitLine_V ucSplitLine_V1;
private HZH_Controls.Controls.UCTextBoxEx ucTextBoxEx1;
} }
} }
...@@ -7,6 +7,9 @@ using System.Linq; ...@@ -7,6 +7,9 @@ using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using HZH_Controls.Controls; using HZH_Controls.Controls;
using HZH_Controls.Forms;
using HZH_Controls;
using System.Threading;
namespace Test namespace Test
{ {
...@@ -19,67 +22,118 @@ namespace Test ...@@ -19,67 +22,118 @@ namespace Test
private void Form1_Load(object sender, EventArgs e) private void Form1_Load(object sender, EventArgs e)
{ {
for (int i = 0; i < 10; i++) for (int i = 0; i < 5; i++)
{ {
TreeNode tr = new TreeNode("父节点" + i); TreeNode tn = new TreeNode(" 父节点" + i);
this.treeViewEx1.Nodes.Add(tr);
for (int j = 0; j < 5; j++) for (int j = 0; j < 5; j++)
{ {
tr.Nodes.Add(" 子节点" + j); tn.Nodes.Add(" 子节点" + j);
} }
this.treeViewEx1.Nodes.Add(tn);
} }
List<KeyValuePair<string, string>> lst = new List<KeyValuePair<string, string>>(); List<KeyValuePair<string, string>> lstCom = new List<KeyValuePair<string, string>>();
for (int i = 0; i < 10; i++) for (int i = 0; i < 5; i++)
{ {
lst.Add(new KeyValuePair<string, string>(i.ToString(), "元素" + i)); lstCom.Add(new KeyValuePair<string, string>(i.ToString(), "选项" + i));
} }
this.ucComboBox1.Source = lst; this.ucComboBox1.Source = lstCom;
this.ucComboBox2.Source = lstCom;
this.ucComboBox1.SelectedIndex = 1; this.ucComboBox1.SelectedIndex = 1;
this.ucComboBox2.Source = lst; this.ucComboBox2.SelectedIndex = 1;
this.ucComboBox2.SelectedIndex = 2;
this.ucHorizontalList1.DataSource = lst; List<ListEntity> lst = new List<ListEntity>();
for (int i = 0; i < 5; i++)
List<ListEntity> lstList = new List<ListEntity>();
for (int i = 0; i < 10; i++)
{ {
lstList.Add(new ListEntity() lst.Add(new ListEntity()
{ {
ID = i.ToString(), ID = i.ToString(),
ShowMoreBtn = false, Title = "选项" + i,
Source = i, ShowMoreBtn = true,
Title = "大标题" + i, Source = i
Title2 = "小标题" + i
}); });
} }
this.ucListExt1.SetList(lstList); this.ucListExt1.SetList(lst);
List<KeyValuePair<string, string>> lstHL = new List<KeyValuePair<string, string>>();
for (int i = 0; i < 30; i++)
{
lstHL.Add(new KeyValuePair<string, string>(i.ToString(), "选项" + i));
}
this.ucHorizontalList1.DataSource = lstHL;
} }
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
{ {
this.processExt1.Value++;
if (this.processExt1.Value == 100) }
this.processExt1.Value = 0;
private void button1_Click(object sender, EventArgs e)
{
if (FrmDialog.ShowDialog(this, "是否再显示一个没有取消按钮的提示框?", "模式窗体测试", true) == System.Windows.Forms.DialogResult.OK)
{
FrmDialog.ShowDialog(this, "这是一个没有取消按钮的提示框", "模式窗体测试");
}
}
private void button2_Click(object sender, EventArgs e)
{
FrmInputs frm = new FrmInputs("动态多输入窗体测试",
new string[] { "姓名", "电话", "身份证号", "住址" },
new Dictionary<string, HZH_Controls.TextInputType>() { { "电话", HZH_Controls.TextInputType.Regex }, { "身份证号", HZH_Controls.TextInputType.Regex } },
new Dictionary<string, string>() { { "电话", "^1\\d{10}$" }, { "身份证号", "^\\d{18}$" } },
new Dictionary<string, KeyBoardType>() { { "电话", KeyBoardType.UCKeyBorderNum }, { "身份证号", KeyBoardType.UCKeyBorderNum } },
new List<string>() { "姓名", "电话", "身份证号" });
frm.ShowDialog(this);
} }
private void treeViewEx1_AfterSelect(object sender, TreeViewEventArgs e) private void button4_Click(object sender, EventArgs e)
{ {
HZH_Controls.Forms.FrmTips.ShowTipsInfo(this, "你选中了" + e.Node.Text); FrmTips.ShowTipsError(this, "Error提示信息");
FrmTips.ShowTipsInfo(this, "Info提示信息");
FrmTips.ShowTipsSuccess(this, "Success提示信息");
FrmTips.ShowTipsWarning(this, "Warning提示信息");
} }
private void ucListExt1_ItemClick(UCListItemExt item) private void button3_Click(object sender, EventArgs e)
{ {
HZH_Controls.Forms.FrmTips.ShowTipsInfo(this, "你选中了" + item.Title); FrmTemp1Test frm = new FrmTemp1Test();
frm.ShowDialog(this);
}
private void button5_Click(object sender, EventArgs e)
{
ControlHelper.ThreadRunExt(this, () =>
{
Thread.Sleep(5000);
ControlHelper.ThreadInvokerControl(this, () =>
{
FrmTips.ShowTipsSuccess(this, "FrmWaiting测试");
});
}, null, this);
} }
private void ucComboBox2_SelectedChangedEvent(object sender, EventArgs e) private void button6_Click(object sender, EventArgs e)
{ {
HZH_Controls.Forms.FrmTips.ShowTipsInfo(this, "你选中了" + ucComboBox2.SelectedText); FrmOKCancel1Test frm = new FrmOKCancel1Test();
frm.ShowDialog(this);
}
private void button7_Click(object sender, EventArgs e)
{
FrmOKCancel2Test frm = new FrmOKCancel2Test();
frm.ShowDialog(this);
}
private void button8_Click(object sender, EventArgs e)
{
FrmWithTitleTest frm = new FrmWithTitleTest();
frm.ShowDialog(this);
} }
} }
} }
...@@ -117,15 +117,9 @@ ...@@ -117,15 +117,9 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>17, 17</value>
<value> </metadata>
iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABnSURBVDhPYyAV/IcCKJc48Pz5tf//AwLAGCpEGPw/cwau
iWiN6Jr+p6UR1jjYNc2cSQVNQD5UCjcY5JpAgCxNIICiEYRJScSDRzMoK0GlCINRzUAMzHJQKcIAlLWQ
NUOFiQMIzQH/AUt/OaDjNm1jAAAAAElFTkSuQmCC
</value>
</data>
<data name="treeViewEx1.LstTips" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="treeViewEx1.LstTips" mimetype="application/x-microsoft.net.object.binary.base64">
<value> <value>
AAEAAAD/////AQAAAAAAAAAMAgAAAPcBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u AAEAAAD/////AQAAAAAAAAAMAgAAAPcBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
...@@ -142,6 +136,7 @@ ...@@ -142,6 +136,7 @@
bGl0eUNvbXBhcmVyYDFbW1N5c3RlbS5TdHJpbmcAAAAAAwAAAAs= bGl0eUNvbXBhcmVyYDFbW1N5c3RlbS5TdHJpbmcAAAAAAwAAAAs=
</value> </value>
</data> </data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="treeViewEx1.NodeDownPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="treeViewEx1.NodeDownPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
...@@ -165,7 +160,41 @@ ...@@ -165,7 +160,41 @@
KfUq3QAAAABJRU5ErkJggg== KfUq3QAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>17, 17</value> <value>
</metadata> iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABnSURBVDhPYyAV/IcCKJc48Pz5tf//AwLAGCpEGPw/cwau
iWiN6Jr+p6UR1jjYNc2cSQVNQD5UCjcY5JpAgCxNIICiEYRJScSDRzMoK0GlCINRzUAMzHJQKcIAlLWQ
NUOFiQMIzQH/AUt/OaDjNm1jAAAAAElFTkSuQmCC
</value>
</data>
<data name="ucBtnFillet1.BtnImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6
JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH
4wEJAyklEWhQQwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wMS0wOVQwMzo0MTozNyswODowMLLG9nkA
AAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDEtMDlUMDM6NDE6MzcrMDg6MDDDm07FAAAAQ3RFWHRzb2Z0
d2FyZQAvdXNyL2xvY2FsL2ltYWdlbWFnaWNrL3NoYXJlL2RvYy9JbWFnZU1hZ2ljay03Ly9pbmRleC5o
dG1svbV5CgAAABh0RVh0VGh1bWI6OkRvY3VtZW50OjpQYWdlcwAxp/+7LwAAABh0RVh0VGh1bWI6Oklt
YWdlOjpIZWlnaHQAMTI4Q3xBgAAAABd0RVh0VGh1bWI6OkltYWdlOjpXaWR0aAAxMjjQjRHdAAAAGXRF
WHRUaHVtYjo6TWltZXR5cGUAaW1hZ2UvcG5nP7JWTgAAABd0RVh0VGh1bWI6Ok1UaW1lADE1NDY5NzY0
OTck8yxUAAAAEXRFWHRUaHVtYjo6U2l6ZQAxMDU0Qvxjyy8AAABidEVYdFRodW1iOjpVUkkAZmlsZTov
Ly9ob21lL3d3d3Jvb3QvbmV3c2l0ZS93d3cuZWFzeWljb24ubmV0L2Nkbi1pbWcuZWFzeWljb24uY24v
ZmlsZXMvMTE4LzExODIwNzkucG5nLz6vIgAAAxpJREFUaEPt2VtLFGEcBvAtMPAQdLhKDNE0kE06aRkG
BUHURV1LRgVRoJBB2EbeByEI0UXQ4ab6CNVFEUEnKPwAe/Kwzu44VhddeVz17XmGd5Zp91VndWYdZR74
wbLM/A87gyuzoSCbKQux1mX5OnnDlkGdtE2+Z/JtbEPWwjMYhhH5ugY2xAL8tF+AyMMlzCvhywwZd+2f
/hDkL8CrwdvJX1eBg1t+jXWGFmMtjfOxY+ls/ISYS7SLuXi7mI8f5wK6iB4K/0l14Nje0Mj4HfOcdYt9
cGnnkBE5Pzp++6mevj6ZydwUmt4ttEyXyKRviAntypShXXuuZbrPJY17O/LPL2nymlfAJfgMkyCwyH+S
ude9Ytjo5TEfoQMqIVerJLE3hHp4CdOAAYvCc3huHeRqeh5bs2b4CqrhivEdDoL3S9ia8JP/BqqBVoO1
WNO7BaziwHv+FagGWYvXwNreLGEVhsuwmnt+JazJ2u4vYBWF3eDGfb+UL7ALZGeXwoLSRZgCVXM38Cpc
ALOfa5EFt8AjUDV202PwZIEq4JeVqqmbPsF2kN1dCItBDcRB1dRNSagG2d2FsBg0QRpUTd2kwV6Q3V0I
i0EYdFA1dVOwQEFYDIIFHAoWKAiLQbCAQ8ECBWEx2MgLRKhkCySNCBaIuPP8iEUM7Woopd9qTuk9xuh4
j/ASemTSma6632Oda1+ABUhEj5Rn4239M4lT2enkaTHjEbM2eszH2wYWo0crrf6rinUyVMBDmF2ItYjS
aM3CAFRBbhbHsZ1kDT8HLFxKBUs4jjyBT5IfwHoMb+ES/VAOcjoH4cHA5/kaqAqXUhoaQE7nIDwYqmEQ
DNDXCXtzhnqQ0zkIDwb+RLQfDkDYmZawiB5uWo76vCWxN2co7ocRHlws/PkLDf59UpaY6GtMTNxvUutr
eD/9Yets4qSyxko8Db5BqRZ+ggH81rbjez9gD8izfBQOBXze/w5U/yLQWzCff/ouHEo6A6qnF7wKZ8E8
znexBpO4BD/tUUjBG+DwfLrnzwUYaziJt8o+qVy+Z/J17IOqBNl8CYX+AUe5g91MFxsmAAAAAElFTkSu
QmCC
</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
namespace Test
{
partial class FrmOKCancel1Test
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// FrmOKCancel1Test
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(427, 310);
this.Name = "FrmOKCancel1Test";
this.Text = "FrmOKCancelTest";
this.Title = "测试修改密码";
this.ResumeLayout(false);
}
#endregion
}
}
\ No newline at end of file \ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class FrmOKCancel1Test : HZH_Controls.Forms.FrmWithOKCancel1
{
public FrmOKCancel1Test()
{
InitializeComponent();
}
}
}
namespace Test
{
partial class FrmOKCancel2Test
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// FrmOKCancel2Test
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(427, 310);
this.Name = "FrmOKCancel2Test";
this.Text = "FrmOKCancel2Test";
this.Title = "资料修改";
this.ResumeLayout(false);
}
#endregion
}
}
\ No newline at end of file \ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class FrmOKCancel2Test : HZH_Controls.Forms.FrmWithOKCancel2
{
public FrmOKCancel2Test()
{
InitializeComponent();
}
}
}
namespace Test
{
partial class FrmTemp1Test
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.ucDataGridView1 = new HZH_Controls.Controls.UCDataGridView();
this.SuspendLayout();
//
// ucDataGridView1
//
this.ucDataGridView1.BackColor = System.Drawing.Color.White;
this.ucDataGridView1.Columns = null;
this.ucDataGridView1.DataSource = null;
this.ucDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucDataGridView1.HeadFont = new System.Drawing.Font("微软雅黑", 12F);
this.ucDataGridView1.HeadHeight = 40;
this.ucDataGridView1.HeadTextColor = System.Drawing.Color.Black;
this.ucDataGridView1.IsShowCheckBox = false;
this.ucDataGridView1.IsShowHead = true;
this.ucDataGridView1.Location = new System.Drawing.Point(0, 61);
this.ucDataGridView1.Name = "ucDataGridView1";
this.ucDataGridView1.RowHeight = 41;
this.ucDataGridView1.RowType = typeof(HZH_Controls.Controls.UCDataGridViewRow);
this.ucDataGridView1.Size = new System.Drawing.Size(679, 416);
this.ucDataGridView1.TabIndex = 3;
//
// FrmTemp1Test
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(679, 477);
this.Controls.Add(this.ucDataGridView1);
this.FrmTitle = "Temp1测试";
this.IsFullSize = false;
this.Name = "FrmTemp1Test";
this.Text = "FrmTemp1Test";
this.Load += new System.EventHandler(this.FrmTemp1Test_Load);
this.Controls.SetChildIndex(this.ucDataGridView1, 0);
this.ResumeLayout(false);
}
#endregion
private HZH_Controls.Controls.UCDataGridView ucDataGridView1;
}
}
\ No newline at end of file \ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HZH_Controls.Controls;
namespace Test
{
public partial class FrmTemp1Test : HZH_Controls.Forms.FrmTemp1
{
public FrmTemp1Test()
{
InitializeComponent();
}
private void FrmTemp1Test_Load(object sender, EventArgs e)
{
List<DataGridViewColumnEntity> lstCulumns = new List<DataGridViewColumnEntity>();
lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "ID", HeadText = "编号", Width = 70, WidthType = SizeType.Absolute });
lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Name", HeadText = "姓名", Width = 50, WidthType = SizeType.Percent });
lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Age", HeadText = "年龄", Width = 50, WidthType = SizeType.Percent });
this.ucDataGridView1.Columns = lstCulumns;
this.ucDataGridView1.IsShowCheckBox = true;
List<object> lstSource = new List<object>();
for (int i = 0; i < 10; i++)
{
TestModel model = new TestModel()
{
ID = i.ToString(),
Age = 3 * i,
Name = "姓名——" + i
};
lstSource.Add(model);
}
this.ucDataGridView1.DataSource = lstSource.ToArray();
this.ucDataGridView1.First();
}
}
public class TestModel
{
public string ID { get; set; }
public string Name { get; set; }
public int Age { get; set; }
}
}
namespace Test
{
partial class FrmWithTitleTest
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// FrmWithTitleTest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(427, 310);
this.Name = "FrmWithTitleTest";
this.Text = "FrmWithTitleTest";
this.Title = "单标题窗体测试";
this.ResumeLayout(false);
}
#endregion
}
}
\ No newline at end of file \ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class FrmWithTitleTest : HZH_Controls.Forms.FrmWithTitle
{
public FrmWithTitleTest()
{
InitializeComponent();
}
}
}
...@@ -15,7 +15,19 @@ namespace Test ...@@ -15,7 +15,19 @@ namespace Test
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.ApplicationExit += Application_ApplicationExit;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.Run(new Form1()); Application.Run(new Form1());
} }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
}
static void Application_ApplicationExit(object sender, EventArgs e)
{
}
} }
} }
...@@ -50,11 +50,47 @@ ...@@ -50,11 +50,47 @@
<Compile Include="Form1.Designer.cs"> <Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmOKCancel1Test.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmOKCancel1Test.Designer.cs">
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
</Compile>
<Compile Include="FrmOKCancel2Test.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmOKCancel2Test.Designer.cs">
<DependentUpon>FrmOKCancel2Test.cs</DependentUpon>
</Compile>
<Compile Include="FrmTemp1Test.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTemp1Test.Designer.cs">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</Compile>
<Compile Include="FrmWithTitleTest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmWithTitleTest.Designer.cs">
<DependentUpon>FrmWithTitleTest.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmOKCancel1Test.resx">
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmOKCancel2Test.resx">
<DependentUpon>FrmOKCancel2Test.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmTemp1Test.resx">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmWithTitleTest.resx">
<DependentUpon>FrmWithTitleTest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!