Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 709189b7
由
HZH
编写于
2019-09-03 08:49:42 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改名称
1 个父辈
304b32d8
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
90 行增加
和
69 行删除
HZH_Controls/HZH_Controls/Controls/Wave/UCWaveChart.cs
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/Test/Form2.cs
HZH_Controls/Test/Form2.resx
HZH_Controls/HZH_Controls/Controls/Wave/UCWaveChart.cs
查看文件 @
709189b
...
@@ -17,7 +17,7 @@ using System.Windows.Forms;
...
@@ -17,7 +17,7 @@ using System.Windows.Forms;
namespace
HZH_Controls.Controls
namespace
HZH_Controls.Controls
{
{
public
class
UCWave
WithSource
:
UCControlBase
public
class
UCWave
Chart
:
UCControlBase
{
{
private
int
m_waveActualWidth
=
50
;
private
int
m_waveActualWidth
=
50
;
...
@@ -78,7 +78,7 @@ namespace HZH_Controls.Controls
...
@@ -78,7 +78,7 @@ namespace HZH_Controls.Controls
}
}
}
}
private
Color
m_lineColor
=
Color
.
FromArgb
(
150
,
73
,
119
,
232
);
private
Color
m_lineColor
=
Color
.
FromArgb
(
150
,
255
,
77
,
59
);
[
Description
(
"曲线颜色"
),
Category
(
"自定义"
)]
[
Description
(
"曲线颜色"
),
Category
(
"自定义"
)]
public
Color
LineColor
public
Color
LineColor
...
@@ -92,7 +92,7 @@ namespace HZH_Controls.Controls
...
@@ -92,7 +92,7 @@ namespace HZH_Controls.Controls
}
}
}
}
private
Color
m_gridLineColor
=
Color
.
FromArgb
(
50
,
73
,
119
,
232
);
private
Color
m_gridLineColor
=
Color
.
FromArgb
(
50
,
255
,
77
,
59
);
[
Description
(
"网格线颜色"
),
Category
(
"自定义"
)]
[
Description
(
"网格线颜色"
),
Category
(
"自定义"
)]
public
Color
GridLineColor
public
Color
GridLineColor
...
@@ -105,7 +105,7 @@ namespace HZH_Controls.Controls
...
@@ -105,7 +105,7 @@ namespace HZH_Controls.Controls
}
}
}
}
private
Color
m_gridLineTextColor
=
Color
.
FromArgb
(
150
,
73
,
119
,
232
);
private
Color
m_gridLineTextColor
=
Color
.
FromArgb
(
150
,
255
,
77
,
59
);
[
Description
(
"网格文本颜色"
),
Category
(
"自定义"
)]
[
Description
(
"网格文本颜色"
),
Category
(
"自定义"
)]
public
Color
GridLineTextColor
public
Color
GridLineTextColor
...
@@ -144,7 +144,7 @@ namespace HZH_Controls.Controls
...
@@ -144,7 +144,7 @@ namespace HZH_Controls.Controls
Rectangle
m_drawRect
;
Rectangle
m_drawRect
;
int
m_waveCount
=
0
;
int
m_waveCount
=
0
;
public
UCWave
WithSource
()
public
UCWave
Chart
()
{
{
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
...
@@ -156,7 +156,7 @@ namespace HZH_Controls.Controls
...
@@ -156,7 +156,7 @@ namespace HZH_Controls.Controls
this
.
SizeChanged
+=
UCWaveWithSource_SizeChanged
;
this
.
SizeChanged
+=
UCWaveWithSource_SizeChanged
;
this
.
IsShowRect
=
true
;
this
.
IsShowRect
=
true
;
this
.
RectColor
=
Color
.
FromArgb
(
232
,
232
,
232
);
this
.
RectColor
=
Color
.
FromArgb
(
232
,
232
,
232
);
this
.
FillColor
=
Color
.
FromArgb
(
197
,
229
,
250
);
this
.
FillColor
=
Color
.
FromArgb
(
50
,
255
,
77
,
59
);
this
.
RectWidth
=
1
;
this
.
RectWidth
=
1
;
this
.
ConerRadius
=
10
;
this
.
ConerRadius
=
10
;
this
.
IsRadius
=
true
;
this
.
IsRadius
=
true
;
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
709189b
...
@@ -38,6 +38,9 @@
...
@@ -38,6 +38,9 @@
this
.
trackBar3
=
new
System
.
Windows
.
Forms
.
TrackBar
();
this
.
trackBar3
=
new
System
.
Windows
.
Forms
.
TrackBar
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
timer2
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
ucProcessEllipse1
=
new
HZH_Controls
.
Controls
.
UCProcessEllipse
();
this
.
ucProcessEllipse2
=
new
HZH_Controls
.
Controls
.
UCProcessEllipse
();
this
.
ucledNums2
=
new
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
();
this
.
ucledNums2
=
new
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
();
this
.
ucledNums1
=
new
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
();
this
.
ucledNums1
=
new
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
();
this
.
ucledDataTime1
=
new
HZH_Controls
.
Controls
.
UCLEDDataTime
();
this
.
ucledDataTime1
=
new
HZH_Controls
.
Controls
.
UCLEDDataTime
();
...
@@ -59,7 +62,6 @@
...
@@ -59,7 +62,6 @@
this
.
ucTrackBar1
=
new
HZH_Controls
.
Controls
.
UCTrackBar
();
this
.
ucTrackBar1
=
new
HZH_Controls
.
Controls
.
UCTrackBar
();
this
.
ucProcessWave2
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave2
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave1
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave1
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucWaveWithSource1
=
new
HZH_Controls
.
Controls
.
UCWaveWithSource
();
this
.
ucWave1
=
new
HZH_Controls
.
Controls
.
UCWave
();
this
.
ucWave1
=
new
HZH_Controls
.
Controls
.
UCWave
();
this
.
ucProcessLineExt1
=
new
HZH_Controls
.
Controls
.
UCProcessLineExt
();
this
.
ucProcessLineExt1
=
new
HZH_Controls
.
Controls
.
UCProcessLineExt
();
this
.
ucProcessLine1
=
new
HZH_Controls
.
Controls
.
UCProcessLine
();
this
.
ucProcessLine1
=
new
HZH_Controls
.
Controls
.
UCProcessLine
();
...
@@ -77,8 +79,7 @@
...
@@ -77,8 +79,7 @@
this
.
ucPanelTitle1
=
new
HZH_Controls
.
Controls
.
UCPanelTitle
();
this
.
ucPanelTitle1
=
new
HZH_Controls
.
Controls
.
UCPanelTitle
();
this
.
ucStep2
=
new
HZH_Controls
.
Controls
.
UCStep
();
this
.
ucStep2
=
new
HZH_Controls
.
Controls
.
UCStep
();
this
.
ucStep1
=
new
HZH_Controls
.
Controls
.
UCStep
();
this
.
ucStep1
=
new
HZH_Controls
.
Controls
.
UCStep
();
this
.
ucProcessEllipse2
=
new
HZH_Controls
.
Controls
.
UCProcessEllipse
();
this
.
ucWaveChart1
=
new
HZH_Controls
.
Controls
.
UCWaveChart
();
this
.
ucProcessEllipse1
=
new
HZH_Controls
.
Controls
.
UCProcessEllipse
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar1
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar1
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar2
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar2
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar3
)).
BeginInit
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
trackBar3
)).
BeginInit
();
...
@@ -165,14 +166,54 @@
...
@@ -165,14 +166,54 @@
this
.
button1
.
UseVisualStyleBackColor
=
true
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click_1
);
this
.
button1
.
Click
+=
new
System
.
EventHandler
(
this
.
button1_Click_1
);
//
//
// timer2
//
this
.
timer2
.
Enabled
=
true
;
this
.
timer2
.
Interval
=
1000
;
this
.
timer2
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer2_Tick
);
//
// ucProcessEllipse1
//
this
.
ucProcessEllipse1
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
173
);
this
.
ucProcessEllipse1
.
MaxValue
=
100
;
this
.
ucProcessEllipse1
.
Name
=
"ucProcessEllipse1"
;
this
.
ucProcessEllipse1
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Ring
;
this
.
ucProcessEllipse1
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucProcessEllipse1
.
TabIndex
=
21
;
this
.
ucProcessEllipse1
.
Value
=
0
;
this
.
ucProcessEllipse1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse1
.
ValueMargin
=
5
;
this
.
ucProcessEllipse1
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
this
.
ucProcessEllipse1
.
ValueWidth
=
30
;
//
// ucProcessEllipse2
//
this
.
ucProcessEllipse2
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
173
);
this
.
ucProcessEllipse2
.
MaxValue
=
100
;
this
.
ucProcessEllipse2
.
Name
=
"ucProcessEllipse2"
;
this
.
ucProcessEllipse2
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Sector
;
this
.
ucProcessEllipse2
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucProcessEllipse2
.
TabIndex
=
20
;
this
.
ucProcessEllipse2
.
Value
=
0
;
this
.
ucProcessEllipse2
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse2
.
ValueMargin
=
5
;
this
.
ucProcessEllipse2
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
this
.
ucProcessEllipse2
.
ValueWidth
=
30
;
//
// ucledNums2
// ucledNums2
//
//
this
.
ucledNums2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucledNums2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucledNums2
.
LineWidth
=
8
;
this
.
ucledNums2
.
LineWidth
=
8
;
this
.
ucledNums2
.
Location
=
new
System
.
Drawing
.
Point
(
11
5
8
,
296
);
this
.
ucledNums2
.
Location
=
new
System
.
Drawing
.
Point
(
11
3
8
,
296
);
this
.
ucledNums2
.
Name
=
"ucledNums2"
;
this
.
ucledNums2
.
Name
=
"ucledNums2"
;
this
.
ucledNums2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
Yes
;
this
.
ucledNums2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
Yes
;
this
.
ucledNums2
.
Size
=
new
System
.
Drawing
.
Size
(
2
5
3
,
58
);
this
.
ucledNums2
.
Size
=
new
System
.
Drawing
.
Size
(
2
7
3
,
58
);
this
.
ucledNums2
.
TabIndex
=
18
;
this
.
ucledNums2
.
TabIndex
=
18
;
this
.
ucledNums2
.
Value
=
"1.234"
;
this
.
ucledNums2
.
Value
=
"1.234"
;
//
//
...
@@ -183,7 +224,7 @@
...
@@ -183,7 +224,7 @@
this
.
ucledNums1
.
Location
=
new
System
.
Drawing
.
Point
(
856
,
296
);
this
.
ucledNums1
.
Location
=
new
System
.
Drawing
.
Point
(
856
,
296
);
this
.
ucledNums1
.
Name
=
"ucledNums1"
;
this
.
ucledNums1
.
Name
=
"ucledNums1"
;
this
.
ucledNums1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
ucledNums1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
ucledNums1
.
Size
=
new
System
.
Drawing
.
Size
(
2
53
,
58
);
this
.
ucledNums1
.
Size
=
new
System
.
Drawing
.
Size
(
2
85
,
58
);
this
.
ucledNums1
.
TabIndex
=
18
;
this
.
ucledNums1
.
TabIndex
=
18
;
this
.
ucledNums1
.
Value
=
"1.234"
;
this
.
ucledNums1
.
Value
=
"1.234"
;
//
//
...
@@ -407,27 +448,6 @@
...
@@ -407,27 +448,6 @@
this
.
ucProcessWave1
.
Value
=
40
;
this
.
ucProcessWave1
.
Value
=
40
;
this
.
ucProcessWave1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessWave1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
//
// ucWaveWithSource1
//
this
.
ucWaveWithSource1
.
ConerRadius
=
10
;
this
.
ucWaveWithSource1
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
197
)))),
((
int
)(((
byte
)(
229
)))),
((
int
)(((
byte
)(
250
)))));
this
.
ucWaveWithSource1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucWaveWithSource1
.
GridLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
50
)))),
((
int
)(((
byte
)(
73
)))),
((
int
)(((
byte
)(
119
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucWaveWithSource1
.
GridLineTextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
73
)))),
((
int
)(((
byte
)(
119
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucWaveWithSource1
.
IsRadius
=
true
;
this
.
ucWaveWithSource1
.
IsShowRect
=
true
;
this
.
ucWaveWithSource1
.
LineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
73
)))),
((
int
)(((
byte
)(
119
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucWaveWithSource1
.
LineTension
=
0.5F
;
this
.
ucWaveWithSource1
.
Location
=
new
System
.
Drawing
.
Point
(
756
,
14
);
this
.
ucWaveWithSource1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucWaveWithSource1
.
Name
=
"ucWaveWithSource1"
;
this
.
ucWaveWithSource1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucWaveWithSource1
.
RectWidth
=
1
;
this
.
ucWaveWithSource1
.
Size
=
new
System
.
Drawing
.
Size
(
385
,
182
);
this
.
ucWaveWithSource1
.
SleepTime
=
1000
;
this
.
ucWaveWithSource1
.
TabIndex
=
10
;
this
.
ucWaveWithSource1
.
WaveWidth
=
50
;
//
// ucWave1
// ucWave1
//
//
this
.
ucWave1
.
Location
=
new
System
.
Drawing
.
Point
(
249
,
337
);
this
.
ucWave1
.
Location
=
new
System
.
Drawing
.
Point
(
249
,
337
);
...
@@ -688,45 +708,33 @@
...
@@ -688,45 +708,33 @@
this
.
ucStep1
.
StepWidth
=
35
;
this
.
ucStep1
.
StepWidth
=
35
;
this
.
ucStep1
.
TabIndex
=
0
;
this
.
ucStep1
.
TabIndex
=
0
;
//
//
// ucProcessEllipse2
// ucWaveChart1
//
//
this
.
ucProcessEllipse2
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucWaveChart1
.
ConerRadius
=
10
;
this
.
ucProcessEllipse2
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucWaveChart1
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
50
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse2
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucWaveChart1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucProcessEllipse2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
173
);
this
.
ucWaveChart1
.
GridLineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
50
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse2
.
MaxValue
=
100
;
this
.
ucWaveChart1
.
GridLineTextColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse2
.
Name
=
"ucProcessEllipse2"
;
this
.
ucWaveChart1
.
IsRadius
=
true
;
this
.
ucProcessEllipse2
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Sector
;
this
.
ucWaveChart1
.
IsShowRect
=
true
;
this
.
ucProcessEllipse2
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucWaveChart1
.
LineColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse2
.
TabIndex
=
20
;
this
.
ucWaveChart1
.
LineTension
=
0.5F
;
this
.
ucProcessEllipse2
.
Value
=
0
;
this
.
ucWaveChart1
.
Location
=
new
System
.
Drawing
.
Point
(
781
,
14
);
this
.
ucProcessEllipse2
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucWaveChart1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucProcessEllipse2
.
ValueMargin
=
5
;
this
.
ucWaveChart1
.
Name
=
"ucWaveChart1"
;
this
.
ucProcessEllipse2
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
this
.
ucWaveChart1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucProcessEllipse2
.
ValueWidth
=
30
;
this
.
ucWaveChart1
.
RectWidth
=
1
;
//
this
.
ucWaveChart1
.
Size
=
new
System
.
Drawing
.
Size
(
374
,
180
);
// ucProcessEllipse1
this
.
ucWaveChart1
.
SleepTime
=
1000
;
//
this
.
ucWaveChart1
.
TabIndex
=
22
;
this
.
ucProcessEllipse1
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucWaveChart1
.
WaveWidth
=
50
;
this
.
ucProcessEllipse1
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
173
);
this
.
ucProcessEllipse1
.
MaxValue
=
100
;
this
.
ucProcessEllipse1
.
Name
=
"ucProcessEllipse1"
;
this
.
ucProcessEllipse1
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Ring
;
this
.
ucProcessEllipse1
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucProcessEllipse1
.
TabIndex
=
21
;
this
.
ucProcessEllipse1
.
Value
=
0
;
this
.
ucProcessEllipse1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse1
.
ValueMargin
=
5
;
this
.
ucProcessEllipse1
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
this
.
ucProcessEllipse1
.
ValueWidth
=
30
;
//
//
// Form2
// Form2
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1438
,
594
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1438
,
594
);
this
.
Controls
.
Add
(
this
.
ucWaveChart1
);
this
.
Controls
.
Add
(
this
.
ucProcessEllipse1
);
this
.
Controls
.
Add
(
this
.
ucProcessEllipse1
);
this
.
Controls
.
Add
(
this
.
ucProcessEllipse2
);
this
.
Controls
.
Add
(
this
.
ucProcessEllipse2
);
this
.
Controls
.
Add
(
this
.
ucledNums2
);
this
.
Controls
.
Add
(
this
.
ucledNums2
);
...
@@ -751,7 +759,6 @@
...
@@ -751,7 +759,6 @@
this
.
Controls
.
Add
(
this
.
ucTrackBar1
);
this
.
Controls
.
Add
(
this
.
ucTrackBar1
);
this
.
Controls
.
Add
(
this
.
ucProcessWave2
);
this
.
Controls
.
Add
(
this
.
ucProcessWave2
);
this
.
Controls
.
Add
(
this
.
ucProcessWave1
);
this
.
Controls
.
Add
(
this
.
ucProcessWave1
);
this
.
Controls
.
Add
(
this
.
ucWaveWithSource1
);
this
.
Controls
.
Add
(
this
.
label3
);
this
.
Controls
.
Add
(
this
.
label3
);
this
.
Controls
.
Add
(
this
.
label2
);
this
.
Controls
.
Add
(
this
.
label2
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
label1
);
...
@@ -812,7 +819,6 @@
...
@@ -812,7 +819,6 @@
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
TrackBar
trackBar3
;
private
System
.
Windows
.
Forms
.
TrackBar
trackBar3
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
HZH_Controls
.
Controls
.
UCWaveWithSource
ucWaveWithSource1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave2
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave2
;
private
HZH_Controls
.
Controls
.
UCTrackBar
ucTrackBar1
;
private
HZH_Controls
.
Controls
.
UCTrackBar
ucTrackBar1
;
...
@@ -837,6 +843,8 @@
...
@@ -837,6 +843,8 @@
private
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
ucledNums2
;
private
HZH_Controls
.
Controls
.
LED
.
UCLEDNums
ucledNums2
;
private
HZH_Controls
.
Controls
.
UCProcessEllipse
ucProcessEllipse2
;
private
HZH_Controls
.
Controls
.
UCProcessEllipse
ucProcessEllipse2
;
private
HZH_Controls
.
Controls
.
UCProcessEllipse
ucProcessEllipse1
;
private
HZH_Controls
.
Controls
.
UCProcessEllipse
ucProcessEllipse1
;
private
System
.
Windows
.
Forms
.
Timer
timer2
;
private
HZH_Controls
.
Controls
.
UCWaveChart
ucWaveChart1
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
HZH_Controls/Test/Form2.cs
查看文件 @
709189b
...
@@ -47,7 +47,7 @@ namespace Test
...
@@ -47,7 +47,7 @@ namespace Test
Random
r
=
new
Random
();
Random
r
=
new
Random
();
int
i
=
r
.
Next
(
100
,
1000
);
int
i
=
r
.
Next
(
100
,
1000
);
this
.
ucWave
WithSource
1
.
AddSource
(
i
.
ToString
(),
i
);
this
.
ucWave
Chart
1
.
AddSource
(
i
.
ToString
(),
i
);
ucledDataTime1
.
Value
=
DateTime
.
Now
;
ucledDataTime1
.
Value
=
DateTime
.
Now
;
ucledTime2
.
Value
=
DateTime
.
Now
;
ucledTime2
.
Value
=
DateTime
.
Now
;
...
@@ -81,5 +81,15 @@ namespace Test
...
@@ -81,5 +81,15 @@ namespace Test
HZH_Controls
.
Forms
.
FrmAnchorTips
.
ShowTips
(
button1
,
"测试提示信息\nTOP"
,
AnchorTipsLocation
.
TOP
);
HZH_Controls
.
Forms
.
FrmAnchorTips
.
ShowTips
(
button1
,
"测试提示信息\nTOP"
,
AnchorTipsLocation
.
TOP
);
HZH_Controls
.
Forms
.
FrmAnchorTips
.
ShowTips
(
button1
,
"测试提示信息\nBOTTOM"
,
AnchorTipsLocation
.
BOTTOM
);
HZH_Controls
.
Forms
.
FrmAnchorTips
.
ShowTips
(
button1
,
"测试提示信息\nBOTTOM"
,
AnchorTipsLocation
.
BOTTOM
);
}
}
private
void
timer2_Tick
(
object
sender
,
EventArgs
e
)
{
Random
r
=
new
Random
();
int
i
=
r
.
Next
(
1
,
10000
);
double
dbl
=
((
double
)
i
)
/
100.0000
;
string
str
=
dbl
.
ToString
(
"0.000"
);
this
.
ucledNums1
.
Value
=
str
;
this
.
ucledNums2
.
Value
=
str
;
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
HZH_Controls/Test/Form2.resx
查看文件 @
709189b
...
@@ -120,6 +120,9 @@
...
@@ -120,6 +120,9 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
<value>17, 17</value>
</metadata>
</metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论