Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5b08e1d6
由
HZH
编写于
2019-09-04 18:21:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
add管道
1 个父辈
466f4435
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1292 行增加
和
47 行删除
HZH_Controls/HZH_Controls/Controls/Conduit/UCConduit.cs
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/Form1.Designer.cs
HZH_Controls/Test/Form1.cs
HZH_Controls/Test/Form3.Designer.cs
HZH_Controls/Test/Form3.cs
HZH_Controls/Test/Form4.Designer.cs
HZH_Controls/Test/Form4.cs
HZH_Controls/Test/Form4.resx
HZH_Controls/Test/Test.csproj
HZH_Controls/HZH_Controls/Controls/Conduit/UCConduit.cs
0 → 100644
查看文件 @
5b08e1d
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-04
//
// ***********************************************************************
// <copyright file="UCConduit.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Windows.Forms
;
using
System.Drawing
;
using
System.Drawing.Drawing2D
;
using
System.ComponentModel
;
namespace
HZH_Controls.Controls.Conduit
{
/// <summary>
/// Class UCConduit.
/// Implements the <see cref="System.Windows.Forms.UserControl" />
/// </summary>
/// <seealso cref="System.Windows.Forms.UserControl" />
public
class
UCConduit
:
UserControl
{
/// <summary>
/// The conduit style
/// </summary>
private
ConduitStyle
conduitStyle
=
ConduitStyle
.
Horizontal_None_None
;
/// <summary>
/// Gets or sets the conduit style.
/// </summary>
/// <value>The conduit style.</value>
[
Description
(
"样式"
),
Category
(
"自定义"
)]
public
ConduitStyle
ConduitStyle
{
get
{
return
conduitStyle
;
}
set
{
string
strOld
=
conduitStyle
.
ToString
().
Substring
(
0
,
1
);
string
strNew
=
value
.
ToString
().
Substring
(
0
,
1
);
conduitStyle
=
value
;
if
(
strOld
!=
strNew
)
{
this
.
Size
=
new
Size
(
this
.
Size
.
Height
,
this
.
Size
.
Width
);
}
Refresh
();
}
}
/// <summary>
/// The conduit color
/// </summary>
private
Color
conduitColor
=
Color
.
FromArgb
(
255
,
77
,
59
);
[
Description
(
"颜色"
),
Category
(
"自定义"
)]
/// <summary>
/// Gets or sets the color of the conduit.
/// </summary>
/// <value>The color of the conduit.</value>
public
Color
ConduitColor
{
get
{
return
conduitColor
;
}
set
{
conduitColor
=
value
;
Refresh
();
}
}
/// <summary>
/// The liquid color
/// </summary>
private
Color
liquidColor
=
Color
.
FromArgb
(
3
,
169
,
243
);
/// <summary>
/// Gets or sets the color of the liquid.
/// </summary>
/// <value>The color of the liquid.</value>
[
Description
(
"液体颜色"
),
Category
(
"自定义"
)]
public
Color
LiquidColor
{
get
{
return
liquidColor
;
}
set
{
liquidColor
=
value
;
if
(
liquidDirection
!=
Conduit
.
LiquidDirection
.
None
)
Refresh
();
}
}
/// <summary>
/// The liquid direction
/// </summary>
private
LiquidDirection
liquidDirection
=
LiquidDirection
.
Forward
;
/// <summary>
/// Gets or sets the liquid direction.
/// </summary>
/// <value>The liquid direction.</value>
[
Description
(
"液体流动方向"
),
Category
(
"自定义"
)]
public
LiquidDirection
LiquidDirection
{
get
{
return
liquidDirection
;
}
set
{
liquidDirection
=
value
;
Refresh
();
}
}
/// <summary>
/// The liquid speed
/// </summary>
private
int
liquidSpeed
=
100
;
/// <summary>
/// 液体流速,越小,速度越快Gets or sets the liquid speed.
/// </summary>
/// <value>The liquid speed.</value>
[
Description
(
"液体流速,越小,速度越快"
),
Category
(
"自定义"
)]
public
int
LiquidSpeed
{
get
{
return
liquidSpeed
;
}
set
{
if
(
value
<=
0
)
return
;
liquidSpeed
=
value
;
m_timer
.
Interval
=
value
;
}
}
/// <summary>
/// The int pen width
/// </summary>
int
intPenWidth
=
0
;
/// <summary>
/// The int line left
/// </summary>
int
intLineLeft
=
0
;
/// <summary>
/// The m timer
/// </summary>
Timer
m_timer
;
/// <summary>
/// Initializes a new instance of the <see cref="UCConduit"/> class.
/// </summary>
public
UCConduit
()
{
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
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
SizeChanged
+=
UCConduit_SizeChanged
;
this
.
Size
=
new
Size
(
200
,
50
);
m_timer
=
new
Timer
();
m_timer
.
Interval
=
100
;
m_timer
.
Tick
+=
timer_Tick
;
m_timer
.
Enabled
=
true
;
}
/// <summary>
/// Handles the Tick event of the timer control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void
timer_Tick
(
object
sender
,
EventArgs
e
)
{
intLineLeft
+=
2
;
if
(
intLineLeft
>
12
)
intLineLeft
=
0
;
Refresh
();
}
/// <summary>
/// Handles the SizeChanged event of the UCConduit control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void
UCConduit_SizeChanged
(
object
sender
,
EventArgs
e
)
{
intPenWidth
=
conduitStyle
.
ToString
().
StartsWith
(
"H"
)
?
this
.
Height
:
this
.
Width
;
}
/// <summary>
/// 引发 <see cref="E:System.Windows.Forms.Control.Paint" /> 事件。
/// </summary>
/// <param name="e">包含事件数据的 <see cref="T:System.Windows.Forms.PaintEventArgs" />。</param>
protected
override
void
OnPaint
(
PaintEventArgs
e
)
{
base
.
OnPaint
(
e
);
Graphics
g
=
e
.
Graphics
;
List
<
ArcEntity
>
lstArcs
=
new
List
<
ArcEntity
>();
GraphicsPath
path
=
new
GraphicsPath
();
GraphicsPath
linePath
=
new
GraphicsPath
();
switch
(
conduitStyle
)
{
#
region
H
English
:
H
case
ConduitStyle
.
Horizontal_None_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
)
});
path
.
CloseAllFigures
();
linePath
.
AddLine
(
0
,
this
.
Height
/
2
,
this
.
Width
,
this
.
Height
/
2
);
break
;
case
ConduitStyle
.
Horizontal_Up_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
+
intPenWidth
,
this
.
Height
)
});
path
.
AddArc
(
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
181
,
-
91
);
linePath
.
AddLine
(
intPenWidth
,
this
.
Height
/
2
,
this
.
Width
,
this
.
Height
/
2
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_Down_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
intPenWidth
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
)
});
path
.
AddArc
(
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
this
.
Height
/
2
,
intPenWidth
,
intPenWidth
),
179
,
91
);
linePath
.
AddLine
(
intPenWidth
+
1
,
this
.
Height
/
2
,
this
.
Width
,
this
.
Height
/
2
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_None_Up
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
this
.
ClientRectangle
.
Right
-
intPenWidth
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
),
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
-
intPenWidth
,
0
)
});
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddLine
(
0
,
this
.
Height
/
2
,
this
.
Width
-
intPenWidth
,
this
.
Height
/
2
);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
91
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_None_Down
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
),
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
-
intPenWidth
,
0
)
});
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddLine
(
0
,
this
.
Height
/
2
,
this
.
Width
-
intPenWidth
-
1
,
this
.
Height
/
2
);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
/
2
,
intPenWidth
,
intPenWidth
),
269
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_Down_Up
:
path
.
AddLine
(
new
Point
(
intPenWidth
,
0
),
new
Point
(
this
.
Width
,
0
));
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
AddLine
(
new
Point
(
this
.
Width
-
intPenWidth
,
this
.
Height
),
new
Point
(
0
,
this
.
Height
));
path
.
AddArc
(
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
this
.
Height
/
2
,
intPenWidth
,
intPenWidth
),
179
,
91
);
//linePath.AddLine(intPenWidth, this.Height / 2, this.Width - intPenWidth, this.Height / 2);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
91
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_Up_Down
:
path
.
AddLine
(
new
Point
(
0
,
0
),
new
Point
(
this
.
Width
-
intPenWidth
,
0
));
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
AddLine
(
new
Point
(
this
.
Width
,
this
.
Height
),
new
Point
(
intPenWidth
,
this
.
Height
));
path
.
AddArc
(
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
181
,
-
91
);
linePath
.
AddLine
(
intPenWidth
,
this
.
Height
/
2
,
this
.
Width
-
intPenWidth
-
1
,
this
.
Height
/
2
);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
/
2
,
intPenWidth
,
intPenWidth
),
269
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_Up_Up
:
path
.
AddLine
(
new
Point
(
0
,
0
),
new
Point
(
this
.
Width
,
0
));
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
AddLine
(
new
Point
(
this
.
Width
-
intPenWidth
,
this
.
Height
),
new
Point
(
intPenWidth
,
this
.
Height
));
path
.
AddArc
(
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
181
,
-
91
);
//linePath.AddLine(intPenWidth, this.Height / 2, this.Width - intPenWidth, this.Height / 2);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
91
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
intPenWidth
*
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Horizontal_Down_Down
:
path
.
AddLine
(
new
Point
(
intPenWidth
,
0
),
new
Point
(
this
.
Width
-
intPenWidth
,
0
));
path
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
AddLine
(
new
Point
(
this
.
Width
,
this
.
Height
),
new
Point
(
0
,
this
.
Height
));
path
.
AddArc
(
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
+
1
,
this
.
Height
/
2
,
intPenWidth
,
intPenWidth
),
179
,
91
);
linePath
.
AddLine
(
intPenWidth
+
1
,
this
.
Height
/
2
,
this
.
Width
-
intPenWidth
-
1
,
this
.
Height
/
2
);
linePath
.
AddArc
(
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
/
2
,
intPenWidth
,
intPenWidth
),
269
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
0
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(
this
.
ClientRectangle
.
Right
-
intPenWidth
*
2
,
-
1
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
break
;
#
endregion
#
region
V
English
:
V
case
ConduitStyle
.
Vertical_None_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
)
});
path
.
CloseAllFigures
();
linePath
.
AddLine
(
this
.
Width
/
2
,
0
,
this
.
Width
/
2
,
this
.
Height
);
break
;
case
ConduitStyle
.
Vertical_Left_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
this
.
ClientRectangle
.
Right
,
intPenWidth
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
),
new
PointF
(
0
,
0
)
});
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
269
,
91
);
linePath
.
AddLine
(
intPenWidth
/
2
,
intPenWidth
,
intPenWidth
/
2
,
this
.
Height
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_Right_None
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
new
PointF
(
0
,
this
.
Height
),
new
PointF
(
0
,
intPenWidth
)
});
path
.
AddArc
(
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
271
,
-
91
);
linePath
.
AddLine
(
intPenWidth
/
2
,
intPenWidth
+
1
,
intPenWidth
/
2
,
this
.
Height
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_None_Left
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
0
,
this
.
Height
),
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
-
intPenWidth
),
});
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddLine
(
this
.
Width
/
2
,
0
,
this
.
Width
/
2
,
this
.
Height
-
intPenWidth
);
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
-
1
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_None_Right
:
path
.
AddLines
(
new
PointF
[]
{
new
PointF
(
0
,
this
.
Height
-
intPenWidth
),
new
PointF
(
0
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
0
),
new
PointF
(
this
.
ClientRectangle
.
Right
,
this
.
Height
),
});
path
.
AddArc
(
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddLine
(
this
.
Width
/
2
,
0
,
this
.
Width
/
2
,
this
.
Height
-
intPenWidth
-
1
);
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
181
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_Left_Right
:
path
.
AddLine
(
this
.
Width
,
intPenWidth
,
this
.
Width
,
this
.
Height
);
path
.
AddArc
(
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
AddLine
(
0
,
this
.
Height
-
intPenWidth
,
0
,
0
);
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
269
,
91
);
//linePath.AddLine(intPenWidth / 2, intPenWidth, intPenWidth / 2, this.Height - intPenWidth);
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
181
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_Right_Left
:
path
.
AddLine
(
this
.
Width
,
0
,
this
.
Width
,
this
.
Height
-
intPenWidth
);
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
AddLine
(
0
,
this
.
Height
,
0
,
intPenWidth
);
path
.
AddArc
(
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
271
,
-
91
);
//linePath.AddLine(intPenWidth / 2, intPenWidth, intPenWidth / 2, this.Height - intPenWidth);
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
-
1
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_Left_Left
:
path
.
AddLine
(
this
.
Width
,
intPenWidth
,
this
.
Width
,
this
.
Height
-
intPenWidth
);
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
0
,
90
);
path
.
AddLine
(
0
,
this
.
Height
,
0
,
0
);
path
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
270
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
269
,
91
);
//linePath.AddLine(intPenWidth / 2, intPenWidth, intPenWidth / 2, this.Height - intPenWidth);
linePath
.
AddArc
(
new
Rectangle
(-
1
*
intPenWidth
/
2
-
1
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
-
1
,
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
270
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
*
intPenWidth
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
0
,
sweepAngle
=
90
});
break
;
case
ConduitStyle
.
Vertical_Right_Right
:
path
.
AddLine
(
this
.
Width
,
0
,
this
.
Width
,
this
.
Height
);
path
.
AddArc
(
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
90
,
90
);
path
.
AddLine
(
0
,
this
.
Height
-
intPenWidth
,
0
,
intPenWidth
);
path
.
AddArc
(
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
180
,
90
);
path
.
CloseAllFigures
();
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
intPenWidth
/
2
+
1
,
intPenWidth
,
intPenWidth
),
271
,
-
91
);
//linePath.AddLine(intPenWidth / 2, intPenWidth, intPenWidth / 2, this.Height - intPenWidth);
linePath
.
AddArc
(
new
Rectangle
(
intPenWidth
/
2
,
this
.
Height
-
intPenWidth
-
intPenWidth
/
2
-
1
,
intPenWidth
,
intPenWidth
),
180
,
-
91
);
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
0
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
180
,
sweepAngle
=
90
});
lstArcs
.
Add
(
new
ArcEntity
()
{
rect
=
new
Rectangle
(-
1
,
this
.
Height
-
intPenWidth
*
2
,
intPenWidth
*
2
,
intPenWidth
*
2
),
startAngle
=
90
,
sweepAngle
=
90
});
break
;
#
endregion
}
g
.
FillPath
(
new
SolidBrush
(
conduitColor
),
path
);
//渐变色
int
intCount
=
intPenWidth
/
2
/
4
;
int
intSplit
=
(
255
-
100
)
/
intCount
;
for
(
int
i
=
0
;
i
<
intCount
;
i
++)
{
int
_penWidth
=
intPenWidth
/
2
-
4
*
i
;
if
(
_penWidth
<=
0
)
_penWidth
=
1
;
g
.
DrawPath
(
new
Pen
(
new
SolidBrush
(
Color
.
FromArgb
(
40
,
Color
.
White
.
R
,
Color
.
White
.
G
,
Color
.
White
.
B
)),
_penWidth
),
linePath
);
if
(
_penWidth
==
1
)
break
;
}
g
.
SetGDIHigh
();
//使用抗锯齿画圆角
foreach
(
var
item
in
lstArcs
)
{
g
.
DrawArc
(
new
Pen
(
new
SolidBrush
(
this
.
BackColor
)),
item
.
rect
,
item
.
startAngle
,
item
.
sweepAngle
);
}
//液体流动
if
(
LiquidDirection
!=
Conduit
.
LiquidDirection
.
None
)
{
Pen
p
=
new
Pen
(
new
SolidBrush
(
liquidColor
),
4
);
p
.
DashPattern
=
new
float
[]
{
6
,
6
};
p
.
DashOffset
=
intLineLeft
*
(
LiquidDirection
==
Conduit
.
LiquidDirection
.
Forward
?
-
1
:
1
);
g
.
DrawPath
(
p
,
linePath
);
}
}
/// <summary>
/// Class ArcEntity.
/// </summary>
class
ArcEntity
{
/// <summary>
/// Gets or sets the rect.
/// </summary>
/// <value>The rect.</value>
public
Rectangle
rect
{
get
;
set
;
}
/// <summary>
/// Gets or sets the start angle.
/// </summary>
/// <value>The start angle.</value>
public
float
startAngle
{
get
;
set
;
}
/// <summary>
/// Gets or sets the sweep angle.
/// </summary>
/// <value>The sweep angle.</value>
public
float
sweepAngle
{
get
;
set
;
}
}
}
/// <summary>
/// Enum LiquidDirection
/// </summary>
public
enum
LiquidDirection
{
/// <summary>
/// The none
/// </summary>
None
,
/// <summary>
/// The forward
/// </summary>
Forward
,
/// <summary>
/// The backward
/// </summary>
Backward
}
/// <summary>
/// 管道样式Enum ConduitStyle
/// </summary>
public
enum
ConduitStyle
{
/// <summary>
/// 直线 The horizontal none none
/// </summary>
Horizontal_None_None
,
/// <summary>
/// 左上The horizontal up none
/// </summary>
Horizontal_Up_None
,
/// <summary>
/// 左下The horizontal down none
/// </summary>
Horizontal_Down_None
,
/// <summary>
/// 右上The horizontal none up
/// </summary>
Horizontal_None_Up
,
/// <summary>
/// 右下The horizontal none down
/// </summary>
Horizontal_None_Down
,
/// <summary>
/// 左下右上The horizontal down up
/// </summary>
Horizontal_Down_Up
,
/// <summary>
/// 左上右下The horizontal up down
/// </summary>
Horizontal_Up_Down
,
/// <summary>
/// 左上,右上The horizontal up up
/// </summary>
Horizontal_Up_Up
,
/// <summary>
/// 左下右下The horizontal down down
/// </summary>
Horizontal_Down_Down
,
/// <summary>
/// 竖线The vertical none none
/// </summary>
Vertical_None_None
,
/// <summary>
/// 上左The vertical left none
/// </summary>
Vertical_Left_None
,
/// <summary>
/// 上右The vertical right none
/// </summary>
Vertical_Right_None
,
/// <summary>
/// 下左The vertical none left
/// </summary>
Vertical_None_Left
,
/// <summary>
/// 下右The vertical none right
/// </summary>
Vertical_None_Right
,
/// <summary>
/// 上左下右The vertical left right
/// </summary>
Vertical_Left_Right
,
/// <summary>
/// 上右下左The vertical right left
/// </summary>
Vertical_Right_Left
,
/// <summary>
/// 上左下左The vertical left left
/// </summary>
Vertical_Left_Left
,
/// <summary>
/// 上右下右The vertical right left
/// </summary>
Vertical_Right_Right
,
}
}
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
5b08e1d
...
...
@@ -66,6 +66,9 @@
<Compile Include="Controls\ComboBox\UCComboxGridPanel.Designer.cs">
<DependentUpon>UCComboxGridPanel.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Conduit\UCConduit.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\DataGridView\DataGridViewCellEntity.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventArgs.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventHandler.cs" />
...
...
HZH_Controls/Test/Form1.Designer.cs
查看文件 @
5b08e1d
...
...
@@ -97,6 +97,7 @@
this
.
ucSplitLine_V1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_V
();
this
.
ucSplitLine_H1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_H
();
this
.
button11
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button12
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox9
.
SuspendLayout
();
this
.
groupBox7
.
SuspendLayout
();
...
...
@@ -1217,6 +1218,16 @@
this
.
button11
.
UseVisualStyleBackColor
=
true
;
this
.
button11
.
Click
+=
new
System
.
EventHandler
(
this
.
button11_Click
);
//
// button12
//
this
.
button12
.
Location
=
new
System
.
Drawing
.
Point
(
241
,
49
);
this
.
button12
.
Name
=
"button12"
;
this
.
button12
.
Size
=
new
System
.
Drawing
.
Size
(
62
,
23
);
this
.
button12
.
TabIndex
=
0
;
this
.
button12
.
Text
=
"工业组件"
;
this
.
button12
.
UseVisualStyleBackColor
=
true
;
this
.
button12
.
Click
+=
new
System
.
EventHandler
(
this
.
button12_Click
);
//
// Form1
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -1233,6 +1244,7 @@
this
.
Controls
.
Add
(
this
.
button4
);
this
.
Controls
.
Add
(
this
.
button3
);
this
.
Controls
.
Add
(
this
.
button2
);
this
.
Controls
.
Add
(
this
.
button12
);
this
.
Controls
.
Add
(
this
.
button11
);
this
.
Controls
.
Add
(
this
.
button9
);
this
.
Controls
.
Add
(
this
.
button8
);
...
...
@@ -1331,6 +1343,7 @@
private
HZH_Controls
.
Controls
.
TreeViewEx
treeViewEx1
;
private
HZH_Controls
.
Controls
.
UCListExt
ucListExt1
;
private
System
.
Windows
.
Forms
.
Button
button11
;
private
System
.
Windows
.
Forms
.
Button
button12
;
}
}
HZH_Controls/Test/Form1.cs
查看文件 @
5b08e1d
...
...
@@ -227,6 +227,11 @@ namespace Test
{
new
Form3
().
Show
();
}
private
void
button12_Click
(
object
sender
,
EventArgs
e
)
{
new
Form4
().
Show
();
}
}
}
HZH_Controls/Test/Form3.Designer.cs
查看文件 @
5b08e1d
...
...
@@ -28,41 +28,41 @@
/// </summary>
private
void
InitializeComponent
()
{
this
.
ucMeter11
=
new
HZH_Controls
.
Controls
.
UCMeter
();
this
.
ucMeter1
=
new
HZH_Controls
.
Controls
.
UCMeter
();
this
.
ucMeter2
=
new
HZH_Controls
.
Controls
.
UCMeter
();
this
.
ucMeter1
=
new
HZH_Controls
.
Controls
.
UCMeter
();
this
.
ucMeter11
=
new
HZH_Controls
.
Controls
.
UCMeter
();
this
.
SuspendLayout
();
//
// ucMeter
11
// ucMeter
2
//
this
.
ucMeter
11
.
BoundaryLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ExternalRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
FixedText
=
"km/h
"
;
this
.
ucMeter
11
.
InsideRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
25
);
this
.
ucMeter
11
.
MaxValue
=
new
decimal
(
new
int
[]
{
18
0
,
this
.
ucMeter
2
.
BoundaryLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ExternalRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
FixedText
=
"体重kg
"
;
this
.
ucMeter
2
.
InsideRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
Location
=
new
System
.
Drawing
.
Point
(
589
,
25
);
this
.
ucMeter
2
.
MaxValue
=
new
decimal
(
new
int
[]
{
20
0
,
0
,
0
,
0
});
this
.
ucMeter
11
.
MeterDegrees
=
25
0
;
this
.
ucMeter
11
.
MinValue
=
new
decimal
(
new
int
[]
{
this
.
ucMeter
2
.
MeterDegrees
=
36
0
;
this
.
ucMeter
2
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
ucMeter
11
.
Name
=
"ucMeter11
"
;
this
.
ucMeter
11
.
PointerColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ScaleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ScaleValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
Size
=
new
System
.
Drawing
.
Size
(
250
,
254
);
this
.
ucMeter
11
.
SplitCount
=
9
;
this
.
ucMeter
11
.
TabIndex
=
0
;
this
.
ucMeter
11
.
TextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
TextFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10F
);
this
.
ucMeter
11
.
TextLocation
=
HZH_Controls
.
Controls
.
MeterTextLocation
.
Top
;
this
.
ucMeter
11
.
Value
=
new
decimal
(
new
int
[]
{
80
,
this
.
ucMeter
2
.
Name
=
"ucMeter2
"
;
this
.
ucMeter
2
.
PointerColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ScaleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ScaleValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
Size
=
new
System
.
Drawing
.
Size
(
250
,
254
);
this
.
ucMeter
2
.
SplitCount
=
10
;
this
.
ucMeter
2
.
TabIndex
=
0
;
this
.
ucMeter
2
.
TextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
TextFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10F
);
this
.
ucMeter
2
.
TextLocation
=
HZH_Controls
.
Controls
.
MeterTextLocation
.
Top
;
this
.
ucMeter
2
.
Value
=
new
decimal
(
new
int
[]
{
65
,
0
,
0
,
0
});
...
...
@@ -101,35 +101,35 @@
0
,
0
});
//
// ucMeter
2
// ucMeter
11
//
this
.
ucMeter
2
.
BoundaryLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ExternalRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
FixedText
=
"体重kg
"
;
this
.
ucMeter
2
.
InsideRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
Location
=
new
System
.
Drawing
.
Point
(
554
,
25
);
this
.
ucMeter
2
.
MaxValue
=
new
decimal
(
new
int
[]
{
20
0
,
this
.
ucMeter
11
.
BoundaryLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ExternalRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
FixedText
=
"km/h
"
;
this
.
ucMeter
11
.
InsideRoundColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
25
);
this
.
ucMeter
11
.
MaxValue
=
new
decimal
(
new
int
[]
{
18
0
,
0
,
0
,
0
});
this
.
ucMeter
2
.
MeterDegrees
=
36
0
;
this
.
ucMeter
2
.
MinValue
=
new
decimal
(
new
int
[]
{
this
.
ucMeter
11
.
MeterDegrees
=
25
0
;
this
.
ucMeter
11
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
ucMeter
2
.
Name
=
"ucMeter2
"
;
this
.
ucMeter
2
.
PointerColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ScaleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
ScaleValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
Size
=
new
System
.
Drawing
.
Size
(
250
,
254
);
this
.
ucMeter
2
.
SplitCount
=
10
;
this
.
ucMeter
2
.
TabIndex
=
0
;
this
.
ucMeter
2
.
TextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
2
.
TextFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10F
);
this
.
ucMeter
2
.
TextLocation
=
HZH_Controls
.
Controls
.
MeterTextLocation
.
Top
;
this
.
ucMeter
2
.
Value
=
new
decimal
(
new
int
[]
{
this
.
ucMeter
11
.
Name
=
"ucMeter11
"
;
this
.
ucMeter
11
.
PointerColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ScaleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
ScaleValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
Size
=
new
System
.
Drawing
.
Size
(
250
,
254
);
this
.
ucMeter
11
.
SplitCount
=
9
;
this
.
ucMeter
11
.
TabIndex
=
0
;
this
.
ucMeter
11
.
TextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucMeter
11
.
TextFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10F
);
this
.
ucMeter
11
.
TextLocation
=
HZH_Controls
.
Controls
.
MeterTextLocation
.
Top
;
this
.
ucMeter
11
.
Value
=
new
decimal
(
new
int
[]
{
65
,
0
,
0
,
...
...
@@ -139,7 +139,7 @@
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1028
,
6
40
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1028
,
6
79
);
this
.
Controls
.
Add
(
this
.
ucMeter2
);
this
.
Controls
.
Add
(
this
.
ucMeter1
);
this
.
Controls
.
Add
(
this
.
ucMeter11
);
...
...
HZH_Controls/Test/Form3.cs
查看文件 @
5b08e1d
...
...
@@ -15,5 +15,6 @@ namespace Test
{
InitializeComponent
();
}
}
}
HZH_Controls/Test/Form4.Designer.cs
0 → 100644
查看文件 @
5b08e1d
namespace
Test
{
partial
class
Form4
{
/// <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
.
ucConduit9
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit22
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit24
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit23
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit8
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit7
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit6
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit5
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit4
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit3
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit2
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit18
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit17
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit19
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit20
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit21
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit25
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit16
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit15
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit14
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit13
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit12
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit27
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit11
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit10
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit1
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
SuspendLayout
();
//
// ucConduit9
//
this
.
ucConduit9
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit9
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Down_Down
;
this
.
ucConduit9
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit9
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit9
.
LiquidSpeed
=
100
;
this
.
ucConduit9
.
Location
=
new
System
.
Drawing
.
Point
(
35
,
171
);
this
.
ucConduit9
.
Name
=
"ucConduit9"
;
this
.
ucConduit9
.
Size
=
new
System
.
Drawing
.
Size
(
196
,
37
);
this
.
ucConduit9
.
TabIndex
=
2
;
//
// ucConduit22
//
this
.
ucConduit22
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit22
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_None
;
this
.
ucConduit22
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit22
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit22
.
LiquidSpeed
=
100
;
this
.
ucConduit22
.
Location
=
new
System
.
Drawing
.
Point
(
36
,
208
);
this
.
ucConduit22
.
Name
=
"ucConduit22"
;
this
.
ucConduit22
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
241
);
this
.
ucConduit22
.
TabIndex
=
17
;
//
// ucConduit24
//
this
.
ucConduit24
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit24
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Up_None
;
this
.
ucConduit24
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit24
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit24
.
LiquidSpeed
=
100
;
this
.
ucConduit24
.
Location
=
new
System
.
Drawing
.
Point
(
177
,
517
);
this
.
ucConduit24
.
Name
=
"ucConduit24"
;
this
.
ucConduit24
.
Size
=
new
System
.
Drawing
.
Size
(
164
,
37
);
this
.
ucConduit24
.
TabIndex
=
17
;
//
// ucConduit23
//
this
.
ucConduit23
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit23
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Down_Down
;
this
.
ucConduit23
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit23
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit23
.
LiquidSpeed
=
100
;
this
.
ucConduit23
.
Location
=
new
System
.
Drawing
.
Point
(
107
,
412
);
this
.
ucConduit23
.
Name
=
"ucConduit23"
;
this
.
ucConduit23
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
37
);
this
.
ucConduit23
.
TabIndex
=
17
;
//
// ucConduit8
//
this
.
ucConduit8
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit8
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Up_Up
;
this
.
ucConduit8
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit8
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit8
.
LiquidSpeed
=
100
;
this
.
ucConduit8
.
Location
=
new
System
.
Drawing
.
Point
(
35
,
449
);
this
.
ucConduit8
.
Name
=
"ucConduit8"
;
this
.
ucConduit8
.
Size
=
new
System
.
Drawing
.
Size
(
110
,
37
);
this
.
ucConduit8
.
TabIndex
=
17
;
//
// ucConduit7
//
this
.
ucConduit7
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit7
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Up_Down
;
this
.
ucConduit7
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit7
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit7
.
LiquidSpeed
=
50
;
this
.
ucConduit7
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
102
);
this
.
ucConduit7
.
Name
=
"ucConduit7"
;
this
.
ucConduit7
.
Size
=
new
System
.
Drawing
.
Size
(
145
,
37
);
this
.
ucConduit7
.
TabIndex
=
16
;
//
// ucConduit6
//
this
.
ucConduit6
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit6
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Down_Up
;
this
.
ucConduit6
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit6
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit6
.
LiquidSpeed
=
50
;
this
.
ucConduit6
.
Location
=
new
System
.
Drawing
.
Point
(
654
,
171
);
this
.
ucConduit6
.
Name
=
"ucConduit6"
;
this
.
ucConduit6
.
Size
=
new
System
.
Drawing
.
Size
(
127
,
37
);
this
.
ucConduit6
.
TabIndex
=
15
;
//
// ucConduit5
//
this
.
ucConduit5
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit5
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_None_Down
;
this
.
ucConduit5
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit5
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit5
.
LiquidSpeed
=
50
;
this
.
ucConduit5
.
Location
=
new
System
.
Drawing
.
Point
(
530
,
12
);
this
.
ucConduit5
.
Name
=
"ucConduit5"
;
this
.
ucConduit5
.
Size
=
new
System
.
Drawing
.
Size
(
353
,
37
);
this
.
ucConduit5
.
TabIndex
=
14
;
//
// ucConduit4
//
this
.
ucConduit4
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit4
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_None_Up
;
this
.
ucConduit4
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit4
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit4
.
LiquidSpeed
=
100
;
this
.
ucConduit4
.
Location
=
new
System
.
Drawing
.
Point
(
415
,
473
);
this
.
ucConduit4
.
Name
=
"ucConduit4"
;
this
.
ucConduit4
.
Size
=
new
System
.
Drawing
.
Size
(
103
,
37
);
this
.
ucConduit4
.
TabIndex
=
13
;
//
// ucConduit3
//
this
.
ucConduit3
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit3
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Down_None
;
this
.
ucConduit3
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit3
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit3
.
LiquidSpeed
=
50
;
this
.
ucConduit3
.
Location
=
new
System
.
Drawing
.
Point
(
336
,
12
);
this
.
ucConduit3
.
Name
=
"ucConduit3"
;
this
.
ucConduit3
.
Size
=
new
System
.
Drawing
.
Size
(
196
,
37
);
this
.
ucConduit3
.
TabIndex
=
12
;
//
// ucConduit2
//
this
.
ucConduit2
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit2
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_Up_None
;
this
.
ucConduit2
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit2
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit2
.
LiquidSpeed
=
50
;
this
.
ucConduit2
.
Location
=
new
System
.
Drawing
.
Point
(
654
,
208
);
this
.
ucConduit2
.
Name
=
"ucConduit2"
;
this
.
ucConduit2
.
Size
=
new
System
.
Drawing
.
Size
(
196
,
37
);
this
.
ucConduit2
.
TabIndex
=
11
;
//
// ucConduit18
//
this
.
ucConduit18
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit18
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Right_Right
;
this
.
ucConduit18
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit18
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit18
.
LiquidSpeed
=
50
;
this
.
ucConduit18
.
Location
=
new
System
.
Drawing
.
Point
(
575
,
88
);
this
.
ucConduit18
.
Name
=
"ucConduit18"
;
this
.
ucConduit18
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
193
);
this
.
ucConduit18
.
TabIndex
=
10
;
//
// ucConduit17
//
this
.
ucConduit17
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit17
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Left_Left
;
this
.
ucConduit17
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit17
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit17
.
LiquidSpeed
=
50
;
this
.
ucConduit17
.
Location
=
new
System
.
Drawing
.
Point
(
612
,
243
);
this
.
ucConduit17
.
Name
=
"ucConduit17"
;
this
.
ucConduit17
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
134
);
this
.
ucConduit17
.
TabIndex
=
9
;
//
// ucConduit19
//
this
.
ucConduit19
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit19
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Left_Left
;
this
.
ucConduit19
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit19
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit19
.
LiquidSpeed
=
50
;
this
.
ucConduit19
.
Location
=
new
System
.
Drawing
.
Point
(
481
,
180
);
this
.
ucConduit19
.
Name
=
"ucConduit19"
;
this
.
ucConduit19
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
125
);
this
.
ucConduit19
.
TabIndex
=
8
;
//
// ucConduit20
//
this
.
ucConduit20
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit20
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_None_None
;
this
.
ucConduit20
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit20
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit20
.
LiquidSpeed
=
100
;
this
.
ucConduit20
.
Location
=
new
System
.
Drawing
.
Point
(
231
,
268
);
this
.
ucConduit20
.
Name
=
"ucConduit20"
;
this
.
ucConduit20
.
Size
=
new
System
.
Drawing
.
Size
(
250
,
37
);
this
.
ucConduit20
.
TabIndex
=
8
;
//
// ucConduit21
//
this
.
ucConduit21
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit21
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_Right
;
this
.
ucConduit21
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit21
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit21
.
LiquidSpeed
=
100
;
this
.
ucConduit21
.
Location
=
new
System
.
Drawing
.
Point
(
194
,
204
);
this
.
ucConduit21
.
Name
=
"ucConduit21"
;
this
.
ucConduit21
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
101
);
this
.
ucConduit21
.
TabIndex
=
8
;
//
// ucConduit25
//
this
.
ucConduit25
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit25
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_None
;
this
.
ucConduit25
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit25
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit25
.
LiquidSpeed
=
100
;
this
.
ucConduit25
.
Location
=
new
System
.
Drawing
.
Point
(
178
,
449
);
this
.
ucConduit25
.
Name
=
"ucConduit25"
;
this
.
ucConduit25
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
69
);
this
.
ucConduit25
.
TabIndex
=
8
;
//
// ucConduit16
//
this
.
ucConduit16
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit16
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Right_Left
;
this
.
ucConduit16
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit16
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit16
.
LiquidSpeed
=
100
;
this
.
ucConduit16
.
Location
=
new
System
.
Drawing
.
Point
(
341
,
357
);
this
.
ucConduit16
.
Name
=
"ucConduit16"
;
this
.
ucConduit16
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
197
);
this
.
ucConduit16
.
TabIndex
=
8
;
//
// ucConduit15
//
this
.
ucConduit15
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit15
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Left_Right
;
this
.
ucConduit15
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit15
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit15
.
LiquidSpeed
=
100
;
this
.
ucConduit15
.
Location
=
new
System
.
Drawing
.
Point
(
378
,
357
);
this
.
ucConduit15
.
Name
=
"ucConduit15"
;
this
.
ucConduit15
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
153
);
this
.
ucConduit15
.
TabIndex
=
7
;
//
// ucConduit14
//
this
.
ucConduit14
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit14
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_Right
;
this
.
ucConduit14
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit14
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit14
.
LiquidSpeed
=
50
;
this
.
ucConduit14
.
Location
=
new
System
.
Drawing
.
Point
(
444
,
139
);
this
.
ucConduit14
.
Name
=
"ucConduit14"
;
this
.
ucConduit14
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
79
);
this
.
ucConduit14
.
TabIndex
=
6
;
//
// ucConduit13
//
this
.
ucConduit13
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit13
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_Left
;
this
.
ucConduit13
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit13
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit13
.
LiquidSpeed
=
50
;
this
.
ucConduit13
.
Location
=
new
System
.
Drawing
.
Point
(
846
,
48
);
this
.
ucConduit13
.
Name
=
"ucConduit13"
;
this
.
ucConduit13
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
197
);
this
.
ucConduit13
.
TabIndex
=
5
;
//
// ucConduit12
//
this
.
ucConduit12
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit12
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Right_None
;
this
.
ucConduit12
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit12
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Forward
;
this
.
ucConduit12
.
LiquidSpeed
=
50
;
this
.
ucConduit12
.
Location
=
new
System
.
Drawing
.
Point
(
481
,
339
);
this
.
ucConduit12
.
Name
=
"ucConduit12"
;
this
.
ucConduit12
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
134
);
this
.
ucConduit12
.
TabIndex
=
4
;
//
// ucConduit27
//
this
.
ucConduit27
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit27
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_None_None
;
this
.
ucConduit27
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit27
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit27
.
LiquidSpeed
=
50
;
this
.
ucConduit27
.
Location
=
new
System
.
Drawing
.
Point
(
516
,
340
);
this
.
ucConduit27
.
Name
=
"ucConduit27"
;
this
.
ucConduit27
.
Size
=
new
System
.
Drawing
.
Size
(
97
,
37
);
this
.
ucConduit27
.
TabIndex
=
3
;
//
// ucConduit11
//
this
.
ucConduit11
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit11
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_Left_None
;
this
.
ucConduit11
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit11
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit11
.
LiquidSpeed
=
50
;
this
.
ucConduit11
.
Location
=
new
System
.
Drawing
.
Point
(
744
,
88
);
this
.
ucConduit11
.
Name
=
"ucConduit11"
;
this
.
ucConduit11
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
83
);
this
.
ucConduit11
.
TabIndex
=
3
;
//
// ucConduit10
//
this
.
ucConduit10
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit10
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Vertical_None_None
;
this
.
ucConduit10
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit10
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit10
.
LiquidSpeed
=
50
;
this
.
ucConduit10
.
Location
=
new
System
.
Drawing
.
Point
(
337
,
48
);
this
.
ucConduit10
.
Name
=
"ucConduit10"
;
this
.
ucConduit10
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
57
);
this
.
ucConduit10
.
TabIndex
=
18
;
//
// ucConduit1
//
this
.
ucConduit1
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucConduit1
.
ConduitStyle
=
HZH_Controls
.
Controls
.
Conduit
.
ConduitStyle
.
Horizontal_None_None
;
this
.
ucConduit1
.
LiquidColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
3
)))),
((
int
)(((
byte
)(
169
)))),
((
int
)(((
byte
)(
243
)))));
this
.
ucConduit1
.
LiquidDirection
=
HZH_Controls
.
Controls
.
Conduit
.
LiquidDirection
.
Backward
;
this
.
ucConduit1
.
LiquidSpeed
=
50
;
this
.
ucConduit1
.
Location
=
new
System
.
Drawing
.
Point
(
611
,
89
);
this
.
ucConduit1
.
Name
=
"ucConduit1"
;
this
.
ucConduit1
.
Size
=
new
System
.
Drawing
.
Size
(
136
,
37
);
this
.
ucConduit1
.
TabIndex
=
19
;
//
// Form4
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
905
,
583
);
this
.
Controls
.
Add
(
this
.
ucConduit9
);
this
.
Controls
.
Add
(
this
.
ucConduit22
);
this
.
Controls
.
Add
(
this
.
ucConduit24
);
this
.
Controls
.
Add
(
this
.
ucConduit23
);
this
.
Controls
.
Add
(
this
.
ucConduit8
);
this
.
Controls
.
Add
(
this
.
ucConduit7
);
this
.
Controls
.
Add
(
this
.
ucConduit6
);
this
.
Controls
.
Add
(
this
.
ucConduit5
);
this
.
Controls
.
Add
(
this
.
ucConduit4
);
this
.
Controls
.
Add
(
this
.
ucConduit3
);
this
.
Controls
.
Add
(
this
.
ucConduit2
);
this
.
Controls
.
Add
(
this
.
ucConduit18
);
this
.
Controls
.
Add
(
this
.
ucConduit17
);
this
.
Controls
.
Add
(
this
.
ucConduit19
);
this
.
Controls
.
Add
(
this
.
ucConduit20
);
this
.
Controls
.
Add
(
this
.
ucConduit21
);
this
.
Controls
.
Add
(
this
.
ucConduit25
);
this
.
Controls
.
Add
(
this
.
ucConduit16
);
this
.
Controls
.
Add
(
this
.
ucConduit15
);
this
.
Controls
.
Add
(
this
.
ucConduit14
);
this
.
Controls
.
Add
(
this
.
ucConduit13
);
this
.
Controls
.
Add
(
this
.
ucConduit12
);
this
.
Controls
.
Add
(
this
.
ucConduit27
);
this
.
Controls
.
Add
(
this
.
ucConduit11
);
this
.
Controls
.
Add
(
this
.
ucConduit10
);
this
.
Controls
.
Add
(
this
.
ucConduit1
);
this
.
Name
=
"Form4"
;
this
.
Text
=
"Form4"
;
this
.
ResumeLayout
(
false
);
}
#
endregion
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit9
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit8
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit7
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit6
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit5
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit4
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit3
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit2
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit18
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit17
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit16
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit15
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit14
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit13
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit12
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit11
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit10
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit1
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit19
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit20
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit21
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit22
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit23
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit24
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit25
;
private
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
ucConduit27
;
}
}
\ No newline at end of file
HZH_Controls/Test/Form4.cs
0 → 100644
查看文件 @
5b08e1d
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
Form4
:
Form
{
public
Form4
()
{
InitializeComponent
();
}
}
}
HZH_Controls/Test/Form4.resx
0 → 100644
查看文件 @
5b08e1d
<?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/Test/Test.csproj
查看文件 @
5b08e1d
...
...
@@ -62,6 +62,12 @@
<Compile Include="Form3.Designer.cs">
<DependentUpon>Form3.cs</DependentUpon>
</Compile>
<Compile Include="Form4.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form4.Designer.cs">
<DependentUpon>Form4.cs</DependentUpon>
</Compile>
<Compile Include="FrmOKCancel1Test.cs">
<SubType>Form</SubType>
</Compile>
...
...
@@ -103,6 +109,9 @@
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form4.resx">
<DependentUpon>Form4.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmOKCancel1Test.resx">
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
</EmbeddedResource>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论