Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 72914241
由
HZH
编写于
2019-09-25 17:22:07 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
面板
1 个父辈
e4f7ce16
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
17 行删除
HZH_Controls/HZH_Controls/Controls/Panel/UCPanelTitle.Designer.cs
HZH_Controls/HZH_Controls/Controls/Panel/UCPanelTitle.cs
HZH_Controls/Test/UC/UCTestPanelTitle.Designer.cs
HZH_Controls/Test/UC/UCTestRadarChart.Designer.cs
HZH_Controls/Test/UC/UCTestRadarChart.cs
HZH_Controls/HZH_Controls/Controls/Panel/UCPanelTitle.Designer.cs
查看文件 @
7291424
...
@@ -49,7 +49,6 @@ namespace HZH_Controls.Controls
...
@@ -49,7 +49,6 @@ namespace HZH_Controls.Controls
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
lblTitle
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTitle
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// lblTitle
// lblTitle
...
@@ -60,26 +59,17 @@ namespace HZH_Controls.Controls
...
@@ -60,26 +59,17 @@ namespace HZH_Controls.Controls
this
.
lblTitle
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblTitle
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblTitle
.
Location
=
new
System
.
Drawing
.
Point
(
1
,
1
);
this
.
lblTitle
.
Location
=
new
System
.
Drawing
.
Point
(
1
,
1
);
this
.
lblTitle
.
Name
=
"lblTitle"
;
this
.
lblTitle
.
Name
=
"lblTitle"
;
this
.
lblTitle
.
Size
=
new
System
.
Drawing
.
Size
(
251
,
34
);
this
.
lblTitle
.
Size
=
new
System
.
Drawing
.
Size
(
645
,
34
);
this
.
lblTitle
.
TabIndex
=
0
;
this
.
lblTitle
.
TabIndex
=
0
;
this
.
lblTitle
.
Text
=
"面板"
;
this
.
lblTitle
.
Text
=
"面板"
;
this
.
lblTitle
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblTitle
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lblTitle
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
lblTitle_MouseDown
);
this
.
lblTitle
.
MouseDown
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
lblTitle_MouseDown
);
//
//
// panel1
//
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
1
,
35
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
251
,
135
);
this
.
panel1
.
TabIndex
=
1
;
//
// UCPanelTitle
// UCPanelTitle
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ConerRadius
=
10
;
this
.
ConerRadius
=
10
;
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
lblTitle
);
this
.
Controls
.
Add
(
this
.
lblTitle
);
this
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
IsRadius
=
true
;
this
.
IsRadius
=
true
;
...
@@ -87,7 +77,7 @@ namespace HZH_Controls.Controls
...
@@ -87,7 +77,7 @@ namespace HZH_Controls.Controls
this
.
Name
=
"UCPanelTitle"
;
this
.
Name
=
"UCPanelTitle"
;
this
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
Size
=
new
System
.
Drawing
.
Size
(
253
,
171
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
647
,
171
);
this
.
SizeChanged
+=
new
System
.
EventHandler
(
this
.
UCPanelTitle_SizeChanged
);
this
.
SizeChanged
+=
new
System
.
EventHandler
(
this
.
UCPanelTitle_SizeChanged
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
@@ -99,6 +89,5 @@ namespace HZH_Controls.Controls
...
@@ -99,6 +89,5 @@ namespace HZH_Controls.Controls
/// The label title
/// The label title
/// </summary>
/// </summary>
private
System
.
Windows
.
Forms
.
Label
lblTitle
;
private
System
.
Windows
.
Forms
.
Label
lblTitle
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
}
}
}
}
HZH_Controls/HZH_Controls/Controls/Panel/UCPanelTitle.cs
查看文件 @
7291424
...
@@ -30,7 +30,7 @@ namespace HZH_Controls.Controls
...
@@ -30,7 +30,7 @@ namespace HZH_Controls.Controls
/// Implements the <see cref="HZH_Controls.Controls.UCControlBase" />
/// Implements the <see cref="HZH_Controls.Controls.UCControlBase" />
/// </summary>
/// </summary>
/// <seealso cref="HZH_Controls.Controls.UCControlBase" />
/// <seealso cref="HZH_Controls.Controls.UCControlBase" />
public
partial
class
UCPanelTitle
:
UCControlBase
public
partial
class
UCPanelTitle
:
UCControlBase
,
IContainerControl
{
{
/// <summary>
/// <summary>
/// The m int maximum height
/// The m int maximum height
...
@@ -87,7 +87,7 @@ namespace HZH_Controls.Controls
...
@@ -87,7 +87,7 @@ namespace HZH_Controls.Controls
{
{
this
.
Height
=
m_intMaxHeight
;
this
.
Height
=
m_intMaxHeight
;
}
}
if
(
isCanExpand
)
if
(
isCanExpand
)
{
{
lblTitle
.
Image
=
GetImg
();
lblTitle
.
Image
=
GetImg
();
...
@@ -95,7 +95,7 @@ namespace HZH_Controls.Controls
...
@@ -95,7 +95,7 @@ namespace HZH_Controls.Controls
else
else
{
{
lblTitle
.
Image
=
null
;
lblTitle
.
Image
=
null
;
}
}
}
}
}
}
...
@@ -158,6 +158,7 @@ namespace HZH_Controls.Controls
...
@@ -158,6 +158,7 @@ namespace HZH_Controls.Controls
public
UCPanelTitle
()
public
UCPanelTitle
()
{
{
InitializeComponent
();
InitializeComponent
();
this
.
SizeChanged
+=
UCPanelTitle_SizeChanged
;
if
(
isCanExpand
)
if
(
isCanExpand
)
{
{
lblTitle
.
Image
=
GetImg
();
lblTitle
.
Image
=
GetImg
();
...
@@ -242,6 +243,7 @@ namespace HZH_Controls.Controls
...
@@ -242,6 +243,7 @@ namespace HZH_Controls.Controls
{
{
m_intMaxHeight
=
this
.
Height
;
m_intMaxHeight
=
this
.
Height
;
}
}
lblTitle
.
Width
=
this
.
Width
;
}
}
}
}
}
}
HZH_Controls/Test/UC/UCTestPanelTitle.Designer.cs
查看文件 @
7291424
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/UC/UCTestRadarChart.Designer.cs
查看文件 @
7291424
...
@@ -461,7 +461,7 @@
...
@@ -461,7 +461,7 @@
this
.
ucRadarChart6
.
SplitEvenColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucRadarChart6
.
SplitEvenColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucRadarChart6
.
SplitOddColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucRadarChart6
.
SplitOddColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucRadarChart6
.
TabIndex
=
0
;
this
.
ucRadarChart6
.
TabIndex
=
0
;
this
.
ucRadarChart6
.
Title
=
"空气污染度"
;
this
.
ucRadarChart6
.
Title
=
"空气污染度
(圆形)
"
;
this
.
ucRadarChart6
.
TitleColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucRadarChart6
.
TitleColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucRadarChart6
.
TitleFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucRadarChart6
.
TitleFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucRadarChart6
.
UseRoundSplit
=
true
;
this
.
ucRadarChart6
.
UseRoundSplit
=
true
;
...
...
HZH_Controls/Test/UC/UCTestRadarChart.cs
查看文件 @
7291424
...
@@ -9,6 +9,7 @@ using System.Windows.Forms;
...
@@ -9,6 +9,7 @@ using System.Windows.Forms;
namespace
Test.UC
namespace
Test.UC
{
{
[
ToolboxItem
(
false
)]
public
partial
class
UCTestRadarChart
:
UserControl
public
partial
class
UCTestRadarChart
:
UserControl
{
{
public
UCTestRadarChart
()
public
UCTestRadarChart
()
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论