Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2721a706
由
HZH
编写于
2019-08-22 11:08:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Add listview
1 个父辈
cf260eb8
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
1309 行增加
和
255 行删除
HZH_Controls/HZH_Controls/Controls/List/IListViewItem.cs
HZH_Controls/HZH_Controls/Controls/List/UCListView.Designer.cs
HZH_Controls/HZH_Controls/Controls/List/UCListView.cs
HZH_Controls/HZH_Controls/Controls/List/UCListView.resx
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.Designer.cs
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.cs
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.resx
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/Form1.Designer.cs
HZH_Controls/Test/Form1.cs
HZH_Controls/Test/FrmTestListView.Designer.cs
HZH_Controls/Test/FrmTestListView.cs
HZH_Controls/Test/FrmTestListView.resx
HZH_Controls/Test/Test.csproj
HZH_Controls/HZH_Controls/Controls/List/IListViewItem.cs
0 → 100644
查看文件 @
2721a70
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
HZH_Controls.Controls
{
public
interface
IListViewItem
{
/// <summary>
/// 数据源
/// </summary>
object
DataSource
{
get
;
set
;
}
/// <summary>
/// 选中项事件
/// </summary>
event
EventHandler
SelectedItemEvent
;
/// <summary>
/// 选中处理,一般用以更改选中效果
/// </summary>
/// <param name="blnSelected">是否选中</param>
void
SetSelected
(
bool
blnSelected
);
}
}
HZH_Controls/HZH_Controls/Controls/List/UCListView.Designer.cs
0 → 100644
查看文件 @
2721a70
namespace
HZH_Controls.Controls
{
partial
class
UCListView
{
/// <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
.
panMain
=
new
System
.
Windows
.
Forms
.
FlowLayoutPanel
();
this
.
panPage
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
SuspendLayout
();
//
// panMain
//
this
.
panMain
.
AutoScroll
=
true
;
this
.
panMain
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panMain
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panMain
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
panMain
.
Name
=
"panMain"
;
this
.
panMain
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
panMain
.
Size
=
new
System
.
Drawing
.
Size
(
462
,
319
);
this
.
panMain
.
TabIndex
=
1
;
this
.
panMain
.
Resize
+=
new
System
.
EventHandler
(
this
.
panMain_Resize
);
//
// panPage
//
this
.
panPage
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Bottom
;
this
.
panPage
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
319
);
this
.
panPage
.
Name
=
"panPage"
;
this
.
panPage
.
Size
=
new
System
.
Drawing
.
Size
(
462
,
44
);
this
.
panPage
.
TabIndex
=
0
;
this
.
panPage
.
Visible
=
false
;
//
// UCListView
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Controls
.
Add
(
this
.
panMain
);
this
.
Controls
.
Add
(
this
.
panPage
);
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
Name
=
"UCListView"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
462
,
363
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
FlowLayoutPanel
panMain
;
private
System
.
Windows
.
Forms
.
Panel
panPage
;
}
}
HZH_Controls/HZH_Controls/Controls/List/UCListView.cs
0 → 100644
查看文件 @
2721a70
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
;
using
System.Collections
;
namespace
HZH_Controls.Controls
{
[
DefaultEvent
(
"SelectedItemEvent"
)]
public
partial
class
UCListView
:
UserControl
{
int
m_intCellWidth
=
130
;
//单元格宽度
int
m_intCellHeight
=
120
;
//单元格高度
private
Type
m_itemType
=
typeof
(
UCListViewItem
);
[
Description
(
"单元格类型,如果无法满足您的需求,你可以自定义单元格控件,并实现接口IListViewItem"
),
Category
(
"自定义"
)]
public
Type
ItemType
{
get
{
return
m_itemType
;
}
set
{
if
(!
typeof
(
IListViewItem
).
IsAssignableFrom
(
value
)
||
!
value
.
IsSubclassOf
(
typeof
(
Control
)))
throw
new
Exception
(
"单元格控件没有继承实现接口IListViewItem"
);
m_itemType
=
value
;
}
}
private
UCPagerControlBase
m_page
=
null
;
/// <summary>
/// 翻页控件
/// </summary>
[
Description
(
"翻页控件,如果UCPagerControl不满足你的需求,请自定义翻页控件并继承UCPagerControlBase"
),
Category
(
"自定义"
)]
public
UCPagerControlBase
Page
{
get
{
return
m_page
;
}
set
{
m_page
=
value
;
if
(
value
!=
null
)
{
if
(!
typeof
(
IPageControl
).
IsAssignableFrom
(
value
.
GetType
())
||
!
value
.
GetType
().
IsSubclassOf
(
typeof
(
UCPagerControlBase
)))
throw
new
Exception
(
"翻页控件没有继承UCPagerControlBase"
);
this
.
panMain
.
AutoScroll
=
false
;
panPage
.
Visible
=
true
;
this
.
Controls
.
SetChildIndex
(
panMain
,
0
);
m_page
.
ShowSourceChanged
+=
m_page_ShowSourceChanged
;
m_page
.
Dock
=
DockStyle
.
Fill
;
this
.
panPage
.
Controls
.
Clear
();
this
.
panPage
.
Controls
.
Add
(
m_page
);
GetCellCount
();
this
.
DataSource
=
m_page
.
GetCurrentSource
();
}
else
{
this
.
panMain
.
AutoScroll
=
true
;
m_page
=
null
;
panPage
.
Visible
=
false
;
}
}
}
private
object
m_dataSource
=
null
;
[
Description
(
"数据源,如果使用翻页控件,请使用翻页控件的DataSource"
),
Category
(
"自定义"
)]
public
object
DataSource
{
get
{
return
m_dataSource
;
}
set
{
if
(
value
==
null
)
return
;
if
(!
typeof
(
IList
).
IsAssignableFrom
(
value
.
GetType
()))
{
throw
new
Exception
(
"数据源不是有效的数据类型,列表"
);
}
m_dataSource
=
value
;
ReloadSource
();
}
}
int
m_intCellCount
=
0
;
//单元格总数
[
Description
(
"单元格总数"
),
Category
(
"自定义"
)]
public
int
CellCount
{
get
{
return
m_intCellCount
;
}
private
set
{
m_intCellCount
=
value
;
if
(
value
>
0
&&
m_page
!=
null
)
{
m_page
.
PageSize
=
m_intCellCount
;
m_page
.
Reload
();
}
}
}
private
List
<
object
>
m_selectedSource
=
new
List
<
object
>();
[
Description
(
"选中的数据"
),
Category
(
"自定义"
)]
public
List
<
object
>
SelectedSource
{
get
{
return
m_selectedSource
;
}
set
{
m_selectedSource
=
value
;
ReloadSource
();
}
}
private
bool
m_isMultiple
=
true
;
[
Description
(
"是否多选"
),
Category
(
"自定义"
)]
public
bool
IsMultiple
{
get
{
return
m_isMultiple
;
}
set
{
m_isMultiple
=
value
;
}
}
[
Description
(
"选中项事件"
),
Category
(
"自定义"
)]
public
event
EventHandler
SelectedItemEvent
;
public
delegate
void
ReloadGridStyleEventHandle
(
int
intCellCount
);
/// <summary>
/// 样式改变事件
/// </summary>
[
Description
(
"样式改变事件"
),
Category
(
"自定义"
)]
public
event
ReloadGridStyleEventHandle
ReloadGridStyleEvent
;
public
UCListView
()
{
InitializeComponent
();
}
void
m_page_ShowSourceChanged
(
object
currentSource
)
{
this
.
DataSource
=
currentSource
;
}
#
region
重新加载数据源
/// <summary>
/// 功能描述:重新加载数据源
/// 作 者:HZH
/// 创建日期:2019-06-27 16:47:32
/// 任务编号:POS
/// </summary>
public
void
ReloadSource
()
{
ControlHelper
.
FreezeControl
(
this
,
true
);
if
(
m_dataSource
==
null
||
((
IList
)
m_dataSource
).
Count
<=
0
)
{
for
(
int
i
=
this
.
panMain
.
Controls
.
Count
-
1
;
i
>=
0
;
i
--)
{
this
.
panMain
.
Controls
[
i
].
Visible
=
false
;
}
return
;
}
int
intCount
=
Math
.
Min
(((
IList
)
m_dataSource
).
Count
,
this
.
panMain
.
Controls
.
Count
);
for
(
int
i
=
0
;
i
<
intCount
;
i
++)
{
((
IListViewItem
)
this
.
panMain
.
Controls
[
i
]).
DataSource
=
((
IList
)
m_dataSource
)[
i
];
if
(
m_selectedSource
.
Contains
(((
IList
)
m_dataSource
)[
i
]))
{
((
IListViewItem
)
this
.
panMain
.
Controls
[
i
]).
SetSelected
(
true
);
}
else
{
((
IListViewItem
)
this
.
panMain
.
Controls
[
i
]).
SetSelected
(
false
);
}
this
.
panMain
.
Controls
[
i
].
Visible
=
true
;
}
for
(
int
i
=
this
.
panMain
.
Controls
.
Count
-
1
;
i
>=
intCount
;
i
--)
{
if
(
this
.
panMain
.
Controls
[
i
].
Visible
)
this
.
panMain
.
Controls
[
i
].
Visible
=
false
;
}
ControlHelper
.
FreezeControl
(
this
,
false
);
}
#
endregion
#
region
刷新表格
/// <summary>
/// 功能描述:刷新表格样式
/// 作 者:HZH
/// 创建日期:2019-06-27 16:35:25
/// 任务编号:POS
/// </summary>
public
void
ReloadGridStyle
()
{
Form
frmMain
=
this
.
FindForm
();
if
(
frmMain
!=
null
&&
!
frmMain
.
IsDisposed
&&
frmMain
.
Visible
&&
this
.
Visible
)
{
GetCellCount
();
try
{
ControlHelper
.
FreezeControl
(
this
,
true
);
if
(
this
.
panMain
.
Controls
.
Count
<
m_intCellCount
)
{
int
intControlsCount
=
this
.
panMain
.
Controls
.
Count
;
for
(
int
i
=
0
;
i
<
m_intCellCount
-
intControlsCount
;
i
++)
{
Control
uc
=
(
Control
)
Activator
.
CreateInstance
(
m_itemType
);
uc
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
,
5
,
5
,
5
);
(
uc
as
IListViewItem
).
SelectedItemEvent
+=
UCListView_SelectedItemEvent
;
uc
.
Visible
=
false
;
this
.
panMain
.
Controls
.
Add
(
uc
);
}
}
else
if
(
this
.
panMain
.
Controls
.
Count
>
m_intCellCount
)
{
int
intControlsCount
=
this
.
panMain
.
Controls
.
Count
;
for
(
int
i
=
intControlsCount
-
1
;
i
>
m_intCellCount
-
1
;
i
--)
{
this
.
panMain
.
Controls
.
RemoveAt
(
i
);
}
}
foreach
(
Control
item
in
this
.
panMain
.
Controls
)
{
item
.
Size
=
new
Size
(
m_intCellWidth
,
m_intCellHeight
);
}
}
finally
{
ControlHelper
.
FreezeControl
(
this
,
false
);
}
if
(
ReloadGridStyleEvent
!=
null
)
{
ReloadGridStyleEvent
(
m_intCellCount
);
}
}
}
void
UCListView_SelectedItemEvent
(
object
sender
,
EventArgs
e
)
{
var
selectedItem
=
sender
as
IListViewItem
;
if
(
m_selectedSource
.
Contains
(
selectedItem
.
DataSource
))
{
m_selectedSource
.
Remove
(
selectedItem
.
DataSource
);
selectedItem
.
SetSelected
(
false
);
}
else
{
if
(
m_isMultiple
)
{
m_selectedSource
.
Add
(
selectedItem
.
DataSource
);
selectedItem
.
SetSelected
(
true
);
}
else
{
if
(
m_selectedSource
.
Count
>
0
)
{
int
intCount
=
Math
.
Min
(((
IList
)
m_dataSource
).
Count
,
this
.
panMain
.
Controls
.
Count
);
for
(
int
i
=
0
;
i
<
intCount
;
i
++)
{
var
item
=
((
IListViewItem
)
this
.
panMain
.
Controls
[
i
]);
if
(
m_selectedSource
.
Contains
(
item
.
DataSource
))
{
item
.
SetSelected
(
false
);
break
;
}
}
}
m_selectedSource
=
new
List
<
object
>()
{
selectedItem
.
DataSource
};
selectedItem
.
SetSelected
(
true
);
}
}
if
(
SelectedItemEvent
!=
null
)
{
SelectedItemEvent
(
sender
,
e
);
}
}
#
endregion
#
region
获取
cell
总数
/// <summary>
/// 功能描述:获取cell总数
/// 作 者:HZH
/// 创建日期:2019-06-27 16:28:58
/// 任务编号:POS
/// </summary>
private
void
GetCellCount
()
{
if
(
this
.
panMain
.
Width
==
0
)
return
;
Control
item
=
(
Control
)
Activator
.
CreateInstance
(
m_itemType
);
int
intXCount
=
(
this
.
panMain
.
Width
-
10
)
/
(
item
.
Width
+
10
);
m_intCellWidth
=
item
.
Width
+
((
this
.
panMain
.
Width
-
10
)
%
(
item
.
Width
+
10
))
/
intXCount
;
int
intYCount
=
(
this
.
panMain
.
Height
-
10
)
/
(
item
.
Height
+
10
);
m_intCellHeight
=
item
.
Height
+
((
this
.
panMain
.
Height
-
10
)
%
(
item
.
Height
+
10
))
/
intYCount
;
CellCount
=
intXCount
*
intYCount
;
}
#
endregion
private
void
panMain_Resize
(
object
sender
,
EventArgs
e
)
{
ReloadGridStyle
();
}
}
}
HZH_Controls/HZH_Controls/Controls/List/UCListView.resx
0 → 100644
查看文件 @
2721a70
<?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
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.Designer.cs
0 → 100644
查看文件 @
2721a70
namespace
HZH_Controls.Controls
{
partial
class
UCListViewItem
{
/// <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
.
lblTitle
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
SuspendLayout
();
//
// lblTitle
//
this
.
lblTitle
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
lblTitle
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
lblTitle
.
Name
=
"lblTitle"
;
this
.
lblTitle
.
Size
=
new
System
.
Drawing
.
Size
(
107
,
96
);
this
.
lblTitle
.
TabIndex
=
0
;
this
.
lblTitle
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// UCListViewItem
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
Controls
.
Add
(
this
.
lblTitle
);
this
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
IsRadius
=
true
;
this
.
IsShowRect
=
true
;
this
.
Name
=
"UCListViewItem"
;
this
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
Size
=
new
System
.
Drawing
.
Size
(
107
,
96
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
Label
lblTitle
;
}
}
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.cs
0 → 100644
查看文件 @
2721a70
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
{
[
ToolboxItem
(
false
)]
public
partial
class
UCListViewItem
:
UCControlBase
,
IListViewItem
{
private
object
m_dataSource
;
public
object
DataSource
{
get
{
return
m_dataSource
;
}
set
{
m_dataSource
=
value
;
lblTitle
.
Text
=
value
.
ToString
();
}
}
public
event
EventHandler
SelectedItemEvent
;
public
UCListViewItem
()
{
InitializeComponent
();
lblTitle
.
MouseDown
+=
lblTitle_MouseDown
;
}
void
lblTitle_MouseDown
(
object
sender
,
MouseEventArgs
e
)
{
if
(
SelectedItemEvent
!=
null
)
{
SelectedItemEvent
(
this
,
e
);
}
}
public
void
SetSelected
(
bool
blnSelected
)
{
if
(
blnSelected
)
this
.
FillColor
=
Color
.
FromArgb
(
255
,
247
,
245
);
else
this
.
FillColor
=
Color
.
White
;
this
.
Refresh
();
}
}
}
HZH_Controls/HZH_Controls/Controls/List/UCListViewItem.resx
0 → 100644
查看文件 @
2721a70
<?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
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
2721a70
...
...
@@ -65,8 +65,21 @@
<Compile Include="Controls\DataGridView\UCDataGridViewRow.Designer.cs">
<DependentUpon>UCDataGridViewRow.cs</DependentUpon>
</Compile>
<Compile Include="Controls\List\IListViewItem.cs" />
<Compile Include="Controls\List\IPageControl.cs" />
<Compile Include="Controls\List\PageControlEventHandler.cs" />
<Compile Include="Controls\List\UCListView.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\List\UCListView.Designer.cs">
<DependentUpon>UCListView.cs</DependentUpon>
</Compile>
<Compile Include="Controls\List\UCListViewItem.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\List\UCListViewItem.Designer.cs">
<DependentUpon>UCListViewItem.cs</DependentUpon>
</Compile>
<Compile Include="Controls\List\UCPagerControl.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -425,6 +438,12 @@
<EmbeddedResource Include="Controls\List\UCListItemExt.resx">
<DependentUpon>UCListItemExt.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\List\UCListView.resx">
<DependentUpon>UCListView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\List\UCListViewItem.resx">
<DependentUpon>UCListViewItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\List\UCPagerControl.resx">
<DependentUpon>UCPagerControl.cs</DependentUpon>
</EmbeddedResource>
...
...
HZH_Controls/Test/Form1.Designer.cs
查看文件 @
2721a70
...
...
@@ -41,39 +41,26 @@
this
.
button8
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox9
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox8
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
button9
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox10
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox11
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox12
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox13
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucSplitLine_V1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_V
();
this
.
ucSplitLine_H1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_H
();
this
.
processExt1
=
new
HZH_Controls
.
Controls
.
UCProcessExt
();
this
.
ucBtnsGroup2
=
new
HZH_Controls
.
Controls
.
UCBtnsGroup
();
this
.
ucBtnsGroup1
=
new
HZH_Controls
.
Controls
.
UCBtnsGroup
();
this
.
ucPagerControl21
=
new
HZH_Controls
.
Controls
.
UCPagerControl2
();
this
.
ucMenu1
=
new
HZH_Controls
.
Controls
.
UCMenu
();
this
.
ucHorizontalList1
=
new
HZH_Controls
.
Controls
.
UCHorizontalList
();
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
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
treeViewEx1
=
new
HZH_Controls
.
Controls
.
TreeViewEx
();
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
.
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
();
...
...
@@ -82,10 +69,24 @@
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
.
button9
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox10
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucMenu1
=
new
HZH_Controls
.
Controls
.
UCMenu
();
this
.
groupBox11
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucPagerControl21
=
new
HZH_Controls
.
Controls
.
UCPagerControl2
();
this
.
groupBox12
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucBtnsGroup1
=
new
HZH_Controls
.
Controls
.
UCBtnsGroup
();
this
.
groupBox13
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucBtnsGroup2
=
new
HZH_Controls
.
Controls
.
UCBtnsGroup
();
this
.
ucSplitLine_V1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_V
();
this
.
ucSplitLine_H1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_H
();
this
.
processExt1
=
new
HZH_Controls
.
Controls
.
UCProcessExt
();
this
.
button10
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox9
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
...
...
@@ -108,7 +109,7 @@
//
// button1
//
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
4
4
,
34
);
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
4
3
,
12
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button1
.
TabIndex
=
0
;
...
...
@@ -118,7 +119,7 @@
//
// button2
//
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
14
4
,
34
);
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
14
3
,
12
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button2
.
TabIndex
=
0
;
...
...
@@ -128,7 +129,7 @@
//
// button3
//
this
.
button3
.
Location
=
new
System
.
Drawing
.
Point
(
35
1
,
34
);
this
.
button3
.
Location
=
new
System
.
Drawing
.
Point
(
35
0
,
12
);
this
.
button3
.
Name
=
"button3"
;
this
.
button3
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button3
.
TabIndex
=
0
;
...
...
@@ -138,7 +139,7 @@
//
// button4
//
this
.
button4
.
Location
=
new
System
.
Drawing
.
Point
(
25
1
,
34
);
this
.
button4
.
Location
=
new
System
.
Drawing
.
Point
(
25
0
,
12
);
this
.
button4
.
Name
=
"button4"
;
this
.
button4
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button4
.
TabIndex
=
0
;
...
...
@@ -148,7 +149,7 @@
//
// button5
//
this
.
button5
.
Location
=
new
System
.
Drawing
.
Point
(
44
1
,
34
);
this
.
button5
.
Location
=
new
System
.
Drawing
.
Point
(
44
0
,
12
);
this
.
button5
.
Name
=
"button5"
;
this
.
button5
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button5
.
TabIndex
=
0
;
...
...
@@ -158,7 +159,7 @@
//
// button6
//
this
.
button6
.
Location
=
new
System
.
Drawing
.
Point
(
53
7
,
34
);
this
.
button6
.
Location
=
new
System
.
Drawing
.
Point
(
53
6
,
12
);
this
.
button6
.
Name
=
"button6"
;
this
.
button6
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
button6
.
TabIndex
=
0
;
...
...
@@ -168,7 +169,7 @@
//
// button7
//
this
.
button7
.
Location
=
new
System
.
Drawing
.
Point
(
6
90
,
34
);
this
.
button7
.
Location
=
new
System
.
Drawing
.
Point
(
6
89
,
12
);
this
.
button7
.
Name
=
"button7"
;
this
.
button7
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
button7
.
TabIndex
=
0
;
...
...
@@ -178,7 +179,7 @@
//
// button8
//
this
.
button8
.
Location
=
new
System
.
Drawing
.
Point
(
83
3
,
34
);
this
.
button8
.
Location
=
new
System
.
Drawing
.
Point
(
83
2
,
12
);
this
.
button8
.
Name
=
"button8"
;
this
.
button8
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
button8
.
TabIndex
=
0
;
...
...
@@ -213,6 +214,16 @@
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
;
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt3
);
...
...
@@ -225,234 +236,6 @@
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"日历"
;
//
// groupBox6
//
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox2
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox1
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
25
,
363
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
187
,
119
);
this
.
groupBox6
.
TabIndex
=
6
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"下拉列表"
;
//
// groupBox8
//
this
.
groupBox8
.
Controls
.
Add
(
this
.
ucListExt1
);
this
.
groupBox8
.
Location
=
new
System
.
Drawing
.
Point
(
876
,
30
);
this
.
groupBox8
.
Name
=
"groupBox8"
;
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
324
);
this
.
groupBox8
.
TabIndex
=
4
;
this
.
groupBox8
.
TabStop
=
false
;
this
.
groupBox8
.
Text
=
"列表"
;
//
// groupBox5
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
treeViewEx1
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
625
,
30
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
327
);
this
.
groupBox5
.
TabIndex
=
4
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"树"
;
//
// 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
=
"文本框"
;
//
// 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
=
"单选/复选"
;
//
// 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
=
"按钮"
;
//
// button9
//
this
.
button9
.
Location
=
new
System
.
Drawing
.
Point
(
964
,
34
);
this
.
button9
.
Name
=
"button9"
;
this
.
button9
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
button9
.
TabIndex
=
0
;
this
.
button9
.
Text
=
"更多控件"
;
this
.
button9
.
UseVisualStyleBackColor
=
true
;
this
.
button9
.
Click
+=
new
System
.
EventHandler
(
this
.
button9_Click
);
//
// groupBox10
//
this
.
groupBox10
.
Controls
.
Add
(
this
.
ucMenu1
);
this
.
groupBox10
.
Location
=
new
System
.
Drawing
.
Point
(
1162
,
88
);
this
.
groupBox10
.
Name
=
"groupBox10"
;
this
.
groupBox10
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
490
);
this
.
groupBox10
.
TabIndex
=
3
;
this
.
groupBox10
.
TabStop
=
false
;
this
.
groupBox10
.
Text
=
"导航"
;
//
// groupBox11
//
this
.
groupBox11
.
Controls
.
Add
(
this
.
ucPagerControl21
);
this
.
groupBox11
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
584
);
this
.
groupBox11
.
Name
=
"groupBox11"
;
this
.
groupBox11
.
Size
=
new
System
.
Drawing
.
Size
(
715
,
61
);
this
.
groupBox11
.
TabIndex
=
5
;
this
.
groupBox11
.
TabStop
=
false
;
this
.
groupBox11
.
Text
=
"分页控件"
;
//
// groupBox12
//
this
.
groupBox12
.
Controls
.
Add
(
this
.
ucBtnsGroup1
);
this
.
groupBox12
.
Location
=
new
System
.
Drawing
.
Point
(
749
,
584
);
this
.
groupBox12
.
Name
=
"groupBox12"
;
this
.
groupBox12
.
Size
=
new
System
.
Drawing
.
Size
(
221
,
68
);
this
.
groupBox12
.
TabIndex
=
6
;
this
.
groupBox12
.
TabStop
=
false
;
this
.
groupBox12
.
Text
=
"单选按钮组"
;
//
// groupBox13
//
this
.
groupBox13
.
Controls
.
Add
(
this
.
ucBtnsGroup2
);
this
.
groupBox13
.
Location
=
new
System
.
Drawing
.
Point
(
992
,
584
);
this
.
groupBox13
.
Name
=
"groupBox13"
;
this
.
groupBox13
.
Size
=
new
System
.
Drawing
.
Size
(
367
,
68
);
this
.
groupBox13
.
TabIndex
=
6
;
this
.
groupBox13
.
TabStop
=
false
;
this
.
groupBox13
.
Text
=
"多选按钮组"
;
//
// ucSplitLine_V1
//
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
(
1149
,
12
);
this
.
ucSplitLine_V1
.
Name
=
"ucSplitLine_V1"
;
this
.
ucSplitLine_V1
.
Size
=
new
System
.
Drawing
.
Size
(
1
,
100
);
this
.
ucSplitLine_V1
.
TabIndex
=
9
;
this
.
ucSplitLine_V1
.
TabStop
=
false
;
//
// ucSplitLine_H1
//
this
.
ucSplitLine_H1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucSplitLine_H1
.
Location
=
new
System
.
Drawing
.
Point
(
1177
,
22
);
this
.
ucSplitLine_H1
.
Name
=
"ucSplitLine_H1"
;
this
.
ucSplitLine_H1
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
1
);
this
.
ucSplitLine_H1
.
TabIndex
=
8
;
this
.
ucSplitLine_H1
.
TabStop
=
false
;
//
// processExt1
//
this
.
processExt1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
processExt1
.
ConerRadius
=
5
;
this
.
processExt1
.
EnabledTheme
=
false
;
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
(
22
,
657
);
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
(
291
,
22
);
this
.
processExt1
.
TabIndex
=
7
;
this
.
processExt1
.
Value
=
0
;
//
// ucBtnsGroup2
//
this
.
ucBtnsGroup2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucBtnsGroup2
.
DataSource
=
((
System
.
Collections
.
Generic
.
Dictionary
<
string
,
string
>)(
resources
.
GetObject
(
"ucBtnsGroup2.DataSource"
)));
this
.
ucBtnsGroup2
.
IsMultiple
=
false
;
this
.
ucBtnsGroup2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
ucBtnsGroup2
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
50
);
this
.
ucBtnsGroup2
.
Name
=
"ucBtnsGroup2"
;
this
.
ucBtnsGroup2
.
SelectItem
=
((
System
.
Collections
.
Generic
.
List
<
string
>)(
resources
.
GetObject
(
"ucBtnsGroup2.SelectItem"
)));
this
.
ucBtnsGroup2
.
Size
=
new
System
.
Drawing
.
Size
(
355
,
50
);
this
.
ucBtnsGroup2
.
TabIndex
=
0
;
//
// ucBtnsGroup1
//
this
.
ucBtnsGroup1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucBtnsGroup1
.
DataSource
=
((
System
.
Collections
.
Generic
.
Dictionary
<
string
,
string
>)(
resources
.
GetObject
(
"ucBtnsGroup1.DataSource"
)));
this
.
ucBtnsGroup1
.
IsMultiple
=
false
;
this
.
ucBtnsGroup1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
ucBtnsGroup1
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
50
);
this
.
ucBtnsGroup1
.
Name
=
"ucBtnsGroup1"
;
this
.
ucBtnsGroup1
.
SelectItem
=
((
System
.
Collections
.
Generic
.
List
<
string
>)(
resources
.
GetObject
(
"ucBtnsGroup1.SelectItem"
)));
this
.
ucBtnsGroup1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
50
);
this
.
ucBtnsGroup1
.
TabIndex
=
0
;
//
// ucPagerControl21
//
this
.
ucPagerControl21
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucPagerControl21
.
DataSource
=
((
System
.
Collections
.
Generic
.
List
<
object
>)(
resources
.
GetObject
(
"ucPagerControl21.DataSource"
)));
this
.
ucPagerControl21
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucPagerControl21
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
ucPagerControl21
.
Name
=
"ucPagerControl21"
;
this
.
ucPagerControl21
.
PageCount
=
0
;
this
.
ucPagerControl21
.
PageIndex
=
1
;
this
.
ucPagerControl21
.
PageSize
=
0
;
this
.
ucPagerControl21
.
Size
=
new
System
.
Drawing
.
Size
(
709
,
41
);
this
.
ucPagerControl21
.
StartIndex
=
0
;
this
.
ucPagerControl21
.
TabIndex
=
4
;
//
// ucMenu1
//
this
.
ucMenu1
.
AutoScroll
=
true
;
this
.
ucMenu1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
39
)))));
this
.
ucMenu1
.
ChildrenItemStyles
=
null
;
this
.
ucMenu1
.
ChildrenItemType
=
typeof
(
HZH_Controls
.
Controls
.
UCMenuChildrenItem
);
this
.
ucMenu1
.
DataSource
=
null
;
this
.
ucMenu1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucMenu1
.
IsShowFirstItem
=
true
;
this
.
ucMenu1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
ucMenu1
.
MenuStyle
=
HZH_Controls
.
Controls
.
MenuStyle
.
Fill
;
this
.
ucMenu1
.
Name
=
"ucMenu1"
;
this
.
ucMenu1
.
ParentItemStyles
=
null
;
this
.
ucMenu1
.
ParentItemType
=
typeof
(
HZH_Controls
.
Controls
.
UCMenuParentItem
);
this
.
ucMenu1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
470
);
this
.
ucMenu1
.
TabIndex
=
0
;
//
// 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
;
//
// ucDatePickerExt3
//
this
.
ucDatePickerExt3
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
...
...
@@ -516,6 +299,17 @@
this
.
ucDatePickerExt1
.
TimeFontSize
=
20
;
this
.
ucDatePickerExt1
.
TimeType
=
HZH_Controls
.
Controls
.
DateTimePickerType
.
DateTime
;
//
// groupBox6
//
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox2
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox1
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
25
,
363
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
187
,
119
);
this
.
groupBox6
.
TabIndex
=
6
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"下拉列表"
;
//
// ucComboBox2
//
this
.
ucComboBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
...
...
@@ -566,6 +360,16 @@
this
.
ucComboBox1
.
TabIndex
=
5
;
this
.
ucComboBox1
.
TextValue
=
null
;
//
// groupBox8
//
this
.
groupBox8
.
Controls
.
Add
(
this
.
ucListExt1
);
this
.
groupBox8
.
Location
=
new
System
.
Drawing
.
Point
(
876
,
30
);
this
.
groupBox8
.
Name
=
"groupBox8"
;
this
.
groupBox8
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
324
);
this
.
groupBox8
.
TabIndex
=
4
;
this
.
groupBox8
.
TabStop
=
false
;
this
.
groupBox8
.
Text
=
"列表"
;
//
// ucListExt1
//
this
.
ucListExt1
.
AutoScroll
=
true
;
...
...
@@ -586,6 +390,16 @@
this
.
ucListExt1
.
Title2Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
14F
);
this
.
ucListExt1
.
TitleFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
);
//
// groupBox5
//
this
.
groupBox5
.
Controls
.
Add
(
this
.
treeViewEx1
);
this
.
groupBox5
.
Location
=
new
System
.
Drawing
.
Point
(
625
,
30
);
this
.
groupBox5
.
Name
=
"groupBox5"
;
this
.
groupBox5
.
Size
=
new
System
.
Drawing
.
Size
(
240
,
327
);
this
.
groupBox5
.
TabIndex
=
4
;
this
.
groupBox5
.
TabStop
=
false
;
this
.
groupBox5
.
Text
=
"树"
;
//
// treeViewEx1
//
this
.
treeViewEx1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
...
...
@@ -618,6 +432,21 @@
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
;
...
...
@@ -838,6 +667,23 @@
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
;
...
...
@@ -922,6 +768,19 @@
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
;
...
...
@@ -1020,6 +879,158 @@
this
.
ucBtnExt1
.
TabStop
=
false
;
this
.
ucBtnExt1
.
TipsText
=
""
;
//
// button9
//
this
.
button9
.
Location
=
new
System
.
Drawing
.
Point
(
963
,
12
);
this
.
button9
.
Name
=
"button9"
;
this
.
button9
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
23
);
this
.
button9
.
TabIndex
=
0
;
this
.
button9
.
Text
=
"更多控件"
;
this
.
button9
.
UseVisualStyleBackColor
=
true
;
this
.
button9
.
Click
+=
new
System
.
EventHandler
(
this
.
button9_Click
);
//
// groupBox10
//
this
.
groupBox10
.
Controls
.
Add
(
this
.
ucMenu1
);
this
.
groupBox10
.
Location
=
new
System
.
Drawing
.
Point
(
1162
,
88
);
this
.
groupBox10
.
Name
=
"groupBox10"
;
this
.
groupBox10
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
490
);
this
.
groupBox10
.
TabIndex
=
3
;
this
.
groupBox10
.
TabStop
=
false
;
this
.
groupBox10
.
Text
=
"导航"
;
//
// ucMenu1
//
this
.
ucMenu1
.
AutoScroll
=
true
;
this
.
ucMenu1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
39
)))));
this
.
ucMenu1
.
ChildrenItemStyles
=
null
;
this
.
ucMenu1
.
ChildrenItemType
=
typeof
(
HZH_Controls
.
Controls
.
UCMenuChildrenItem
);
this
.
ucMenu1
.
DataSource
=
null
;
this
.
ucMenu1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucMenu1
.
IsShowFirstItem
=
true
;
this
.
ucMenu1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
ucMenu1
.
MenuStyle
=
HZH_Controls
.
Controls
.
MenuStyle
.
Fill
;
this
.
ucMenu1
.
Name
=
"ucMenu1"
;
this
.
ucMenu1
.
ParentItemStyles
=
null
;
this
.
ucMenu1
.
ParentItemType
=
typeof
(
HZH_Controls
.
Controls
.
UCMenuParentItem
);
this
.
ucMenu1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
470
);
this
.
ucMenu1
.
TabIndex
=
0
;
//
// groupBox11
//
this
.
groupBox11
.
Controls
.
Add
(
this
.
ucPagerControl21
);
this
.
groupBox11
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
584
);
this
.
groupBox11
.
Name
=
"groupBox11"
;
this
.
groupBox11
.
Size
=
new
System
.
Drawing
.
Size
(
715
,
61
);
this
.
groupBox11
.
TabIndex
=
5
;
this
.
groupBox11
.
TabStop
=
false
;
this
.
groupBox11
.
Text
=
"分页控件"
;
//
// ucPagerControl21
//
this
.
ucPagerControl21
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucPagerControl21
.
DataSource
=
((
System
.
Collections
.
Generic
.
List
<
object
>)(
resources
.
GetObject
(
"ucPagerControl21.DataSource"
)));
this
.
ucPagerControl21
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucPagerControl21
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
17
);
this
.
ucPagerControl21
.
Name
=
"ucPagerControl21"
;
this
.
ucPagerControl21
.
PageCount
=
0
;
this
.
ucPagerControl21
.
PageIndex
=
1
;
this
.
ucPagerControl21
.
PageSize
=
0
;
this
.
ucPagerControl21
.
Size
=
new
System
.
Drawing
.
Size
(
709
,
41
);
this
.
ucPagerControl21
.
StartIndex
=
0
;
this
.
ucPagerControl21
.
TabIndex
=
4
;
//
// groupBox12
//
this
.
groupBox12
.
Controls
.
Add
(
this
.
ucBtnsGroup1
);
this
.
groupBox12
.
Location
=
new
System
.
Drawing
.
Point
(
749
,
584
);
this
.
groupBox12
.
Name
=
"groupBox12"
;
this
.
groupBox12
.
Size
=
new
System
.
Drawing
.
Size
(
221
,
68
);
this
.
groupBox12
.
TabIndex
=
6
;
this
.
groupBox12
.
TabStop
=
false
;
this
.
groupBox12
.
Text
=
"单选按钮组"
;
//
// ucBtnsGroup1
//
this
.
ucBtnsGroup1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucBtnsGroup1
.
DataSource
=
((
System
.
Collections
.
Generic
.
Dictionary
<
string
,
string
>)(
resources
.
GetObject
(
"ucBtnsGroup1.DataSource"
)));
this
.
ucBtnsGroup1
.
IsMultiple
=
false
;
this
.
ucBtnsGroup1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
ucBtnsGroup1
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
50
);
this
.
ucBtnsGroup1
.
Name
=
"ucBtnsGroup1"
;
this
.
ucBtnsGroup1
.
SelectItem
=
((
System
.
Collections
.
Generic
.
List
<
string
>)(
resources
.
GetObject
(
"ucBtnsGroup1.SelectItem"
)));
this
.
ucBtnsGroup1
.
Size
=
new
System
.
Drawing
.
Size
(
194
,
50
);
this
.
ucBtnsGroup1
.
TabIndex
=
0
;
//
// groupBox13
//
this
.
groupBox13
.
Controls
.
Add
(
this
.
ucBtnsGroup2
);
this
.
groupBox13
.
Location
=
new
System
.
Drawing
.
Point
(
992
,
584
);
this
.
groupBox13
.
Name
=
"groupBox13"
;
this
.
groupBox13
.
Size
=
new
System
.
Drawing
.
Size
(
367
,
68
);
this
.
groupBox13
.
TabIndex
=
6
;
this
.
groupBox13
.
TabStop
=
false
;
this
.
groupBox13
.
Text
=
"多选按钮组"
;
//
// ucBtnsGroup2
//
this
.
ucBtnsGroup2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucBtnsGroup2
.
DataSource
=
((
System
.
Collections
.
Generic
.
Dictionary
<
string
,
string
>)(
resources
.
GetObject
(
"ucBtnsGroup2.DataSource"
)));
this
.
ucBtnsGroup2
.
IsMultiple
=
false
;
this
.
ucBtnsGroup2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
14
);
this
.
ucBtnsGroup2
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
50
);
this
.
ucBtnsGroup2
.
Name
=
"ucBtnsGroup2"
;
this
.
ucBtnsGroup2
.
SelectItem
=
((
System
.
Collections
.
Generic
.
List
<
string
>)(
resources
.
GetObject
(
"ucBtnsGroup2.SelectItem"
)));
this
.
ucBtnsGroup2
.
Size
=
new
System
.
Drawing
.
Size
(
355
,
50
);
this
.
ucBtnsGroup2
.
TabIndex
=
0
;
//
// ucSplitLine_V1
//
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
(
1149
,
12
);
this
.
ucSplitLine_V1
.
Name
=
"ucSplitLine_V1"
;
this
.
ucSplitLine_V1
.
Size
=
new
System
.
Drawing
.
Size
(
1
,
100
);
this
.
ucSplitLine_V1
.
TabIndex
=
9
;
this
.
ucSplitLine_V1
.
TabStop
=
false
;
//
// ucSplitLine_H1
//
this
.
ucSplitLine_H1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucSplitLine_H1
.
Location
=
new
System
.
Drawing
.
Point
(
1177
,
22
);
this
.
ucSplitLine_H1
.
Name
=
"ucSplitLine_H1"
;
this
.
ucSplitLine_H1
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
1
);
this
.
ucSplitLine_H1
.
TabIndex
=
8
;
this
.
ucSplitLine_H1
.
TabStop
=
false
;
//
// processExt1
//
this
.
processExt1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
processExt1
.
ConerRadius
=
5
;
this
.
processExt1
.
EnabledTheme
=
false
;
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
(
22
,
657
);
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
(
291
,
22
);
this
.
processExt1
.
TabIndex
=
7
;
this
.
processExt1
.
Value
=
0
;
//
// button10
//
this
.
button10
.
Location
=
new
System
.
Drawing
.
Point
(
43
,
49
);
this
.
button10
.
Name
=
"button10"
;
this
.
button10
.
Size
=
new
System
.
Drawing
.
Size
(
89
,
23
);
this
.
button10
.
TabIndex
=
0
;
this
.
button10
.
Text
=
"TestListView"
;
this
.
button10
.
UseVisualStyleBackColor
=
true
;
this
.
button10
.
Click
+=
new
System
.
EventHandler
(
this
.
button10_Click
);
//
// Form1
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -1041,6 +1052,7 @@
this
.
Controls
.
Add
(
this
.
button8
);
this
.
Controls
.
Add
(
this
.
button7
);
this
.
Controls
.
Add
(
this
.
button6
);
this
.
Controls
.
Add
(
this
.
button10
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Name
=
"Form1"
;
this
.
Text
=
"Form1"
;
...
...
@@ -1121,6 +1133,7 @@
private
HZH_Controls
.
Controls
.
UCProcessExt
processExt1
;
private
HZH_Controls
.
Controls
.
UCSplitLine_H
ucSplitLine_H1
;
private
HZH_Controls
.
Controls
.
UCSplitLine_V
ucSplitLine_V1
;
private
System
.
Windows
.
Forms
.
Button
button10
;
}
}
HZH_Controls/Test/Form1.cs
查看文件 @
2721a70
...
...
@@ -191,5 +191,10 @@ namespace Test
new
Form2
().
Show
();
}
private
void
button10_Click
(
object
sender
,
EventArgs
e
)
{
new
FrmTestListView
().
Show
();
}
}
}
HZH_Controls/Test/FrmTestListView.Designer.cs
0 → 100644
查看文件 @
2721a70
namespace
Test
{
partial
class
FrmTestListView
{
/// <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
()
{
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmTestListView
));
this
.
ucListView1
=
new
HZH_Controls
.
Controls
.
UCListView
();
this
.
SuspendLayout
();
//
// ucListView1
//
this
.
ucListView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucListView1
.
DataSource
=
((
object
)(
resources
.
GetObject
(
"ucListView1.DataSource"
)));
this
.
ucListView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucListView1
.
IsMultiple
=
false
;
this
.
ucListView1
.
ItemType
=
typeof
(
HZH_Controls
.
Controls
.
UCListViewItem
);
this
.
ucListView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
61
);
this
.
ucListView1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
ucListView1
.
Name
=
"ucListView1"
;
this
.
ucListView1
.
Page
=
null
;
this
.
ucListView1
.
SelectedSource
=
((
System
.
Collections
.
Generic
.
List
<
object
>)(
resources
.
GetObject
(
"ucListView1.SelectedSource"
)));
this
.
ucListView1
.
Size
=
new
System
.
Drawing
.
Size
(
679
,
416
);
this
.
ucListView1
.
TabIndex
=
3
;
//
// FrmTestListView
//
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
.
ucListView1
);
this
.
FrmTitle
=
"测试Listview"
;
this
.
IsFullSize
=
false
;
this
.
Name
=
"FrmTestListView"
;
this
.
Text
=
"FrmTestListView"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmTestListView_Load
);
this
.
Controls
.
SetChildIndex
(
this
.
ucListView1
,
0
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
HZH_Controls
.
Controls
.
UCListView
ucListView1
;
}
}
\ No newline at end of file
HZH_Controls/Test/FrmTestListView.cs
0 → 100644
查看文件 @
2721a70
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.Forms
;
using
HZH_Controls.Controls
;
namespace
Test
{
public
partial
class
FrmTestListView
:
FrmBack
{
public
FrmTestListView
()
{
InitializeComponent
();
}
private
void
FrmTestListView_Load
(
object
sender
,
EventArgs
e
)
{
List
<
object
>
lstSource
=
new
List
<
object
>();
for
(
int
i
=
0
;
i
<
1000
;
i
++)
{
lstSource
.
Add
(
"项-"
+
i
);
}
var
page
=
new
UCPagerControl2
();
page
.
DataSource
=
lstSource
;
this
.
ucListView1
.
Page
=
page
;
//this.ucListView1.DataSource = lstSource;
}
}
}
HZH_Controls/Test/FrmTestListView.resx
0 → 100644
查看文件 @
2721a70
<?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>
<data name="ucListView1.DataSource" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9u
PTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQUB
AAAAMFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLk9iamVjdAMAAAAGX2l0
ZW1zBV9zaXplCF92ZXJzaW9uBQAACAgCAAAACQMAAAAAAAAAAAAAABADAAAAAAAAAAs=
</value>
</data>
<data name="ucListView1.SelectedSource" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9u
PTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQUB
AAAAMFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLk9iamVjdAMAAAAGX2l0
ZW1zBV9zaXplCF92ZXJzaW9uBQAACAgCAAAACQMAAAAAAAAAAAAAABADAAAAAAAAAAs=
</value>
</data>
</root>
\ No newline at end of file
HZH_Controls/Test/Test.csproj
查看文件 @
2721a70
...
...
@@ -74,6 +74,12 @@
<Compile Include="FrmTemp1Test.Designer.cs">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</Compile>
<Compile Include="FrmTestListView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTestListView.Designer.cs">
<DependentUpon>FrmTestListView.cs</DependentUpon>
</Compile>
<Compile Include="FrmWithTitleTest.cs">
<SubType>Form</SubType>
</Compile>
...
...
@@ -97,6 +103,9 @@
<EmbeddedResource Include="FrmTemp1Test.resx">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmTestListView.resx">
<DependentUpon>FrmTestListView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmWithTitleTest.resx">
<DependentUpon>FrmWithTitleTest.cs</DependentUpon>
</EmbeddedResource>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论