Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2721a706
由
HZH
编写于
2019-08-22 11:08:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Add listview
1 个父辈
cf260eb8
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
728 行增加
和
0 行删除
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
此文件的差异被折叠,
点击展开。
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
\ 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
\ No newline at end of file
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
2721a70
...
@@ -65,8 +65,21 @@
...
@@ -65,8 +65,21 @@
<Compile Include="Controls\DataGridView\UCDataGridViewRow.Designer.cs">
<Compile Include="Controls\DataGridView\UCDataGridViewRow.Designer.cs">
<DependentUpon>UCDataGridViewRow.cs</DependentUpon>
<DependentUpon>UCDataGridViewRow.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="Controls\List\IListViewItem.cs" />
<Compile Include="Controls\List\IPageControl.cs" />
<Compile Include="Controls\List\IPageControl.cs" />
<Compile Include="Controls\List\PageControlEventHandler.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">
<Compile Include="Controls\List\UCPagerControl.cs">
<SubType>UserControl</SubType>
<SubType>UserControl</SubType>
</Compile>
</Compile>
...
@@ -425,6 +438,12 @@
...
@@ -425,6 +438,12 @@
<EmbeddedResource Include="Controls\List\UCListItemExt.resx">
<EmbeddedResource Include="Controls\List\UCListItemExt.resx">
<DependentUpon>UCListItemExt.cs</DependentUpon>
<DependentUpon>UCListItemExt.cs</DependentUpon>
</EmbeddedResource>
</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">
<EmbeddedResource Include="Controls\List\UCPagerControl.resx">
<DependentUpon>UCPagerControl.cs</DependentUpon>
<DependentUpon>UCPagerControl.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
HZH_Controls/Test/Form1.Designer.cs
查看文件 @
2721a70
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/Form1.cs
查看文件 @
2721a70
...
@@ -191,5 +191,10 @@ namespace Test
...
@@ -191,5 +191,10 @@ namespace Test
new
Form2
().
Show
();
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
\ 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
\ No newline at end of file
HZH_Controls/Test/Test.csproj
查看文件 @
2721a70
...
@@ -74,6 +74,12 @@
...
@@ -74,6 +74,12 @@
<Compile Include="FrmTemp1Test.Designer.cs">
<Compile Include="FrmTemp1Test.Designer.cs">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="FrmTestListView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTestListView.Designer.cs">
<DependentUpon>FrmTestListView.cs</DependentUpon>
</Compile>
<Compile Include="FrmWithTitleTest.cs">
<Compile Include="FrmWithTitleTest.cs">
<SubType>Form</SubType>
<SubType>Form</SubType>
</Compile>
</Compile>
...
@@ -97,6 +103,9 @@
...
@@ -97,6 +103,9 @@
<EmbeddedResource Include="FrmTemp1Test.resx">
<EmbeddedResource Include="FrmTemp1Test.resx">
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
<DependentUpon>FrmTemp1Test.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="FrmTestListView.resx">
<DependentUpon>FrmTestListView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmWithTitleTest.resx">
<EmbeddedResource Include="FrmWithTitleTest.resx">
<DependentUpon>FrmWithTitleTest.cs</DependentUpon>
<DependentUpon>FrmWithTitleTest.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论