Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 709189b7
由
HZH
编写于
2019-09-03 08:49:42 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改名称
1 个父辈
304b32d8
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
7 行删除
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;
namespace
HZH_Controls.Controls
{
public
class
UCWave
WithSource
:
UCControlBase
public
class
UCWave
Chart
:
UCControlBase
{
private
int
m_waveActualWidth
=
50
;
...
...
@@ -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
(
"自定义"
)]
public
Color
LineColor
...
...
@@ -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
(
"自定义"
)]
public
Color
GridLineColor
...
...
@@ -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
(
"自定义"
)]
public
Color
GridLineTextColor
...
...
@@ -144,7 +144,7 @@ namespace HZH_Controls.Controls
Rectangle
m_drawRect
;
int
m_waveCount
=
0
;
public
UCWave
WithSource
()
public
UCWave
Chart
()
{
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
...
...
@@ -156,7 +156,7 @@ namespace HZH_Controls.Controls
this
.
SizeChanged
+=
UCWaveWithSource_SizeChanged
;
this
.
IsShowRect
=
true
;
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
.
ConerRadius
=
10
;
this
.
IsRadius
=
true
;
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
709189b
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/Form2.cs
查看文件 @
709189b
...
...
@@ -47,7 +47,7 @@ namespace Test
Random
r
=
new
Random
();
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
;
ucledTime2
.
Value
=
DateTime
.
Now
;
...
...
@@ -81,5 +81,15 @@ namespace Test
HZH_Controls
.
Forms
.
FrmAnchorTips
.
ShowTips
(
button1
,
"测试提示信息\nTOP"
,
AnchorTipsLocation
.
TOP
);
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
HZH_Controls/Test/Form2.resx
查看文件 @
709189b
...
...
@@ -120,6 +120,9 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</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" />
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论