Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 80c65399
由
HZH
编写于
2019-09-09 13:37:07 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
新增鼓风机
1 个父辈
ef1d9a97
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
3 行删除
HZH_Controls/HZH_Controls/Controls/FactoryControls/Blower/UCBlower.cs
HZH_Controls/HZH_Controls/Controls/FactoryControls/Valve/UCValve.cs
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/Form4.Designer.cs
HZH_Controls/HZH_Controls/Controls/FactoryControls/Blower/UCBlower.cs
0 → 100644
查看文件 @
80c6539
此文件的差异被折叠,
点击展开。
HZH_Controls/HZH_Controls/Controls/FactoryControls/Valve/UCValve.cs
查看文件 @
80c6539
...
...
@@ -32,6 +32,8 @@ namespace HZH_Controls.Controls
/// <seealso cref="System.Windows.Forms.UserControl" />
public
class
UCValve
:
UserControl
{
[
Description
(
"打开状态改变事件"
),
Category
(
"自定义"
)]
public
event
EventHandler
OpenChecked
;
/// <summary>
/// The valve style
/// </summary>
...
...
@@ -145,6 +147,10 @@ namespace HZH_Controls.Controls
{
opened
=
value
;
Refresh
();
if
(
OpenChecked
!=
null
)
{
OpenChecked
(
this
,
null
);
}
}
}
...
...
@@ -350,7 +356,7 @@ namespace HZH_Controls.Controls
rectJK1
=
new
Rectangle
(
this
.
Width
-
(
rectGuan
.
Width
+
this
.
Width
/
4
),
this
.
Width
/
8
,
rectGuan
.
Width
+
this
.
Width
/
4
,
rectGuan
.
Width
/
2
);
rectJK2
=
new
Rectangle
(
this
.
Width
-
(
rectGuan
.
Width
+
this
.
Width
/
4
),
this
.
Height
-
this
.
Width
/
8
-
rectGuan
.
Width
/
2
,
rectGuan
.
Width
+
this
.
Width
/
4
,
rectGuan
.
Width
/
2
);
linePath
.
AddLine
(
new
Point
(
rectGuan
.
Left
+
rectGuan
.
Width
/
2
,
rectGuan
.
Top
-
10
),
new
Point
(
rectGuan
.
Left
+
rectGuan
.
Width
/
2
,
rectGuan
.
Bottom
+
10
));
rectZ
=
new
Rectangle
(
10
,
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
/
4
)
/
2
,
rectGuan
.
Left
-
10
,
rectGuan
.
Width
/
4
);
rectZ
=
new
Rectangle
(
10
,
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
/
4
)
/
2
,
rectGuan
.
Left
-
10
,
rectGuan
.
Width
/
4
);
Point
[]
psRight
=
new
Point
[]
{
new
Point
(
rectGuan
.
Left
-
(
this
.
Width
/
8
+
5
)
,
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
/
2
)
/
2
),
...
...
@@ -363,11 +369,11 @@ namespace HZH_Controls.Controls
if
(
opened
)
{
bsPath
.
AddLine
(
(
10
+
(
rectGuan
.
Width
/
3
)
/
2
),
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
-
10
)
/
2
,
(
10
+
(
rectGuan
.
Width
/
3
)
/
2
),
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
-
10
)
/
2
+
rectGuan
.
Width
+
10
);
bsPath
.
AddLine
((
10
+
(
rectGuan
.
Width
/
3
)
/
2
),
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
-
10
)
/
2
,
(
10
+
(
rectGuan
.
Width
/
3
)
/
2
),
rectGuan
.
Top
+
(
rectGuan
.
Height
-
rectGuan
.
Width
-
10
)
/
2
+
rectGuan
.
Width
+
10
);
}
else
{
bsPath
.
AddLine
(
new
Point
(
1
,
rectGuan
.
Top
+
rectGuan
.
Height
/
2
-
3
),
new
Point
(
(
rectGuan
.
Width
+
10
),
rectGuan
.
Top
+
rectGuan
.
Height
/
2
+
4
));
bsPath
.
AddLine
(
new
Point
(
1
,
rectGuan
.
Top
+
rectGuan
.
Height
/
2
-
3
),
new
Point
(
(
rectGuan
.
Width
+
10
),
rectGuan
.
Top
+
rectGuan
.
Height
/
2
+
4
));
}
break
;
}
...
...
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
80c6539
...
...
@@ -43,6 +43,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controls\FactoryControls\Blower\UCBlower.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\FactoryControls\Bottle\UCBottle.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
HZH_Controls/Test/Form4.Designer.cs
查看文件 @
80c6539
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论