Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c99eafb7
由
HZH
编写于
2019-08-17 15:41:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
新增步骤控件
1 个父辈
13c2624f
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
603 行增加
和
13 行删除
HZH_Controls/HZH_Controls/Controls/Step/UCStep.Designer.cs
HZH_Controls/HZH_Controls/Controls/Step/UCStep.cs
HZH_Controls/HZH_Controls/Controls/Step/UCStep.resx
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/Form1.cs
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/Test/Form2.cs
HZH_Controls/Test/Form2.resx
HZH_Controls/Test/FrmOKCancel1Test.Designer.cs
HZH_Controls/Test/Test.csproj
HZH_Controls/HZH_Controls/Controls/Step/UCStep.Designer.cs
0 → 100644
查看文件 @
c99eafb
namespace
HZH_Controls.Controls
{
partial
class
UCStep
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
SuspendLayout
();
//
// UCStep
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
Name
=
"UCStep"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
239
,
80
);
this
.
ResumeLayout
(
false
);
}
#
endregion
}
}
HZH_Controls/HZH_Controls/Controls/Step/UCStep.cs
0 → 100644
查看文件 @
c99eafb
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.Drawing.Drawing2D
;
namespace
HZH_Controls.Controls
{
public
partial
class
UCStep
:
UserControl
{
public
event
EventHandler
IndexChecked
;
private
Color
m_stepBackColor
=
Color
.
FromArgb
(
100
,
100
,
100
);
/// <summary>
/// 步骤背景色
/// </summary>
[
Description
(
"步骤背景色"
),
Category
(
"自定义"
)]
public
Color
StepBackColor
{
get
{
return
m_stepBackColor
;
}
set
{
m_stepBackColor
=
value
;
}
}
private
Color
m_stepForeColor
=
Color
.
FromArgb
(
255
,
85
,
51
);
/// <summary>
/// 步骤前景色
/// </summary>
[
Description
(
"步骤前景色"
),
Category
(
"自定义"
)]
public
Color
StepForeColor
{
get
{
return
m_stepForeColor
;
}
set
{
m_stepForeColor
=
value
;
}
}
private
Color
m_stepFontColor
=
Color
.
White
;
/// <summary>
/// 步骤文字颜色
/// </summary>
[
Description
(
"步骤文字景色"
),
Category
(
"自定义"
)]
public
Color
StepFontColor
{
get
{
return
m_stepFontColor
;
}
set
{
m_stepFontColor
=
value
;
}
}
private
int
m_stepWidth
=
35
;
/// <summary>
/// 步骤宽度
/// </summary>
[
Description
(
"步骤宽度景色"
),
Category
(
"自定义"
)]
public
int
StepWidth
{
get
{
return
m_stepWidth
;
}
set
{
m_stepWidth
=
value
;
}
}
private
string
[]
m_steps
=
new
string
[]
{
"step1"
,
"step2"
,
"step3"
};
[
Description
(
"步骤"
),
Category
(
"自定义"
)]
public
string
[]
Steps
{
get
{
return
m_steps
;
}
set
{
if
(
m_steps
==
null
||
m_steps
.
Length
<=
1
)
return
;
m_steps
=
value
;
Refresh
();
}
}
private
int
m_stepIndex
=
0
;
[
Description
(
"步骤位置"
),
Category
(
"自定义"
)]
public
int
StepIndex
{
get
{
return
m_stepIndex
;
}
set
{
if
(
m_stepIndex
>=
Steps
.
Length
)
return
;
m_stepIndex
=
value
;
Refresh
();
if
(
IndexChecked
!=
null
)
{
IndexChecked
(
this
,
null
);
}
}
}
public
UCStep
()
{
InitializeComponent
();
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
this
.
SetStyle
(
ControlStyles
.
ResizeRedraw
,
true
);
this
.
SetStyle
(
ControlStyles
.
Selectable
,
true
);
this
.
SetStyle
(
ControlStyles
.
SupportsTransparentBackColor
,
true
);
this
.
SetStyle
(
ControlStyles
.
UserPaint
,
true
);
}
protected
override
void
OnPaint
(
PaintEventArgs
e
)
{
base
.
OnPaint
(
e
);
var
g
=
e
.
Graphics
;
g
.
SmoothingMode
=
SmoothingMode
.
AntiAlias
;
//使绘图质量最高,即消除锯齿
g
.
InterpolationMode
=
InterpolationMode
.
HighQualityBicubic
;
g
.
CompositingQuality
=
CompositingQuality
.
HighQuality
;
if
(
m_steps
!=
null
&&
m_steps
.
Length
>
0
)
{
System
.
Drawing
.
SizeF
sizeFirst
=
g
.
MeasureString
(
m_steps
[
0
],
this
.
Font
);
int
y
=
(
this
.
Height
-
m_stepWidth
-
10
-
(
int
)
sizeFirst
.
Height
)
/
2
;
if
(
y
<
0
)
y
=
0
;
int
intTxtY
=
y
+
m_stepWidth
+
10
;
int
intLeft
=
0
;
if
(
sizeFirst
.
Width
>
m_stepWidth
)
{
intLeft
=
(
int
)(
sizeFirst
.
Width
-
m_stepWidth
)
/
2
+
1
;
}
int
intRight
=
0
;
System
.
Drawing
.
SizeF
sizeEnd
=
g
.
MeasureString
(
m_steps
[
m_steps
.
Length
-
1
],
this
.
Font
);
if
(
sizeEnd
.
Width
>
m_stepWidth
)
{
intRight
=
(
int
)(
sizeEnd
.
Width
-
m_stepWidth
)
/
2
+
1
;
}
int
intSplitWidth
=
20
;
intSplitWidth
=
(
this
.
Width
-
m_steps
.
Length
-
(
m_steps
.
Length
*
m_stepWidth
)
-
intRight
)
/
(
m_steps
.
Length
-
1
);
if
(
intSplitWidth
<
20
)
intSplitWidth
=
20
;
for
(
int
i
=
0
;
i
<
m_steps
.
Length
;
i
++)
{
#
region
画圆,横线
g
.
FillEllipse
(
new
SolidBrush
(
m_stepBackColor
),
new
Rectangle
(
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
),
y
),
new
Size
(
m_stepWidth
,
m_stepWidth
)));
if
(
m_stepIndex
>
i
)
{
g
.
FillEllipse
(
new
SolidBrush
(
m_stepForeColor
),
new
Rectangle
(
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
2
,
y
+
2
),
new
Size
(
m_stepWidth
-
4
,
m_stepWidth
-
4
)));
if
(
i
!=
m_steps
.
Length
-
1
)
{
if
(
m_stepIndex
==
i
+
1
)
{
g
.
DrawLine
(
new
Pen
(
m_stepForeColor
,
2
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
m_stepWidth
,
y
+
(
m_stepWidth
/
2
)),
new
Point
((
i
+
1
)
*
(
m_stepWidth
+
intSplitWidth
)
-
intSplitWidth
/
2
,
y
+
(
m_stepWidth
/
2
)));
g
.
DrawLine
(
new
Pen
(
m_stepBackColor
,
2
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
m_stepWidth
+
intSplitWidth
/
2
,
y
+
(
m_stepWidth
/
2
)),
new
Point
((
i
+
1
)
*
(
m_stepWidth
+
intSplitWidth
),
y
+
(
m_stepWidth
/
2
)));
}
else
{
g
.
DrawLine
(
new
Pen
(
m_stepForeColor
,
2
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
m_stepWidth
,
y
+
(
m_stepWidth
/
2
)),
new
Point
((
i
+
1
)
*
(
m_stepWidth
+
intSplitWidth
),
y
+
(
m_stepWidth
/
2
)));
}
}
}
else
{
if
(
i
!=
m_steps
.
Length
-
1
)
{
g
.
DrawLine
(
new
Pen
(
m_stepBackColor
,
2
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
m_stepWidth
,
y
+
(
m_stepWidth
/
2
)),
new
Point
((
i
+
1
)
*
(
m_stepWidth
+
intSplitWidth
),
y
+
(
m_stepWidth
/
2
)));
}
}
System
.
Drawing
.
SizeF
_numSize
=
g
.
MeasureString
((
i
+
1
).
ToString
(),
this
.
Font
);
g
.
DrawString
((
i
+
1
).
ToString
(),
Font
,
new
SolidBrush
(
m_stepFontColor
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
(
m_stepWidth
-
(
int
)
_numSize
.
Width
)
/
2
+
1
,
y
+
(
m_stepWidth
-
(
int
)
_numSize
.
Height
)
/
2
+
1
));
#
endregion
System
.
Drawing
.
SizeF
sizeTxt
=
g
.
MeasureString
(
m_steps
[
i
],
this
.
Font
);
g
.
DrawString
(
m_steps
[
i
],
Font
,
new
SolidBrush
(
m_stepIndex
>
i
?
m_stepForeColor
:
m_stepBackColor
),
new
Point
(
intLeft
+
i
*
(
m_stepWidth
+
intSplitWidth
)
+
(
m_stepWidth
-
(
int
)
sizeTxt
.
Width
)
/
2
+
1
,
intTxtY
));
}
}
}
}
}
HZH_Controls/HZH_Controls/Controls/Step/UCStep.resx
0 → 100644
查看文件 @
c99eafb
<?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
查看文件 @
c99eafb
...
@@ -98,6 +98,12 @@
...
@@ -98,6 +98,12 @@
<Compile Include="Controls\Menu\UCMenuParentItem.Designer.cs">
<Compile Include="Controls\Menu\UCMenuParentItem.Designer.cs">
<DependentUpon>UCMenuParentItem.cs</DependentUpon>
<DependentUpon>UCMenuParentItem.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="Controls\Step\UCStep.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Step\UCStep.Designer.cs">
<DependentUpon>UCStep.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Tab\TabControlExt.cs">
<Compile Include="Controls\Tab\TabControlExt.cs">
<SubType>Component</SubType>
<SubType>Component</SubType>
</Compile>
</Compile>
...
@@ -414,6 +420,9 @@
...
@@ -414,6 +420,9 @@
<EmbeddedResource Include="Controls\Split\UCSplitLine_V.resx">
<EmbeddedResource Include="Controls\Split\UCSplitLine_V.resx">
<DependentUpon>UCSplitLine_V.cs</DependentUpon>
<DependentUpon>UCSplitLine_V.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Step\UCStep.resx">
<DependentUpon>UCStep.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Text\TextBoxTransparent.resx">
<EmbeddedResource Include="Controls\Text\TextBoxTransparent.resx">
<DependentUpon>TextBoxTransparent.cs</DependentUpon>
<DependentUpon>TextBoxTransparent.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
HZH_Controls/Test/Form1.cs
查看文件 @
c99eafb
...
@@ -178,7 +178,7 @@ namespace Test
...
@@ -178,7 +178,7 @@ namespace Test
private
void
button9_Click
(
object
sender
,
EventArgs
e
)
private
void
button9_Click
(
object
sender
,
EventArgs
e
)
{
{
new
Form2
().
Show
();
}
}
}
}
...
...
HZH_Controls/Test/Form2.Designer.cs
0 → 100644
查看文件 @
c99eafb
namespace
Test
{
partial
class
Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
Windows
Form
Designer
generated
code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private
void
InitializeComponent
()
{
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
ucStep1
=
new
HZH_Controls
.
Controls
.
UCStep
();
this
.
SuspendLayout
();
//
// button1
//
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
180
,
175
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
button1
.
TabIndex
=
1
;
this
.
button1
.
Text
=
"button1"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click
);
//
// ucStep1
//
this
.
ucStep1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucStep1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
this
.
ucStep1
.
Name
=
"ucStep1"
;
this
.
ucStep1
.
Size
=
new
System
.
Drawing
.
Size
(
361
,
76
);
this
.
ucStep1
.
StepBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
100
)))),
((
int
)(((
byte
)(
100
)))),
((
int
)(((
byte
)(
100
)))));
this
.
ucStep1
.
StepFontColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucStep1
.
StepForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
85
)))),
((
int
)(((
byte
)(
51
)))));
this
.
ucStep1
.
StepIndex
=
1
;
this
.
ucStep1
.
Steps
=
new
string
[]
{
"step1"
,
"step2"
,
"step3"
,
"step4"
,
"step5"
};
this
.
ucStep1
.
StepWidth
=
35
;
this
.
ucStep1
.
TabIndex
=
0
;
//
// Form2
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
825
,
594
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Controls
.
Add
(
this
.
ucStep1
);
this
.
Name
=
"Form2"
;
this
.
Text
=
"Form2"
;
this
.
ResumeLayout
(
false
);
}
#
endregion
private
HZH_Controls
.
Controls
.
UCStep
ucStep1
;
private
System
.
Windows
.
Forms
.
Button
button1
;
}
}
\ No newline at end of file
\ No newline at end of file
HZH_Controls/Test/Form2.cs
0 → 100644
查看文件 @
c99eafb
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Windows.Forms
;
namespace
Test
{
public
partial
class
Form2
:
Form
{
public
Form2
()
{
InitializeComponent
();
}
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
{
this
.
ucStep1
.
StepIndex
=
3
;
}
}
}
HZH_Controls/Test/Form2.resx
0 → 100644
查看文件 @
c99eafb
<?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/Test/FrmOKCancel1Test.Designer.cs
查看文件 @
c99eafb
...
@@ -80,40 +80,40 @@
...
@@ -80,40 +80,40 @@
//
//
// tabPage8
// tabPage8
//
//
this
.
tabPage8
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
5
4
);
this
.
tabPage8
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
10
4
);
this
.
tabPage8
.
Name
=
"tabPage8"
;
this
.
tabPage8
.
Name
=
"tabPage8"
;
this
.
tabPage8
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage8
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage8
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
12
8
);
this
.
tabPage8
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
7
8
);
this
.
tabPage8
.
TabIndex
=
7
;
this
.
tabPage8
.
TabIndex
=
7
;
this
.
tabPage8
.
Text
=
"tabPage8"
;
this
.
tabPage8
.
Text
=
"tabPage8"
;
this
.
tabPage8
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage8
.
UseVisualStyleBackColor
=
true
;
//
//
// tabPage9
// tabPage9
//
//
this
.
tabPage9
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
5
4
);
this
.
tabPage9
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
10
4
);
this
.
tabPage9
.
Name
=
"tabPage9"
;
this
.
tabPage9
.
Name
=
"tabPage9"
;
this
.
tabPage9
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage9
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage9
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
12
8
);
this
.
tabPage9
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
7
8
);
this
.
tabPage9
.
TabIndex
=
8
;
this
.
tabPage9
.
TabIndex
=
8
;
this
.
tabPage9
.
Text
=
"tabPage9"
;
this
.
tabPage9
.
Text
=
"tabPage9"
;
this
.
tabPage9
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage9
.
UseVisualStyleBackColor
=
true
;
//
//
// tabPage10
// tabPage10
//
//
this
.
tabPage10
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
5
4
);
this
.
tabPage10
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
10
4
);
this
.
tabPage10
.
Name
=
"tabPage10"
;
this
.
tabPage10
.
Name
=
"tabPage10"
;
this
.
tabPage10
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage10
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage10
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
12
8
);
this
.
tabPage10
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
7
8
);
this
.
tabPage10
.
TabIndex
=
9
;
this
.
tabPage10
.
TabIndex
=
9
;
this
.
tabPage10
.
Text
=
"tabPage10"
;
this
.
tabPage10
.
Text
=
"tabPage10"
;
this
.
tabPage10
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage10
.
UseVisualStyleBackColor
=
true
;
//
//
// tabPage2
// tabPage2
//
//
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
5
4
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
10
4
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
263
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
78
);
this
.
tabPage2
.
TabIndex
=
11
;
this
.
tabPage2
.
TabIndex
=
11
;
this
.
tabPage2
.
Text
=
"tabPage2"
;
this
.
tabPage2
.
Text
=
"tabPage2"
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
213
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
78
);
this
.
tabPage3
.
TabIndex
=
12
;
this
.
tabPage3
.
TabIndex
=
12
;
this
.
tabPage3
.
Text
=
"tabPage3"
;
this
.
tabPage3
.
Text
=
"tabPage3"
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
this
.
tabPage4
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage4
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage4
.
Name
=
"tabPage4"
;
this
.
tabPage4
.
Name
=
"tabPage4"
;
this
.
tabPage4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage4
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
213
);
this
.
tabPage4
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
78
);
this
.
tabPage4
.
TabIndex
=
13
;
this
.
tabPage4
.
TabIndex
=
13
;
this
.
tabPage4
.
Text
=
"tabPage4"
;
this
.
tabPage4
.
Text
=
"tabPage4"
;
this
.
tabPage4
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage4
.
UseVisualStyleBackColor
=
true
;
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage5
.
Name
=
"tabPage5"
;
this
.
tabPage5
.
Name
=
"tabPage5"
;
this
.
tabPage5
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage5
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
213
);
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
78
);
this
.
tabPage5
.
TabIndex
=
14
;
this
.
tabPage5
.
TabIndex
=
14
;
this
.
tabPage5
.
Text
=
"tabPage5"
;
this
.
tabPage5
.
Text
=
"tabPage5"
;
this
.
tabPage5
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage5
.
UseVisualStyleBackColor
=
true
;
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage6
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
104
);
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Name
=
"tabPage6"
;
this
.
tabPage6
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage6
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
213
);
this
.
tabPage6
.
Size
=
new
System
.
Drawing
.
Size
(
419
,
78
);
this
.
tabPage6
.
TabIndex
=
15
;
this
.
tabPage6
.
TabIndex
=
15
;
this
.
tabPage6
.
Text
=
"tabPage6"
;
this
.
tabPage6
.
Text
=
"tabPage6"
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage6
.
UseVisualStyleBackColor
=
true
;
...
...
HZH_Controls/Test/Test.csproj
查看文件 @
c99eafb
...
@@ -50,6 +50,12 @@
...
@@ -50,6 +50,12 @@
<Compile Include="Form1.Designer.cs">
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="FrmOKCancel1Test.cs">
<Compile Include="FrmOKCancel1Test.cs">
<SubType>Form</SubType>
<SubType>Form</SubType>
</Compile>
</Compile>
...
@@ -79,6 +85,9 @@
...
@@ -79,6 +85,9 @@
<EmbeddedResource Include="Form1.resx">
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmOKCancel1Test.resx">
<EmbeddedResource Include="FrmOKCancel1Test.resx">
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论