Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3976e0dd
由
HZH
编写于
2019-09-23 18:05:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
控件透明
1 个父辈
f3c18196
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
40 行增加
和
32 行删除
HZH_Controls/HZH_Controls/Controls/FactoryControls/Arrow/UCArrow.cs
HZH_Controls/HZH_Controls/Controls/FactoryControls/Conduit/UCConduit.cs
HZH_Controls/HZH_Controls/Controls/FactoryControls/Conveyor/UCConveyor.cs
HZH_Controls/Test/UC/UCTestBtns.Designer.cs
HZH_Controls/Test/UC/UCTestBtns.resx
HZH_Controls/Test/UC/UCTestConduit.Designer.cs
HZH_Controls/Test/UC/UCTestConveyor.Designer.cs
HZH_Controls/HZH_Controls/Controls/FactoryControls/Arrow/UCArrow.cs
查看文件 @
3976e0d
...
...
@@ -296,6 +296,7 @@ namespace HZH_Controls.Controls
base
.
OnPaint
(
e
);
var
g
=
e
.
Graphics
;
g
.
SetGDIHigh
();
base
.
Region
=
new
Region
(
m_path
);
g
.
FillPath
(
new
SolidBrush
(
arrowColor
),
m_path
);
...
...
HZH_Controls/HZH_Controls/Controls/FactoryControls/Conduit/UCConduit.cs
查看文件 @
3976e0d
...
...
@@ -616,6 +616,7 @@ namespace HZH_Controls.Controls.Conduit
break
;
#
endregion
}
base
.
Region
=
new
Region
(
path
);
g
.
FillPath
(
new
SolidBrush
(
conduitColor
),
path
);
//渐变色
...
...
HZH_Controls/HZH_Controls/Controls/FactoryControls/Conveyor/UCConveyor.cs
查看文件 @
3976e0d
...
...
@@ -247,14 +247,20 @@ namespace HZH_Controls.Controls
var
rectRight
=
new
Rectangle
(
m_workingRect
.
Right
-
conveyorHeight
+
5
,
(
inclination
>=
0
?
(
m_workingRect
.
Top
)
:
(
m_workingRect
.
Bottom
-
conveyorHeight
))
+
5
,
conveyorHeight
-
10
,
conveyorHeight
-
10
);
g
.
FillEllipse
(
new
SolidBrush
(
conveyorColor
),
rectRight
);
g
.
FillEllipse
(
new
SolidBrush
(
Color
.
White
),
new
Rectangle
(
rectRight
.
Left
+
(
rectRight
.
Width
-
6
)
/
2
,
rectRight
.
Top
+
(
rectRight
.
Height
-
6
)
/
2
,
6
,
6
));
//传送带
//左端
GraphicsPath
path
=
new
GraphicsPath
();
path
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Left
,
(
inclination
>=
0
?
(
m_workingRect
.
Bottom
-
conveyorHeight
)
:
m_workingRect
.
Top
),
conveyorHeight
,
conveyorHeight
),
90F
-
(
float
)
inclination
,
180F
);
GraphicsPath
pathRegion
=
new
GraphicsPath
();
path
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Left
+
3
,
(
inclination
>=
0
?
(
m_workingRect
.
Bottom
-
conveyorHeight
)
:
m_workingRect
.
Top
)
+
3
,
conveyorHeight
-
6
,
conveyorHeight
-
6
),
90F
-
(
float
)
inclination
,
180F
);
pathRegion
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Left
,
(
inclination
>=
0
?
(
m_workingRect
.
Bottom
-
conveyorHeight
)
:
m_workingRect
.
Top
),
conveyorHeight
,
conveyorHeight
),
90F
-
(
float
)
inclination
,
180F
);
//右端
path
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Right
-
conveyorHeight
,
(
inclination
>=
0
?
(
m_workingRect
.
Top
)
:
(
m_workingRect
.
Bottom
-
conveyorHeight
)),
conveyorHeight
,
conveyorHeight
),
270
-
(
float
)
inclination
,
180F
);
path
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Right
-
conveyorHeight
+
3
,
(
inclination
>=
0
?
(
m_workingRect
.
Top
)
:
(
m_workingRect
.
Bottom
-
conveyorHeight
))
+
3
,
conveyorHeight
-
6
,
conveyorHeight
-
6
),
270
-
(
float
)
inclination
,
180F
);
pathRegion
.
AddArc
(
new
Rectangle
(
m_workingRect
.
Right
-
conveyorHeight
,
(
inclination
>=
0
?
(
m_workingRect
.
Top
)
:
(
m_workingRect
.
Bottom
-
conveyorHeight
)),
conveyorHeight
,
conveyorHeight
),
270
-
(
float
)
inclination
,
180F
);
path
.
CloseAllFigures
();
base
.
Region
=
new
System
.
Drawing
.
Region
(
pathRegion
);
g
.
DrawPath
(
new
Pen
(
new
SolidBrush
(
conveyorColor
),
3
),
path
);
//液体流动
...
...
HZH_Controls/Test/UC/UCTestBtns.Designer.cs
查看文件 @
3976e0d
...
...
@@ -2016,7 +2016,7 @@
this
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
Name
=
"UCTestBtns"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
635
,
793
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
993
,
793
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
UCTestBtns_Load
);
this
.
ucControlBase1
.
ResumeLayout
(
false
);
this
.
groupBox1
.
ResumeLayout
(
false
);
...
...
HZH_Controls/Test/UC/UCTestBtns.resx
查看文件 @
3976e0d
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/UC/UCTestConduit.Designer.cs
查看文件 @
3976e0d
...
...
@@ -37,9 +37,11 @@
this
.
ucConduit7
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit6
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit3
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit4
=
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
.
ucConduit1
=
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
();
...
...
@@ -54,11 +56,9 @@
this
.
ucConduit26
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit5
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit10
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucConduit1
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
ucBottle1
=
new
HZH_Controls
.
Controls
.
UCBottle
();
this
.
ucPond2
=
new
HZH_Controls
.
Controls
.
UCPond
();
this
.
ucBlower4
=
new
HZH_Controls
.
Controls
.
UCBlower
();
this
.
ucConduit4
=
new
HZH_Controls
.
Controls
.
Conduit
.
UCConduit
();
this
.
SuspendLayout
();
//
// ucValve1
...
...
@@ -181,6 +181,19 @@
this
.
ucConduit3
.
Size
=
new
System
.
Drawing
.
Size
(
496
,
37
);
this
.
ucConduit3
.
TabIndex
=
40
;
//
// 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
.
ConduitWidth
=
50
;
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
=
50
;
this
.
ucConduit4
.
Location
=
new
System
.
Drawing
.
Point
(
935
,
313
);
this
.
ucConduit4
.
Name
=
"ucConduit4"
;
this
.
ucConduit4
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
37
);
this
.
ucConduit4
.
TabIndex
=
39
;
//
// ucConduit2
//
this
.
ucConduit2
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
...
...
@@ -220,6 +233,19 @@
this
.
ucConduit17
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
134
);
this
.
ucConduit17
.
TabIndex
=
37
;
//
// 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
.
ConduitWidth
=
50
;
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
(
581
,
194
);
this
.
ucConduit1
.
Name
=
"ucConduit1"
;
this
.
ucConduit1
.
Size
=
new
System
.
Drawing
.
Size
(
136
,
37
);
this
.
ucConduit1
.
TabIndex
=
52
;
//
// ucConduit19
//
this
.
ucConduit19
.
ConduitColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
...
...
@@ -402,19 +428,6 @@
this
.
ucConduit10
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
37
);
this
.
ucConduit10
.
TabIndex
=
47
;
//
// 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
.
ConduitWidth
=
50
;
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
(
581
,
194
);
this
.
ucConduit1
.
Name
=
"ucConduit1"
;
this
.
ucConduit1
.
Size
=
new
System
.
Drawing
.
Size
(
136
,
37
);
this
.
ucConduit1
.
TabIndex
=
52
;
//
// ucBottle1
//
this
.
ucBottle1
.
BottleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
...
...
@@ -468,19 +481,6 @@
this
.
ucBlower4
.
Size
=
new
System
.
Drawing
.
Size
(
116
,
154
);
this
.
ucBlower4
.
TabIndex
=
62
;
//
// 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
.
ConduitWidth
=
50
;
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
=
50
;
this
.
ucConduit4
.
Location
=
new
System
.
Drawing
.
Point
(
935
,
313
);
this
.
ucConduit4
.
Name
=
"ucConduit4"
;
this
.
ucConduit4
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
37
);
this
.
ucConduit4
.
TabIndex
=
39
;
//
// UCTestConduit
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
HZH_Controls/Test/UC/UCTestConveyor.Designer.cs
查看文件 @
3976e0d
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论