Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 22d793e1
由
HZH
编写于
2019-08-19 11:21:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
新增面包屑导航
1 个父辈
2a2f79aa
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
492 行增加
和
6 行删除
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.Designer.cs
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.cs
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.resx
HZH_Controls/HZH_Controls/Controls/Process/UCProcessEllipse.Designer.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessEllipse.resx
HZH_Controls/HZH_Controls/Controls/Step/UCStep.cs
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/HZH_Controls/Helpers/ControlHelper.cs
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/Test/Form2.resx
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.Designer.cs
0 → 100644
查看文件 @
22d793e
namespace
HZH_Controls.Controls
{
partial
class
UCCrumbNavigation
{
/// <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
();
//
// UCCrumbNavigation
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
224
)))),
((
int
)(((
byte
)(
224
)))),
((
int
)(((
byte
)(
224
)))));
this
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
25
);
this
.
Name
=
"UCCrumbNavigation"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
220
,
25
);
this
.
ResumeLayout
(
false
);
}
#
endregion
}
}
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.cs
0 → 100644
查看文件 @
22d793e
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
UCCrumbNavigation
:
UserControl
{
private
Color
m_navColor
=
Color
.
FromArgb
(
100
,
100
,
100
);
public
Color
NavColor
{
get
{
return
m_navColor
;
}
set
{
if
(
value
==
Color
.
Empty
||
value
==
Color
.
Transparent
)
return
;
m_navColor
=
value
;
Refresh
();
}
}
private
string
[]
m_navigations
=
new
string
[]
{
"目录1"
,
"目录2"
,
"目录3"
};
GraphicsPath
[]
m_paths
;
public
string
[]
Navigations
{
get
{
return
m_navigations
;
}
set
{
m_navigations
=
value
;
if
(
value
==
null
)
m_paths
=
new
GraphicsPath
[
0
];
else
m_paths
=
new
GraphicsPath
[
value
.
Length
];
Refresh
();
}
}
public
override
Font
Font
{
get
{
return
base
.
Font
;
}
set
{
base
.
Font
=
value
;
Refresh
();
}
}
public
override
System
.
Drawing
.
Color
ForeColor
{
get
{
return
base
.
ForeColor
;
}
set
{
base
.
ForeColor
=
value
;
Refresh
();
}
}
public
UCCrumbNavigation
()
{
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
);
this
.
MouseDown
+=
UCCrumbNavigation_MouseDown
;
}
void
UCCrumbNavigation_MouseDown
(
object
sender
,
MouseEventArgs
e
)
{
if
(!
DesignMode
)
{
if
(
m_paths
!=
null
&&
m_paths
.
Length
>
0
)
{
for
(
int
i
=
0
;
i
<
m_paths
.
Length
;
i
++)
{
if
(
m_paths
[
i
].
IsVisible
(
e
.
Location
))
{
HZH_Controls
.
Forms
.
FrmTips
.
ShowTipsSuccess
(
this
.
FindForm
(),
m_navigations
[
i
]);
}
}
}
}
}
protected
override
void
OnPaint
(
PaintEventArgs
e
)
{
base
.
OnPaint
(
e
);
if
(
m_navigations
!=
null
&&
m_navigations
.
Length
>
0
)
{
var
g
=
e
.
Graphics
;
int
intLastX
=
0
;
int
intLength
=
m_navigations
.
Length
;
for
(
int
i
=
0
;
i
<
m_navigations
.
Length
;
i
++)
{
GraphicsPath
path
=
new
GraphicsPath
();
string
strText
=
m_navigations
[
i
];
System
.
Drawing
.
SizeF
sizeF
=
g
.
MeasureString
(
strText
.
Replace
(
" "
,
"A"
),
Font
);
int
intTextWidth
=
(
int
)
sizeF
.
Width
+
1
;
path
.
AddLine
(
new
Point
(
intLastX
+
1
,
1
),
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
,
1
));
//if (i != (intLength - 1))
//{
path
.
AddLine
(
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
,
1
),
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
+
10
,
this
.
Height
/
2
));
path
.
AddLine
(
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
+
10
,
this
.
Height
/
2
),
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
-
1
,
this
.
Height
-
1
));
//}
//else
//{
// path.AddLine(new Point(intLastX + 1 + (i == 0 ? 0 : 10) + intTextWidth, 1), new Point(intLastX + 1 + (i == 0 ? 0 : 10) + intTextWidth, this.Height - 1));
//}
path
.
AddLine
(
new
Point
(
intLastX
+
1
+
(
i
==
0
?
0
:
10
)
+
intTextWidth
,
this
.
Height
-
1
),
new
Point
(
intLastX
+
1
,
this
.
Height
-
1
));
if
(
i
!=
0
)
{
path
.
AddLine
(
new
Point
(
intLastX
,
this
.
Height
-
1
),
new
Point
(
intLastX
+
1
+
10
,
this
.
Height
/
2
));
path
.
AddLine
(
new
Point
(
intLastX
+
1
+
10
,
this
.
Height
/
2
),
new
Point
(
intLastX
+
1
,
1
));
}
else
{
path
.
AddLine
(
new
Point
(
intLastX
+
1
,
this
.
Height
-
1
),
new
Point
(
intLastX
+
1
,
1
));
}
g
.
FillPath
(
new
SolidBrush
(
m_navColor
),
path
);
g
.
DrawString
(
strText
,
this
.
Font
,
new
SolidBrush
(
this
.
ForeColor
),
new
PointF
(
intLastX
+
2
+
(
i
==
0
?
0
:
10
),
(
this
.
Height
-
sizeF
.
Height
)
/
2
+
1
));
m_paths
[
i
]
=
path
;
intLastX
+=
((
i
==
0
?
0
:
10
)
+
intTextWidth
+
(
i
==
(
intLength
-
1
)
?
0
:
10
));
}
}
}
}
}
HZH_Controls/HZH_Controls/Controls/Navigation/UCCrumbNavigation.resx
0 → 100644
查看文件 @
22d793e
<?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/Process/UCProcessEllipse.Designer.cs
查看文件 @
22d793e
...
...
@@ -28,8 +28,14 @@
/// </summary>
private
void
InitializeComponent
()
{
components
=
new
System
.
ComponentModel
.
Container
();
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
SuspendLayout
();
//
// UCProcessEllipse
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Name
=
"UCProcessEllipse"
;
this
.
ResumeLayout
(
false
);
}
#
endregion
...
...
HZH_Controls/HZH_Controls/Controls/Process/UCProcessEllipse.resx
0 → 100644
查看文件 @
22d793e
<?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/Step/UCStep.cs
查看文件 @
22d793e
...
...
@@ -126,7 +126,7 @@ namespace HZH_Controls.Controls
}
private
Image
m_imgCompleted
=
null
;
[
Description
(
"已完成步骤图片,当不为空时,已完成步骤将不再显示数字"
),
Category
(
"自定义"
)]
[
Description
(
"已完成步骤图片,当不为空时,已完成步骤将不再显示数字
,建议24*24大小
"
),
Category
(
"自定义"
)]
public
Image
ImgCompleted
{
get
{
return
m_imgCompleted
;
}
...
...
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
22d793e
...
...
@@ -98,6 +98,12 @@
<Compile Include="Controls\Menu\UCMenuParentItem.Designer.cs">
<DependentUpon>UCMenuParentItem.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Navigation\UCCrumbNavigation.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Navigation\UCCrumbNavigation.Designer.cs">
<DependentUpon>UCCrumbNavigation.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Panel\UCPanelTitle.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -420,9 +426,15 @@
<EmbeddedResource Include="Controls\Menu\UCMenuParentItem.resx">
<DependentUpon>UCMenuParentItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Navigation\UCCrumbNavigation.resx">
<DependentUpon>UCCrumbNavigation.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Panel\UCPanelTitle.resx">
<DependentUpon>UCPanelTitle.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Process\UCProcessEllipse.resx">
<DependentUpon>UCProcessEllipse.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Process\UCProcessExt.resx">
<DependentUpon>UCProcessExt.cs</DependentUpon>
</EmbeddedResource>
...
...
HZH_Controls/HZH_Controls/Helpers/ControlHelper.cs
查看文件 @
22d793e
...
...
@@ -630,6 +630,5 @@ namespace HZH_Controls
}
#
endregion
}
}
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
22d793e
...
...
@@ -29,7 +29,9 @@
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
Form2
));
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
ucCrumbNavigation1
=
new
HZH_Controls
.
Controls
.
UCCrumbNavigation
();
this
.
ucProcessEllipse1
=
new
HZH_Controls
.
Controls
.
UCProcessEllipse
();
this
.
ucPanelTitle1
=
new
HZH_Controls
.
Controls
.
UCPanelTitle
();
this
.
ucStep1
=
new
HZH_Controls
.
Controls
.
UCStep
();
...
...
@@ -40,12 +42,28 @@
this
.
timer1
.
Enabled
=
true
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// ucCrumbNavigation1
//
this
.
ucCrumbNavigation1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
ucCrumbNavigation1
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucCrumbNavigation1
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
254
);
this
.
ucCrumbNavigation1
.
MinimumSize
=
new
System
.
Drawing
.
Size
(
0
,
25
);
this
.
ucCrumbNavigation1
.
Name
=
"ucCrumbNavigation1"
;
this
.
ucCrumbNavigation1
.
NavColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
80
)))),
((
int
)(((
byte
)(
80
)))),
((
int
)(((
byte
)(
80
)))));
this
.
ucCrumbNavigation1
.
Navigations
=
new
string
[]
{
"目录1"
,
"目录2"
,
"目录3"
,
"目录4"
};
this
.
ucCrumbNavigation1
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
25
);
this
.
ucCrumbNavigation1
.
TabIndex
=
3
;
//
// ucProcessEllipse1
//
this
.
ucProcessEllipse1
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
22
)))),
((
int
)(((
byte
)(
160
)))),
((
int
)(((
byte
)(
133
)))));
this
.
ucProcessEllipse1
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
180
)))),
((
int
)(((
byte
)(
180
)))),
((
int
)(((
byte
)(
180
)))));
this
.
ucProcessEllipse1
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
90
,
288
);
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
173
);
this
.
ucProcessEllipse1
.
MaxValue
=
100
;
this
.
ucProcessEllipse1
.
Name
=
"ucProcessEllipse1"
;
this
.
ucProcessEllipse1
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Ring
;
...
...
@@ -79,10 +97,11 @@
//
this
.
ucStep1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucStep1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucStep1
.
ImgCompleted
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"ucStep1.ImgCompleted"
)));
this
.
ucStep1
.
LineWidth
=
10
;
this
.
ucStep1
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
12
);
this
.
ucStep1
.
Name
=
"ucStep1"
;
this
.
ucStep1
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
1
72
);
this
.
ucStep1
.
Size
=
new
System
.
Drawing
.
Size
(
360
,
1
30
);
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
)(
100
)))),
((
int
)(((
byte
)(
184
)))),
((
int
)(((
byte
)(
255
)))));
...
...
@@ -101,6 +120,7 @@
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
.
ucCrumbNavigation1
);
this
.
Controls
.
Add
(
this
.
ucProcessEllipse1
);
this
.
Controls
.
Add
(
this
.
ucPanelTitle1
);
this
.
Controls
.
Add
(
this
.
ucStep1
);
...
...
@@ -117,5 +137,6 @@
private
HZH_Controls
.
Controls
.
UCPanelTitle
ucPanelTitle1
;
private
HZH_Controls
.
Controls
.
UCProcessEllipse
ucProcessEllipse1
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
HZH_Controls
.
Controls
.
UCCrumbNavigation
ucCrumbNavigation1
;
}
}
\ No newline at end of file
HZH_Controls/Test/Form2.resx
查看文件 @
22d793e
...
...
@@ -120,4 +120,14 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAACvSURBVEhL7ZLRDYMwDEQzQkfoaB2hIzBCNygbMEpHSu/IGZEIRa1x+4F40kmWY78AIp0ci5zz
VWU8kI/IC7moFYfkRtwlFCETrQ2DRvxAQjmftmXUiB9I/HIMdb8fzxG/HOHyU62K1XnLV3KD9fI2rNVr
uWukDwaHMl8xX6JsyW9a/wwsrP9ng+L9cgOLj7LfxSc3KCieTfbJDYqKryJGblBYvDOxcoPin8lP/kBK
b1p1tZEYIvwEAAAAAElFTkSuQmCC
</value>
</data>
</root>
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论