Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b1518153
由
HZH
编写于
2019-08-23 13:39:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
调整颜色
1 个父辈
83bdd806
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
5 行删除
HZH_Controls/HZH_Controls/Controls/Process/UCProcessWave.Designer.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessWave.cs
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessWave.Designer.cs
查看文件 @
b151815
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
197
)))),
((
int
)(((
byte
)(
229
)))),
((
int
)(((
byte
)(
250
)))));
this
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
197
)))),
((
int
)(((
byte
)(
229
)))),
((
int
)(((
byte
)(
250
)))));
this
.
Controls
.
Add
(
this
.
ucWave1
);
this
.
Controls
.
Add
(
this
.
ucWave1
);
this
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))));
this
.
Name
=
"UCProcessWave"
;
this
.
Name
=
"UCProcessWave"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
...
HZH_Controls/HZH_Controls/Controls/Process/UCProcessWave.cs
查看文件 @
b151815
...
@@ -118,6 +118,7 @@ namespace HZH_Controls.Controls
...
@@ -118,6 +118,7 @@ namespace HZH_Controls.Controls
}
}
}
}
[
Description
(
"值颜色"
),
Category
(
"自定义"
)]
public
Color
ValueColor
public
Color
ValueColor
{
{
get
{
return
this
.
ucWave1
.
WaveColor
;
}
get
{
return
this
.
ucWave1
.
WaveColor
;
}
...
@@ -127,6 +128,7 @@ namespace HZH_Controls.Controls
...
@@ -127,6 +128,7 @@ namespace HZH_Controls.Controls
}
}
}
}
[
Description
(
"边框宽度"
),
Category
(
"自定义"
)]
public
override
int
RectWidth
public
override
int
RectWidth
{
{
get
get
...
@@ -189,7 +191,7 @@ namespace HZH_Controls.Controls
...
@@ -189,7 +191,7 @@ namespace HZH_Controls.Controls
if
(!
m_isRectangle
)
if
(!
m_isRectangle
)
{
{
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
SolidBrush
solidBrush1
=
new
SolidBrush
(
Color
.
White
);
SolidBrush
solidBrush1
=
new
SolidBrush
(
RectColor
);
e
.
Graphics
.
DrawEllipse
(
new
Pen
(
solidBrush1
,
2
),
new
Rectangle
(-
1
,
this
.
ucWave1
.
Height
-
this
.
Height
-
1
,
this
.
Width
+
2
,
this
.
Height
+
2
));
e
.
Graphics
.
DrawEllipse
(
new
Pen
(
solidBrush1
,
2
),
new
Rectangle
(-
1
,
this
.
ucWave1
.
Height
-
this
.
Height
-
1
,
this
.
Width
+
2
,
this
.
Height
+
2
));
}
}
string
strValue
=
((
double
)
m_value
/
(
double
)
m_maxValue
).
ToString
(
"0.%"
);
string
strValue
=
((
double
)
m_value
/
(
double
)
m_maxValue
).
ToString
(
"0.%"
);
...
@@ -216,7 +218,7 @@ namespace HZH_Controls.Controls
...
@@ -216,7 +218,7 @@ namespace HZH_Controls.Controls
if
(!
m_isRectangle
)
if
(!
m_isRectangle
)
{
{
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
SolidBrush
solidBrush
=
new
SolidBrush
(
Color
.
White
);
SolidBrush
solidBrush
=
new
SolidBrush
(
RectColor
);
e
.
Graphics
.
DrawEllipse
(
new
Pen
(
solidBrush
,
2
),
new
Rectangle
(-
1
,
-
1
,
this
.
Width
+
2
,
this
.
Height
+
2
));
e
.
Graphics
.
DrawEllipse
(
new
Pen
(
solidBrush
,
2
),
new
Rectangle
(-
1
,
-
1
,
this
.
Width
+
2
,
this
.
Height
+
2
));
}
}
string
strValue
=
((
double
)
m_value
/
(
double
)
m_maxValue
).
ToString
(
"0.%"
);
string
strValue
=
((
double
)
m_value
/
(
double
)
m_maxValue
).
ToString
(
"0.%"
);
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
b151815
...
@@ -142,10 +142,11 @@
...
@@ -142,10 +142,11 @@
this
.
ucProcessWave2
.
EnabledTheme
=
false
;
this
.
ucProcessWave2
.
EnabledTheme
=
false
;
this
.
ucProcessWave2
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucProcessWave2
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucProcessWave2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
30F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucProcessWave2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
30F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucProcessWave2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))));
this
.
ucProcessWave2
.
IsRadius
=
false
;
this
.
ucProcessWave2
.
IsRadius
=
false
;
this
.
ucProcessWave2
.
IsRectangle
=
false
;
this
.
ucProcessWave2
.
IsRectangle
=
false
;
this
.
ucProcessWave2
.
IsShowRect
=
true
;
this
.
ucProcessWave2
.
IsShowRect
=
true
;
this
.
ucProcessWave2
.
Location
=
new
System
.
Drawing
.
Point
(
910
,
261
);
this
.
ucProcessWave2
.
Location
=
new
System
.
Drawing
.
Point
(
702
,
206
);
this
.
ucProcessWave2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucProcessWave2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucProcessWave2
.
MaxValue
=
100
;
this
.
ucProcessWave2
.
MaxValue
=
100
;
this
.
ucProcessWave2
.
Name
=
"ucProcessWave2"
;
this
.
ucProcessWave2
.
Name
=
"ucProcessWave2"
;
...
@@ -163,16 +164,17 @@
...
@@ -163,16 +164,17 @@
this
.
ucProcessWave1
.
EnabledTheme
=
false
;
this
.
ucProcessWave1
.
EnabledTheme
=
false
;
this
.
ucProcessWave1
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucProcessWave1
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucProcessWave1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
30F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucProcessWave1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
30F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucProcessWave1
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
64
)))));
this
.
ucProcessWave1
.
IsRadius
=
false
;
this
.
ucProcessWave1
.
IsRadius
=
false
;
this
.
ucProcessWave1
.
IsRectangle
=
true
;
this
.
ucProcessWave1
.
IsRectangle
=
true
;
this
.
ucProcessWave1
.
IsShowRect
=
true
;
this
.
ucProcessWave1
.
IsShowRect
=
true
;
this
.
ucProcessWave1
.
Location
=
new
System
.
Drawing
.
Point
(
756
,
221
);
this
.
ucProcessWave1
.
Location
=
new
System
.
Drawing
.
Point
(
629
,
367
);
this
.
ucProcessWave1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucProcessWave1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucProcessWave1
.
MaxValue
=
100
;
this
.
ucProcessWave1
.
MaxValue
=
100
;
this
.
ucProcessWave1
.
Name
=
"ucProcessWave1"
;
this
.
ucProcessWave1
.
Name
=
"ucProcessWave1"
;
this
.
ucProcessWave1
.
RectColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucProcessWave1
.
RectColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucProcessWave1
.
RectWidth
=
4
;
this
.
ucProcessWave1
.
RectWidth
=
4
;
this
.
ucProcessWave1
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
2
3
6
);
this
.
ucProcessWave1
.
Size
=
new
System
.
Drawing
.
Size
(
108
,
2
0
6
);
this
.
ucProcessWave1
.
TabIndex
=
11
;
this
.
ucProcessWave1
.
TabIndex
=
11
;
this
.
ucProcessWave1
.
Value
=
40
;
this
.
ucProcessWave1
.
Value
=
40
;
this
.
ucProcessWave1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
73
)))),
((
int
)(((
byte
)(
119
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucProcessWave1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
73
)))),
((
int
)(((
byte
)(
119
)))),
((
int
)(((
byte
)(
232
)))));
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论