Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d3f350a4
由
kwwwvagaa
编写于
2020-07-13 09:25:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加一个日期控件
1 个父辈
4a105fcc
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1964 行增加
和
423 行删除
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.Designer.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.resx
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan.Designer.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.Designer.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.resx
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/UC/UCTestForms.Designer.cs
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt.cs
查看文件 @
d3f350a
...
@@ -170,7 +170,7 @@ namespace HZH_Controls.Controls
...
@@ -170,7 +170,7 @@ namespace HZH_Controls.Controls
void
UCDatePickerExt_SizeChanged
(
object
sender
,
EventArgs
e
)
void
UCDatePickerExt_SizeChanged
(
object
sender
,
EventArgs
e
)
{
{
var
a
=
this
.
Height
;
}
}
/// <summary>
/// <summary>
...
...
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.Designer.cs
0 → 100644
查看文件 @
d3f350a
namespace
HZH_Controls.Controls
{
partial
class
UCDatePickerExt2
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtMinute
=
new
HZH_Controls
.
Controls
.
TextBoxEx
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtHour
=
new
HZH_Controls
.
Controls
.
TextBoxEx
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtDay
=
new
HZH_Controls
.
Controls
.
TextBoxEx
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtMonth
=
new
HZH_Controls
.
Controls
.
TextBoxEx
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtYear
=
new
HZH_Controls
.
Controls
.
TextBoxEx
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// panel1
//
this
.
panel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panel1
.
Controls
.
Add
(
this
.
label5
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtMinute
);
this
.
panel1
.
Controls
.
Add
(
this
.
label4
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtHour
);
this
.
panel1
.
Controls
.
Add
(
this
.
label3
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtDay
);
this
.
panel1
.
Controls
.
Add
(
this
.
label2
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtMonth
);
this
.
panel1
.
Controls
.
Add
(
this
.
label1
);
this
.
panel1
.
Controls
.
Add
(
this
.
txtYear
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
6
);
this
.
panel1
.
MaximumSize
=
new
System
.
Drawing
.
Size
(
0
,
27
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
330
,
27
);
this
.
panel1
.
TabIndex
=
10
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label5
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
label5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
label5
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
301
,
0
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
27
);
this
.
label5
.
TabIndex
=
17
;
this
.
label5
.
Text
=
"分"
;
this
.
label5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// txtMinute
//
this
.
txtMinute
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
txtMinute
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
txtMinute
.
DecLength
=
2
;
this
.
txtMinute
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
txtMinute
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtMinute
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
txtMinute
.
InputType
=
HZH_Controls
.
TextInputType
.
Integer
;
this
.
txtMinute
.
Location
=
new
System
.
Drawing
.
Point
(
272
,
0
);
this
.
txtMinute
.
MaxValue
=
new
decimal
(
new
int
[]
{
59
,
0
,
0
,
0
});
this
.
txtMinute
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
txtMinute
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
txtMinute
.
Name
=
"txtMinute"
;
this
.
txtMinute
.
OldText
=
null
;
this
.
txtMinute
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
txtMinute
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtMinute
.
PromptText
=
""
;
this
.
txtMinute
.
RegexPattern
=
""
;
this
.
txtMinute
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
27
);
this
.
txtMinute
.
TabIndex
=
5
;
this
.
txtMinute
.
Text
=
"59"
;
this
.
txtMinute
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
this
.
txtMinute
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtMinute_Leave
);
//
// label4
//
this
.
label4
.
AutoSize
=
true
;
this
.
label4
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label4
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
label4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
label4
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
240
,
0
);
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
27
);
this
.
label4
.
TabIndex
=
16
;
this
.
label4
.
Text
=
"时"
;
this
.
label4
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// txtHour
//
this
.
txtHour
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
txtHour
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
txtHour
.
DecLength
=
2
;
this
.
txtHour
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
txtHour
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtHour
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
txtHour
.
InputType
=
HZH_Controls
.
TextInputType
.
Integer
;
this
.
txtHour
.
Location
=
new
System
.
Drawing
.
Point
(
211
,
0
);
this
.
txtHour
.
MaxValue
=
new
decimal
(
new
int
[]
{
23
,
0
,
0
,
0
});
this
.
txtHour
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
txtHour
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
txtHour
.
Name
=
"txtHour"
;
this
.
txtHour
.
OldText
=
null
;
this
.
txtHour
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
txtHour
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtHour
.
PromptText
=
""
;
this
.
txtHour
.
RegexPattern
=
""
;
this
.
txtHour
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
27
);
this
.
txtHour
.
TabIndex
=
4
;
this
.
txtHour
.
Text
=
"23"
;
this
.
txtHour
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
this
.
txtHour
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtHour_TextChanged
);
this
.
txtHour
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtHour_Leave
);
//
// label3
//
this
.
label3
.
AutoSize
=
true
;
this
.
label3
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label3
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
label3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
173
,
0
);
this
.
label3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
27
);
this
.
label3
.
TabIndex
=
14
;
this
.
label3
.
Text
=
" 日"
;
this
.
label3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// txtDay
//
this
.
txtDay
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
txtDay
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
txtDay
.
DecLength
=
2
;
this
.
txtDay
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
txtDay
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtDay
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
txtDay
.
InputType
=
HZH_Controls
.
TextInputType
.
Integer
;
this
.
txtDay
.
Location
=
new
System
.
Drawing
.
Point
(
144
,
0
);
this
.
txtDay
.
MaxValue
=
new
decimal
(
new
int
[]
{
31
,
0
,
0
,
0
});
this
.
txtDay
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
txtDay
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
txtDay
.
Name
=
"txtDay"
;
this
.
txtDay
.
OldText
=
null
;
this
.
txtDay
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
txtDay
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtDay
.
PromptText
=
""
;
this
.
txtDay
.
RegexPattern
=
""
;
this
.
txtDay
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
27
);
this
.
txtDay
.
TabIndex
=
3
;
this
.
txtDay
.
Text
=
"12"
;
this
.
txtDay
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
this
.
txtDay
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtDay_TextChanged
);
this
.
txtDay
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtDay_Leave
);
//
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
label2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
label2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
112
,
0
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
27
);
this
.
label2
.
TabIndex
=
12
;
this
.
label2
.
Text
=
"月"
;
this
.
label2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// txtMonth
//
this
.
txtMonth
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
txtMonth
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
txtMonth
.
DecLength
=
2
;
this
.
txtMonth
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
txtMonth
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtMonth
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
txtMonth
.
InputType
=
HZH_Controls
.
TextInputType
.
Integer
;
this
.
txtMonth
.
Location
=
new
System
.
Drawing
.
Point
(
83
,
0
);
this
.
txtMonth
.
MaxValue
=
new
decimal
(
new
int
[]
{
12
,
0
,
0
,
0
});
this
.
txtMonth
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
txtMonth
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
txtMonth
.
Name
=
"txtMonth"
;
this
.
txtMonth
.
OldText
=
null
;
this
.
txtMonth
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
txtMonth
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtMonth
.
PromptText
=
""
;
this
.
txtMonth
.
RegexPattern
=
""
;
this
.
txtMonth
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
27
);
this
.
txtMonth
.
TabIndex
=
2
;
this
.
txtMonth
.
Text
=
"12"
;
this
.
txtMonth
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
this
.
txtMonth
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMonth_TextChanged
);
this
.
txtMonth
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtMonth_Leave
);
//
// label1
//
this
.
label1
.
AutoSize
=
true
;
this
.
label1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
label1
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
0
);
this
.
label1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
0
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
32
,
27
);
this
.
label1
.
TabIndex
=
10
;
this
.
label1
.
Text
=
"年"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// txtYear
//
this
.
txtYear
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
txtYear
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
txtYear
.
DecLength
=
2
;
this
.
txtYear
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
txtYear
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtYear
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))),
((
int
)(((
byte
)(
60
)))));
this
.
txtYear
.
InputType
=
HZH_Controls
.
TextInputType
.
Integer
;
this
.
txtYear
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
txtYear
.
MaxValue
=
new
decimal
(
new
int
[]
{
2099
,
0
,
0
,
0
});
this
.
txtYear
.
MinValue
=
new
decimal
(
new
int
[]
{
0
,
0
,
0
,
0
});
this
.
txtYear
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
txtYear
.
Name
=
"txtYear"
;
this
.
txtYear
.
OldText
=
null
;
this
.
txtYear
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
txtYear
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
txtYear
.
PromptText
=
""
;
this
.
txtYear
.
RegexPattern
=
""
;
this
.
txtYear
.
Size
=
new
System
.
Drawing
.
Size
(
51
,
27
);
this
.
txtYear
.
TabIndex
=
1
;
this
.
txtYear
.
Text
=
"2019"
;
this
.
txtYear
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
this
.
txtYear
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtYear_TextChanged
);
this
.
txtYear
.
Leave
+=
new
System
.
EventHandler
(
this
.
txtYear_Leave
);
//
// UCDatePickerExt2
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ConerRadius
=
5
;
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
IsRadius
=
true
;
this
.
IsShowRect
=
true
;
this
.
Name
=
"UCDatePickerExt2"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
336
,
39
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
UCDatePickerExt2_Load
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
TextBoxEx
txtMinute
;
private
System
.
Windows
.
Forms
.
Label
label4
;
private
TextBoxEx
txtHour
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
TextBoxEx
txtDay
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
TextBoxEx
txtMonth
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
TextBoxEx
txtYear
;
}
}
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.cs
0 → 100644
查看文件 @
d3f350a
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2020-07-11
//
// ***********************************************************************
// <copyright file="UCDatePickerExt2.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Drawing
;
using
System.Data
;
using
System.Linq
;
using
System.Text
;
using
System.Windows.Forms
;
namespace
HZH_Controls.Controls
{
public
partial
class
UCDatePickerExt2
:
UCControlBase
{
/// <summary>
/// The m FRM anchor
/// </summary>
Forms
.
FrmAnchor
m_frmAnchor
;
UCDateTimeSelectPan2
m_selectPan
=
null
;
/// <summary>
/// The m type
/// </summary>
DateTimePickerType
m_type
=
DateTimePickerType
.
DateTime
;
/// <summary>
/// Gets or sets the type of the time.
/// </summary>
/// <value>The type of the time.</value>
[
Description
(
"时间类型"
),
Category
(
"自定义"
)]
public
DateTimePickerType
TimeType
{
get
{
return
m_type
;
}
set
{
m_type
=
value
;
if
(
value
==
DateTimePickerType
.
DateTime
)
{
txtYear
.
Visible
=
true
;
label1
.
Visible
=
true
;
txtMonth
.
Visible
=
true
;
label2
.
Visible
=
true
;
txtDay
.
Visible
=
true
;
label3
.
Visible
=
true
;
txtHour
.
Visible
=
true
;
label4
.
Visible
=
true
;
txtMinute
.
Visible
=
true
;
label5
.
Visible
=
true
;
}
else
if
(
value
==
DateTimePickerType
.
Date
)
{
txtYear
.
Visible
=
true
;
label1
.
Visible
=
true
;
txtMonth
.
Visible
=
true
;
label2
.
Visible
=
true
;
txtDay
.
Visible
=
true
;
label3
.
Visible
=
true
;
txtHour
.
Visible
=
false
;
label4
.
Visible
=
false
;
txtMinute
.
Visible
=
false
;
label5
.
Visible
=
false
;
}
else
{
txtYear
.
Visible
=
false
;
label1
.
Visible
=
false
;
txtMonth
.
Visible
=
false
;
label2
.
Visible
=
false
;
txtDay
.
Visible
=
false
;
label3
.
Visible
=
false
;
txtHour
.
Visible
=
true
;
label4
.
Visible
=
true
;
txtMinute
.
Visible
=
true
;
label5
.
Visible
=
true
;
}
}
}
/// <summary>
/// The current time
/// </summary>
private
DateTime
currentTime
=
DateTime
.
Now
;
/// <summary>
/// The time font size
/// </summary>
private
int
timeFontSize
=
20
;
/// <summary>
/// Gets or sets the size of the time font.
/// </summary>
/// <value>The size of the time font.</value>
[
Description
(
"时间字体大小"
),
Category
(
"自定义"
)]
public
int
TimeFontSize
{
get
{
return
timeFontSize
;
}
set
{
if
(
timeFontSize
!=
value
)
{
timeFontSize
=
value
;
foreach
(
Control
c
in
panel1
.
Controls
)
{
c
.
Font
=
new
Font
(
c
.
Font
.
Name
,
value
);
}
}
}
}
/// <summary>
/// Gets or sets the current time.
/// </summary>
/// <value>The current time.</value>
[
Description
(
"时间"
),
Category
(
"自定义"
)]
[
Localizable
(
true
)]
public
DateTime
CurrentTime
{
get
{
return
currentTime
;
}
set
{
currentTime
=
value
;
SetTimeToControl
();
}
}
private
Color
selectColor
=
Color
.
FromArgb
(
255
,
77
,
59
);
/// <summary>
/// 选中颜色
/// </summary>
public
Color
SelectColor
{
get
{
return
selectColor
;
}
set
{
selectColor
=
value
;
}
}
public
UCDatePickerExt2
()
{
InitializeComponent
();
}
/// <summary>
/// Sets the time to control.
/// </summary>
private
void
SetTimeToControl
()
{
var
y
=
CurrentTime
.
Year
;
var
M
=
CurrentTime
.
Month
;
var
d
=
CurrentTime
.
Day
;
var
h
=
CurrentTime
.
Hour
;
var
m
=
CurrentTime
.
Minute
;
this
.
txtYear
.
Text
=
y
.
ToString
();
this
.
txtMonth
.
Text
=
M
.
ToString
().
PadLeft
(
2
,
'0'
);
this
.
txtDay
.
Text
=
d
.
ToString
().
PadLeft
(
2
,
'0'
);
this
.
txtHour
.
Text
=
h
.
ToString
().
PadLeft
(
2
,
'0'
);
this
.
txtMinute
.
Text
=
m
.
ToString
().
PadLeft
(
2
,
'0'
);
}
private
void
UCDatePickerExt2_Load
(
object
sender
,
EventArgs
e
)
{
SetTimeToControl
();
panel1
.
Height
=
this
.
txtDay
.
Height
;
panel1
.
Width
=
this
.
Width
-
6
;
SetEvent
(
this
);
}
/// <summary>
/// Sets the event.
/// </summary>
/// <param name="c">The c.</param>
private
void
SetEvent
(
Control
c
)
{
if
(
c
!=
null
)
{
c
.
MouseDown
+=
c_MouseDown
;
foreach
(
Control
item
in
c
.
Controls
)
{
SetEvent
(
item
);
}
}
}
/// <summary>
/// Handles the MouseDown event of the c control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param>
void
c_MouseDown
(
object
sender
,
MouseEventArgs
e
)
{
if
(
m_selectPan
==
null
)
{
m_selectPan
=
new
UCDateTimeSelectPan2
();
m_selectPan
.
SelectedTimeEvent
+=
uc_SelectedTimeEvent
;
m_selectPan
.
CancelTimeEvent
+=
m_selectPan_CancelTimeEvent
;
m_selectPan
.
SelectColor
=
selectColor
;
}
m_selectPan
.
CurrentTime
=
currentTime
;
m_selectPan
.
TimeType
=
m_type
;
m_frmAnchor
=
new
Forms
.
FrmAnchor
(
this
,
m_selectPan
);
m_frmAnchor
.
Show
(
this
.
FindForm
());
}
/// <summary>
/// Handles the CancelTimeEvent event of the m_selectPan control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
void
m_selectPan_CancelTimeEvent
(
object
sender
,
EventArgs
e
)
{
m_frmAnchor
.
Hide
();
}
/// <summary>
/// Handles the SelectedTimeEvent event of the uc control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
void
uc_SelectedTimeEvent
(
object
sender
,
EventArgs
e
)
{
CurrentTime
=
m_selectPan
.
CurrentTime
;
m_frmAnchor
.
Hide
();
}
/// <summary>
/// Handles the TextChanged event of the txtYear control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtYear_TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
txtYear
.
Text
.
Length
==
4
)
this
.
ActiveControl
=
txtMonth
;
}
/// <summary>
/// Handles the TextChanged event of the txtMonth control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtMonth_TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
txtMonth
.
Text
.
Length
==
2
||
txtMonth
.
Text
.
ToInt
()
>=
3
)
{
this
.
ActiveControl
=
txtDay
;
}
}
/// <summary>
/// Handles the TextChanged event of the txtDay control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtDay_TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
m_type
==
DateTimePickerType
.
Date
)
return
;
if
(
txtDay
.
Text
.
Length
==
2
||
txtDay
.
Text
.
ToInt
()
>=
4
)
{
this
.
ActiveControl
=
txtHour
;
}
}
/// <summary>
/// Handles the TextChanged event of the txtHour control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtHour_TextChanged
(
object
sender
,
EventArgs
e
)
{
if
(
txtHour
.
Text
.
Length
==
2
||
txtHour
.
Text
.
ToInt
()
>=
3
)
{
this
.
ActiveControl
=
txtMinute
;
}
}
/// <summary>
/// Handles the Leave event of the txtYear control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtYear_Leave
(
object
sender
,
EventArgs
e
)
{
if
(
txtYear
.
Text
.
ToInt
()
<
1990
)
{
txtYear
.
Text
=
currentTime
.
Year
.
ToString
();
}
currentTime
=
(
txtYear
.
Text
+
currentTime
.
ToString
(
"-MM-dd HH:mm:ss"
)).
ToDate
();
}
/// <summary>
/// Handles the Leave event of the txtMonth control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtMonth_Leave
(
object
sender
,
EventArgs
e
)
{
if
(
txtMonth
.
Text
.
ToInt
()
<
1
)
{
txtMonth
.
Text
=
currentTime
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
);
}
txtMonth
.
Text
=
txtMonth
.
Text
.
PadLeft
(
2
,
'0'
);
currentTime
=
(
currentTime
.
ToString
(
"yyyy-"
+
txtMonth
.
Text
+
"-dd HH:mm:ss"
)).
ToDate
();
}
/// <summary>
/// Handles the Leave event of the txtDay control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtDay_Leave
(
object
sender
,
EventArgs
e
)
{
if
(
txtDay
.
Text
.
ToInt
()
<
1
||
txtDay
.
Text
.
ToInt
()
>
DateTime
.
DaysInMonth
(
currentTime
.
Year
,
currentTime
.
Month
))
{
txtDay
.
Text
=
currentTime
.
Day
.
ToString
().
PadLeft
(
2
,
'0'
);
}
txtDay
.
Text
=
txtDay
.
Text
.
PadLeft
(
2
,
'0'
);
currentTime
=
(
currentTime
.
ToString
(
"yyyy-MM-"
+
txtDay
.
Text
+
" HH:mm:ss"
)).
ToDate
();
}
/// <summary>
/// Handles the Leave event of the txtHour control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtHour_Leave
(
object
sender
,
EventArgs
e
)
{
if
(
txtHour
.
Text
.
ToInt
()
<
1
)
{
txtHour
.
Text
=
currentTime
.
Hour
.
ToString
().
PadLeft
(
2
,
'0'
);
}
txtHour
.
Text
=
txtHour
.
Text
.
PadLeft
(
2
,
'0'
);
currentTime
=
(
currentTime
.
ToString
(
"yyyy-MM-dd "
+
txtHour
.
Text
+
":mm:ss"
)).
ToDate
();
}
/// <summary>
/// Handles the Leave event of the txtMinute control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txtMinute_Leave
(
object
sender
,
EventArgs
e
)
{
}
/// <summary>
/// Handles the SizeChanged event of the txt control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
private
void
txt_SizeChanged
(
object
sender
,
EventArgs
e
)
{
panel1
.
Height
=
(
sender
as
TextBoxEx
).
Height
;
}
}
}
HZH_Controls/HZH_Controls/Controls/DateTime/UCDatePickerExt2.resx
0 → 100644
查看文件 @
d3f350a
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
\ No newline at end of file
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan.Designer.cs
查看文件 @
d3f350a
...
@@ -102,6 +102,7 @@ namespace HZH_Controls.Controls
...
@@ -102,6 +102,7 @@ namespace HZH_Controls.Controls
this
.
btnMinute
.
ConerRadius
=
5
;
this
.
btnMinute
.
ConerRadius
=
5
;
this
.
btnMinute
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnMinute
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnMinute
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnMinute
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnMinute
.
EnabledMouseEffect
=
false
;
this
.
btnMinute
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMinute
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMinute
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnMinute
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnMinute
.
IsRadius
=
true
;
this
.
btnMinute
.
IsRadius
=
true
;
...
@@ -115,6 +116,7 @@ namespace HZH_Controls.Controls
...
@@ -115,6 +116,7 @@ namespace HZH_Controls.Controls
this
.
btnMinute
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnMinute
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnMinute
.
TabIndex
=
1
;
this
.
btnMinute
.
TabIndex
=
1
;
this
.
btnMinute
.
TabStop
=
false
;
this
.
btnMinute
.
TabStop
=
false
;
this
.
btnMinute
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnMinute
.
TipsText
=
""
;
this
.
btnMinute
.
TipsText
=
""
;
this
.
btnMinute
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
this
.
btnMinute
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
//
//
...
@@ -136,6 +138,7 @@ namespace HZH_Controls.Controls
...
@@ -136,6 +138,7 @@ namespace HZH_Controls.Controls
this
.
btnHour
.
ConerRadius
=
5
;
this
.
btnHour
.
ConerRadius
=
5
;
this
.
btnHour
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnHour
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnHour
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnHour
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnHour
.
EnabledMouseEffect
=
false
;
this
.
btnHour
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnHour
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnHour
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnHour
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnHour
.
IsRadius
=
true
;
this
.
btnHour
.
IsRadius
=
true
;
...
@@ -149,6 +152,7 @@ namespace HZH_Controls.Controls
...
@@ -149,6 +152,7 @@ namespace HZH_Controls.Controls
this
.
btnHour
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnHour
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnHour
.
TabIndex
=
1
;
this
.
btnHour
.
TabIndex
=
1
;
this
.
btnHour
.
TabStop
=
false
;
this
.
btnHour
.
TabStop
=
false
;
this
.
btnHour
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnHour
.
TipsText
=
""
;
this
.
btnHour
.
TipsText
=
""
;
this
.
btnHour
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
this
.
btnHour
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
//
//
...
@@ -170,6 +174,7 @@ namespace HZH_Controls.Controls
...
@@ -170,6 +174,7 @@ namespace HZH_Controls.Controls
this
.
btnDay
.
ConerRadius
=
5
;
this
.
btnDay
.
ConerRadius
=
5
;
this
.
btnDay
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnDay
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnDay
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnDay
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnDay
.
EnabledMouseEffect
=
false
;
this
.
btnDay
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnDay
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnDay
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnDay
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnDay
.
IsRadius
=
true
;
this
.
btnDay
.
IsRadius
=
true
;
...
@@ -183,6 +188,7 @@ namespace HZH_Controls.Controls
...
@@ -183,6 +188,7 @@ namespace HZH_Controls.Controls
this
.
btnDay
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnDay
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnDay
.
TabIndex
=
1
;
this
.
btnDay
.
TabIndex
=
1
;
this
.
btnDay
.
TabStop
=
false
;
this
.
btnDay
.
TabStop
=
false
;
this
.
btnDay
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnDay
.
TipsText
=
""
;
this
.
btnDay
.
TipsText
=
""
;
this
.
btnDay
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
this
.
btnDay
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
//
//
...
@@ -204,6 +210,7 @@ namespace HZH_Controls.Controls
...
@@ -204,6 +210,7 @@ namespace HZH_Controls.Controls
this
.
btnMonth
.
ConerRadius
=
5
;
this
.
btnMonth
.
ConerRadius
=
5
;
this
.
btnMonth
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnMonth
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnMonth
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnMonth
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnMonth
.
EnabledMouseEffect
=
false
;
this
.
btnMonth
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMonth
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnMonth
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnMonth
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnMonth
.
IsRadius
=
true
;
this
.
btnMonth
.
IsRadius
=
true
;
...
@@ -217,6 +224,7 @@ namespace HZH_Controls.Controls
...
@@ -217,6 +224,7 @@ namespace HZH_Controls.Controls
this
.
btnMonth
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnMonth
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnMonth
.
TabIndex
=
1
;
this
.
btnMonth
.
TabIndex
=
1
;
this
.
btnMonth
.
TabStop
=
false
;
this
.
btnMonth
.
TabStop
=
false
;
this
.
btnMonth
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnMonth
.
TipsText
=
""
;
this
.
btnMonth
.
TipsText
=
""
;
this
.
btnMonth
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
this
.
btnMonth
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
//
//
...
@@ -238,6 +246,7 @@ namespace HZH_Controls.Controls
...
@@ -238,6 +246,7 @@ namespace HZH_Controls.Controls
this
.
btnYear
.
ConerRadius
=
5
;
this
.
btnYear
.
ConerRadius
=
5
;
this
.
btnYear
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnYear
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnYear
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnYear
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Left
;
this
.
btnYear
.
EnabledMouseEffect
=
false
;
this
.
btnYear
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnYear
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnYear
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnYear
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnYear
.
IsRadius
=
true
;
this
.
btnYear
.
IsRadius
=
true
;
...
@@ -251,6 +260,7 @@ namespace HZH_Controls.Controls
...
@@ -251,6 +260,7 @@ namespace HZH_Controls.Controls
this
.
btnYear
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnYear
.
Size
=
new
System
.
Drawing
.
Size
(
80
,
31
);
this
.
btnYear
.
TabIndex
=
1
;
this
.
btnYear
.
TabIndex
=
1
;
this
.
btnYear
.
TabStop
=
false
;
this
.
btnYear
.
TabStop
=
false
;
this
.
btnYear
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnYear
.
TipsText
=
""
;
this
.
btnYear
.
TipsText
=
""
;
this
.
btnYear
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
this
.
btnYear
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnTime_BtnClick
);
//
//
...
@@ -274,6 +284,7 @@ namespace HZH_Controls.Controls
...
@@ -274,6 +284,7 @@ namespace HZH_Controls.Controls
this
.
btnCancel
.
BtnText
=
"取 消"
;
this
.
btnCancel
.
BtnText
=
"取 消"
;
this
.
btnCancel
.
ConerRadius
=
5
;
this
.
btnCancel
.
ConerRadius
=
5
;
this
.
btnCancel
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnCancel
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnCancel
.
EnabledMouseEffect
=
false
;
this
.
btnCancel
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCancel
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnCancel
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnCancel
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnCancel
.
IsRadius
=
true
;
this
.
btnCancel
.
IsRadius
=
true
;
...
@@ -287,6 +298,7 @@ namespace HZH_Controls.Controls
...
@@ -287,6 +298,7 @@ namespace HZH_Controls.Controls
this
.
btnCancel
.
Size
=
new
System
.
Drawing
.
Size
(
129
,
36
);
this
.
btnCancel
.
Size
=
new
System
.
Drawing
.
Size
(
129
,
36
);
this
.
btnCancel
.
TabIndex
=
2
;
this
.
btnCancel
.
TabIndex
=
2
;
this
.
btnCancel
.
TabStop
=
false
;
this
.
btnCancel
.
TabStop
=
false
;
this
.
btnCancel
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnCancel
.
TipsText
=
""
;
this
.
btnCancel
.
TipsText
=
""
;
this
.
btnCancel
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnCancel_BtnClick
);
this
.
btnCancel
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnCancel_BtnClick
);
//
//
...
@@ -300,6 +312,7 @@ namespace HZH_Controls.Controls
...
@@ -300,6 +312,7 @@ namespace HZH_Controls.Controls
this
.
btnOk
.
BtnText
=
"确 定"
;
this
.
btnOk
.
BtnText
=
"确 定"
;
this
.
btnOk
.
ConerRadius
=
5
;
this
.
btnOk
.
ConerRadius
=
5
;
this
.
btnOk
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnOk
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
btnOk
.
EnabledMouseEffect
=
false
;
this
.
btnOk
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
btnOk
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
btnOk
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnOk
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
btnOk
.
IsRadius
=
true
;
this
.
btnOk
.
IsRadius
=
true
;
...
@@ -313,6 +326,7 @@ namespace HZH_Controls.Controls
...
@@ -313,6 +326,7 @@ namespace HZH_Controls.Controls
this
.
btnOk
.
Size
=
new
System
.
Drawing
.
Size
(
129
,
36
);
this
.
btnOk
.
Size
=
new
System
.
Drawing
.
Size
(
129
,
36
);
this
.
btnOk
.
TabIndex
=
1
;
this
.
btnOk
.
TabIndex
=
1
;
this
.
btnOk
.
TabStop
=
false
;
this
.
btnOk
.
TabStop
=
false
;
this
.
btnOk
.
TipsColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
99
)))));
this
.
btnOk
.
TipsText
=
""
;
this
.
btnOk
.
TipsText
=
""
;
this
.
btnOk
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnOk_BtnClick
);
this
.
btnOk
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
btnOk_BtnClick
);
//
//
...
@@ -333,6 +347,7 @@ namespace HZH_Controls.Controls
...
@@ -333,6 +347,7 @@ namespace HZH_Controls.Controls
this
.
panTime
.
Column
=
0
;
this
.
panTime
.
Column
=
0
;
this
.
panTime
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panTime
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panTime
.
FirstEvent
=
false
;
this
.
panTime
.
FirstEvent
=
false
;
this
.
panTime
.
IsShowBorder
=
false
;
this
.
panTime
.
Location
=
new
System
.
Drawing
.
Point
(
48
,
0
);
this
.
panTime
.
Location
=
new
System
.
Drawing
.
Point
(
48
,
0
);
this
.
panTime
.
Name
=
"panTime"
;
this
.
panTime
.
Name
=
"panTime"
;
this
.
panTime
.
Row
=
0
;
this
.
panTime
.
Row
=
0
;
...
...
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.Designer.cs
0 → 100644
查看文件 @
d3f350a
此文件的差异太大,无法显示。
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.cs
0 → 100644
查看文件 @
d3f350a
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Drawing
;
using
System.Data
;
using
System.Linq
;
using
System.Text
;
using
System.Windows.Forms
;
namespace
HZH_Controls.Controls
{
public
partial
class
UCDateTimeSelectPan2
:
UserControl
{
/// <summary>
/// Occurs when [selected time event].
/// </summary>
[
Description
(
"确定事件"
),
Category
(
"自定义"
)]
public
event
EventHandler
SelectedTimeEvent
;
/// <summary>
/// Occurs when [cancel time event].
/// </summary>
[
Description
(
"取消事件"
),
Category
(
"自定义"
)]
public
event
EventHandler
CancelTimeEvent
;
/// <summary>
/// The m type
/// </summary>
DateTimePickerType
m_type
=
DateTimePickerType
.
DateTime
;
/// <summary>
/// Gets or sets the type of the time.
/// </summary>
/// <value>The type of the time.</value>
[
Description
(
"时间类型"
),
Category
(
"自定义"
)]
public
DateTimePickerType
TimeType
{
get
{
return
m_type
;
}
set
{
m_type
=
value
;
panTime
.
Visible
=
value
!=
DateTimePickerType
.
Date
;
}
}
/// <summary>
/// The m dt
/// </summary>
DateTime
m_dt
=
DateTime
.
Now
;
/// <summary>
/// Gets or sets the current time.
/// </summary>
/// <value>The current time.</value>
public
DateTime
CurrentTime
{
get
{
return
m_dt
;
}
set
{
m_dt
=
value
;
SetTimeToControl
();
}
}
private
Color
selectColor
=
Color
.
FromArgb
(
255
,
77
,
59
);
public
Color
SelectColor
{
get
{
return
selectColor
;
}
set
{
selectColor
=
value
;
panTop
.
BackColor
=
value
;
foreach
(
Label
lbl
in
panWeek
.
Controls
)
{
lbl
.
ForeColor
=
value
;
}
foreach
(
Control
item
in
panTime
.
Controls
)
{
if
(
item
is
Label
)
{
item
.
ForeColor
=
value
;
}
}
foreach
(
var
item
in
panBtns
.
Controls
)
{
if
(
item
is
UCBtnExt
)
{
((
UCBtnExt
)
item
).
BtnForeColor
=
value
;
}
}
foreach
(
Control
item
in
panSelectHourList
.
Controls
)
{
item
.
ForeColor
=
value
;
}
foreach
(
Control
item
in
panSelectMinuteList
.
Controls
)
{
item
.
ForeColor
=
value
;
}
foreach
(
Control
item
in
panSelectSecondList
.
Controls
)
{
item
.
ForeColor
=
value
;
}
panSelectYear
.
BackColor
=
value
;
panSelectMonth
.
BackColor
=
value
;
ucSplitLine_H2
.
BackColor
=
value
;
ucSplitLine_V4
.
BackColor
=
value
;
ucSplitLine_V5
.
BackColor
=
value
;
}
}
public
UCDateTimeSelectPan2
()
{
InitializeComponent
();
foreach
(
Label
lblDay
in
panDay
.
Controls
)
{
lblDay
.
MouseClick
+=
lblDay_MouseClick
;
}
foreach
(
Label
lblMonthItem
in
panSelectMonthList
.
Controls
)
{
lblMonthItem
.
MouseClick
+=
lblMonthItem_MouseClick
;
}
foreach
(
Label
lblYearItem
in
panSelectYearList
.
Controls
)
{
lblYearItem
.
MouseClick
+=
lblYearItem_MouseClick
;
}
for
(
int
i
=
0
;
i
<
24
;
i
++)
{
Label
lblHourItem
=
new
Label
();
lblHourItem
.
AutoSize
=
false
;
lblHourItem
.
Dock
=
DockStyle
.
Fill
;
lblHourItem
.
ForeColor
=
selectColor
;
lblHourItem
.
Font
=
new
Font
(
"微软雅黑"
,
9
);
lblHourItem
.
Text
=
i
.
ToString
();
lblHourItem
.
TextAlign
=
ContentAlignment
.
MiddleCenter
;
lblHourItem
.
MouseClick
+=
lblHourItem_MouseClick
;
lblHourItem
.
Margin
=
new
Padding
(
0
);
this
.
panSelectHourList
.
Controls
.
Add
(
lblHourItem
,
i
%
5
,
i
/
5
);
}
for
(
int
i
=
0
;
i
<
60
;
i
++)
{
Label
lblMinuteItem
=
new
Label
();
lblMinuteItem
.
AutoSize
=
false
;
lblMinuteItem
.
Dock
=
DockStyle
.
Fill
;
lblMinuteItem
.
ForeColor
=
selectColor
;
lblMinuteItem
.
Font
=
new
Font
(
"微软雅黑"
,
8
);
lblMinuteItem
.
Text
=
i
.
ToString
();
lblMinuteItem
.
TextAlign
=
ContentAlignment
.
MiddleCenter
;
lblMinuteItem
.
MouseClick
+=
lblMinuteItem_MouseClick
;
lblMinuteItem
.
Margin
=
new
Padding
(
0
);
this
.
panSelectMinuteList
.
Controls
.
Add
(
lblMinuteItem
,
i
%
10
,
i
/
10
);
}
for
(
int
i
=
0
;
i
<
60
;
i
++)
{
Label
lblSecondItem
=
new
Label
();
lblSecondItem
.
AutoSize
=
false
;
lblSecondItem
.
Dock
=
DockStyle
.
Fill
;
lblSecondItem
.
ForeColor
=
selectColor
;
lblSecondItem
.
Font
=
new
Font
(
"微软雅黑"
,
8
);
lblSecondItem
.
Text
=
i
.
ToString
();
lblSecondItem
.
TextAlign
=
ContentAlignment
.
MiddleCenter
;
lblSecondItem
.
MouseClick
+=
lblSecondItem_MouseClick
;
lblSecondItem
.
Margin
=
new
Padding
(
0
);
this
.
panSelectSecondList
.
Controls
.
Add
(
lblSecondItem
,
i
%
10
,
i
/
10
);
}
}
void
lblSecondItem_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
panSelectSecond
.
Visible
=
false
;
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
ToString
(
"yyyy-MM-dd HH:mm"
)
+
":"
+
((
Label
)
sender
).
Text
);
}
void
lblMinuteItem_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
panSelectMinute
.
Visible
=
false
;
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
ToString
(
"yyyy-MM-dd"
)
+
" "
+
m_dt
.
Hour
+
":"
+
((
Label
)
sender
).
Text
+
":"
+
m_dt
.
Second
);
}
void
lblHourItem_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
ToString
(
"yyyy-MM-dd"
)
+
" "
+
((
Label
)
sender
).
Text
+
":"
+
m_dt
.
ToString
(
"mm:ss"
));
}
void
lblYearItem_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
panSelectYear
.
Visible
=
false
;
CurrentTime
=
DateTime
.
Parse
(((
Label
)
sender
).
Tag
+
"-"
+
m_dt
.
Month
+
"-"
+
m_dt
.
Day
+
" "
+
m_dt
.
ToString
(
"HH:mm:ss"
));
}
void
lblMonthItem_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
panSelectMonth
.
Visible
=
false
;
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
Year
+
"-"
+
((
Label
)
sender
).
Tag
+
"-"
+
m_dt
.
Day
+
" "
+
m_dt
.
ToString
(
"HH:mm:ss"
));
}
void
lblDay_MouseClick
(
object
sender
,
MouseEventArgs
e
)
{
Label
lbl
=
(
Label
)
sender
;
if
(
m_dt
.
Month
+
"-"
+
m_dt
.
Day
!=
lbl
.
Tag
.
ToString
())
{
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
Year
+
"-"
+
lbl
.
Tag
+
" "
+
m_dt
.
ToString
(
"HH:mm:ss"
));
}
}
private
void
SetTimeToControl
()
{
if
(
lblYear
.
Tag
.
ToInt
()
!=
m_dt
.
Year
)
{
lblYear
.
Tag
=
m_dt
.
Year
;
lblYear
.
Text
=
m_dt
.
Year
+
"年 ▼"
;
}
if
(
lblMouth
.
Tag
.
ToInt
()
!=
m_dt
.
Month
)
{
lblMouth
.
Tag
=
m_dt
.
Month
;
lblMouth
.
Text
=
m_dt
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)
+
"月 ▼"
;
}
//if (panDay.Tag.ToInt() != m_dt.Day)
//{
panDay
.
Tag
=
m_dt
.
Day
;
panDay
.
Controls
.
ToArray
().
ToList
().
ForEach
(
p
=>
{
Label
lbl
=
(
Label
)
p
;
if
(
p
.
Tag
.
ToStringExt
()
==
(
m_dt
.
Month
+
"-"
+
m_dt
.
Day
))
{
lbl
.
BackColor
=
selectColor
;
lbl
.
ForeColor
=
Color
.
White
;
}
else
{
lbl
.
BackColor
=
Color
.
White
;
if
(
p
.
Tag
.
ToStringExt
().
Split
(
'-'
)[
0
].
ToInt
()
!=
m_dt
.
Month
)
{
lbl
.
ForeColor
=
Color
.
FromArgb
(
153
,
153
,
153
);
}
else
{
lbl
.
ForeColor
=
selectColor
;
}
}
});
//}
//btnDay.Tag = m_dt.Day;
//btnDay.BtnText = m_dt.Day.ToString().PadLeft(2, '0') + "日";
if
(
lblHour
.
Tag
.
ToInt
()
!=
m_dt
.
Hour
)
{
lblHour
.
Tag
=
m_dt
.
Hour
;
lblHour
.
Text
=
m_dt
.
Hour
.
ToString
().
PadLeft
(
2
,
'0'
);
}
if
(
lblMinute
.
Tag
.
ToInt
()
!=
m_dt
.
Minute
)
{
lblMinute
.
Tag
=
m_dt
.
Minute
;
lblMinute
.
Text
=
m_dt
.
Minute
.
ToString
().
PadLeft
(
2
,
'0'
);
}
if
(
lblSecond
.
Tag
.
ToInt
()
!=
m_dt
.
Second
)
{
lblSecond
.
Tag
=
m_dt
.
Second
;
lblSecond
.
Text
=
m_dt
.
Second
.
ToString
().
PadLeft
(
2
,
'0'
);
}
}
private
void
lblMouth_TextChanged
(
object
sender
,
EventArgs
e
)
{
int
mouth
=
((
Label
)
sender
).
Tag
.
ToInt
();
CurrentTime
=
DateTime
.
Parse
(
m_dt
.
Year
+
"-"
+
mouth
+
"-"
+
m_dt
.
Day
+
" "
+
m_dt
.
ToString
(
"HH:mm:ss"
));
int
intDayCount
=
DateTime
.
DaysInMonth
(
m_dt
.
Year
,
m_dt
.
Month
);
DateTime
dtlastMonth
=
m_dt
.
AddMonths
(-
1
);
int
intlasyMonthDayCount
=
DateTime
.
DaysInMonth
(
dtlastMonth
.
Year
,
dtlastMonth
.
Month
);
DateTime
dt1
=
DateTime
.
Parse
(
m_dt
.
Year
+
"-"
+
m_dt
.
Month
+
"-01 00:00:01"
);
int
intIndex
=
(
int
)(
dt1
.
DayOfWeek
);
int
haveLastDay
=
0
;
//需要上月补充几天
haveLastDay
=
intIndex
;
List
<
KeyValuePair
<
int
,
int
>>
lst
=
new
List
<
KeyValuePair
<
int
,
int
>>();
for
(
int
i
=
0
;
i
<
haveLastDay
;
i
++)
{
lst
.
Add
(
new
KeyValuePair
<
int
,
int
>(
dtlastMonth
.
Month
,
intlasyMonthDayCount
-
(
haveLastDay
-
i
)
+
1
));
}
for
(
int
i
=
0
;
i
<
intDayCount
;
i
++)
{
lst
.
Add
(
new
KeyValuePair
<
int
,
int
>(
mouth
,
i
+
1
));
}
if
(
lst
.
Count
<
42
)
{
DateTime
dtNextMonth
=
m_dt
.
AddMonths
(
1
);
int
cha
=
42
-
lst
.
Count
;
for
(
int
i
=
0
;
i
<
cha
;
i
++)
{
lst
.
Add
(
new
KeyValuePair
<
int
,
int
>(
dtNextMonth
.
Month
,
i
+
1
));
}
}
for
(
int
i
=
0
;
i
<
lst
.
Count
;
i
++)
{
var
lbl
=
(
Label
)
this
.
panDay
.
Controls
[
this
.
panDay
.
Controls
.
Count
-
i
-
1
];
lbl
.
Text
=
lst
[
i
].
Value
.
ToString
();
if
(
lst
[
i
].
Key
!=
mouth
)
{
lbl
.
ForeColor
=
Color
.
FromArgb
(
153
,
153
,
153
);
}
else
{
lbl
.
ForeColor
=
selectColor
;
}
if
(
lst
[
i
].
Key
+
":"
+
lst
[
i
].
Value
!=
m_dt
.
Month
+
"-"
+
m_dt
.
Day
)
{
lbl
.
BackColor
=
Color
.
White
;
}
else
{
lbl
.
BackColor
=
selectColor
;
lbl
.
ForeColor
=
Color
.
White
;
}
lbl
.
Tag
=
lst
[
i
].
Key
+
"-"
+
lst
[
i
].
Value
;
}
}
private
void
lblYear_TextChanged
(
object
sender
,
EventArgs
e
)
{
CurrentTime
=
DateTime
.
Parse
(
lblYear
.
Tag
+
"-"
+
m_dt
.
ToString
(
"MM-dd HH:mm:ss"
));
lblMouth_TextChanged
(
lblMouth
,
null
);
}
private
void
btnOK_BtnClick
(
object
sender
,
EventArgs
e
)
{
if
(
SelectedTimeEvent
!=
null
)
{
SelectedTimeEvent
(
null
,
null
);
}
}
private
void
btbMouthLast_BtnClick
(
object
sender
,
EventArgs
e
)
{
panSelectYear
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
CurrentTime
=
CurrentTime
.
AddMonths
(-
1
);
}
private
void
btnMouthNext_BtnClick
(
object
sender
,
EventArgs
e
)
{
panSelectYear
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
CurrentTime
=
CurrentTime
.
AddMonths
(
1
);
}
private
void
btnYearNext_BtnClick
(
object
sender
,
EventArgs
e
)
{
panSelectYear
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
CurrentTime
=
CurrentTime
.
AddYears
(
1
);
}
private
void
btnYearLast_BtnClick
(
object
sender
,
EventArgs
e
)
{
panSelectYear
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
CurrentTime
=
CurrentTime
.
AddYears
(-
1
);
}
private
void
lblMouth_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
panSelectMonth
.
Visible
=
!
panSelectMonth
.
Visible
;
panSelectYear
.
Visible
=
false
;
panSelectMinute
.
Visible
=
false
;
panSelectSecond
.
Visible
=
false
;
}
private
void
panSelectYear_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(
panSelectYear
.
Visible
)
{
BindYearList
(
CurrentTime
.
Year
);
}
}
private
void
BindYearList
(
int
year
)
{
List
<
int
>
lst
=
new
List
<
int
>();
for
(
int
i
=
year
-
7
;
i
<
year
+
7
;
i
++)
{
lst
.
Add
(
i
);
}
for
(
int
i
=
0
;
i
<
lst
.
Count
;
i
++)
{
((
Label
)
this
.
panSelectYearList
.
Controls
[
this
.
panSelectYearList
.
Controls
.
Count
-
i
-
1
]).
Text
=
lst
[
i
]
+
"年"
;
this
.
panSelectYearList
.
Controls
[
this
.
panSelectYearList
.
Controls
.
Count
-
i
-
1
].
Tag
=
lst
[
i
];
}
}
private
void
lblYear_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
panSelectYear
.
Visible
=
!
panSelectYear
.
Visible
;
panSelectMinute
.
Visible
=
false
;
panSelectSecond
.
Visible
=
false
;
}
private
void
btnNow_BtnClick
(
object
sender
,
EventArgs
e
)
{
CurrentTime
=
DateTime
.
Now
;
btnOK_BtnClick
(
null
,
null
);
}
private
void
UCDateTimeSelectPan2_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(
Visible
)
{
panSelectMonth
.
Visible
=
false
;
panSelectYear
.
Visible
=
false
;
panSelectHour
.
Visible
=
false
;
panSelectMinute
.
Visible
=
false
;
panSelectSecond
.
Visible
=
false
;
}
}
private
void
lblHour_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
!
panSelectHour
.
Visible
;
panSelectMonth
.
Visible
=
false
;
panSelectYear
.
Visible
=
false
;
panSelectMinute
.
Visible
=
false
;
panSelectSecond
.
Visible
=
false
;
}
private
void
label74_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
}
private
void
panSelectHour_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(
panSelectHour
.
Visible
)
{
foreach
(
Label
item
in
panSelectHourList
.
Controls
)
{
if
(
item
.
Text
==
m_dt
.
Hour
.
ToString
())
{
item
.
BackColor
=
selectColor
;
item
.
ForeColor
=
Color
.
White
;
}
else
{
item
.
BackColor
=
Color
.
White
;
item
.
ForeColor
=
selectColor
;
}
}
}
}
private
void
panSelectMinute_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(
panSelectMinute
.
Visible
)
{
foreach
(
Label
item
in
panSelectMinuteList
.
Controls
)
{
if
(
item
.
Text
==
m_dt
.
Minute
.
ToString
())
{
item
.
BackColor
=
selectColor
;
item
.
ForeColor
=
Color
.
White
;
}
else
{
item
.
BackColor
=
Color
.
White
;
item
.
ForeColor
=
selectColor
;
}
}
}
}
private
void
lblMinute_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
panSelectYear
.
Visible
=
false
;
panSelectMinute
.
Visible
=
!
panSelectMinute
.
Visible
;
panSelectSecond
.
Visible
=
false
;
}
private
void
label76_Click
(
object
sender
,
EventArgs
e
)
{
panSelectMinute
.
Visible
=
false
;
}
private
void
lblSecond_Click
(
object
sender
,
EventArgs
e
)
{
panSelectHour
.
Visible
=
false
;
panSelectMonth
.
Visible
=
false
;
panSelectYear
.
Visible
=
false
;
panSelectMinute
.
Visible
=
false
;
panSelectSecond
.
Visible
=
!
panSelectSecond
.
Visible
;
}
private
void
label77_Click
(
object
sender
,
EventArgs
e
)
{
panSelectSecond
.
Visible
=
false
;
}
private
void
panSelectSecond_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(
panSelectSecond
.
Visible
)
{
foreach
(
Label
item
in
panSelectSecondList
.
Controls
)
{
if
(
item
.
Text
==
m_dt
.
Second
.
ToString
())
{
item
.
BackColor
=
selectColor
;
item
.
ForeColor
=
Color
.
White
;
}
else
{
item
.
BackColor
=
Color
.
White
;
item
.
ForeColor
=
selectColor
;
}
}
}
}
private
void
btnClear_BtnClick
(
object
sender
,
EventArgs
e
)
{
if
(
CancelTimeEvent
!=
null
)
{
CancelTimeEvent
(
this
,
null
);
}
}
private
void
lblYearLastList_Click
(
object
sender
,
EventArgs
e
)
{
int
year
=
this
.
panSelectYearList
.
Controls
[
6
].
Tag
.
ToInt
();
year
-=
14
;
if
(
year
-
7
<
1990
)
year
=
1990
+
7
;
BindYearList
(
year
);
}
private
void
lblYearNextList_Click
(
object
sender
,
EventArgs
e
)
{
int
year
=
this
.
panSelectYearList
.
Controls
[
6
].
Tag
.
ToInt
();
year
+=
14
;
if
(
year
+
6
>
2099
)
year
=
2099
-
6
;
BindYearList
(
year
);
}
}
}
HZH_Controls/HZH_Controls/Controls/DateTime/UCDateTimeSelectPan2.resx
0 → 100644
查看文件 @
d3f350a
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
\ No newline at end of file
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
d3f350a
...
@@ -68,6 +68,18 @@
...
@@ -68,6 +68,18 @@
<SubType>UserControl</SubType>
<SubType>UserControl</SubType>
</Compile>
</Compile>
<Compile Include="Controls\DataGridView\IDataGridViewCustomCell.cs" />
<Compile Include="Controls\DataGridView\IDataGridViewCustomCell.cs" />
<Compile Include="Controls\DateTime\UCDatePickerExt2.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\DateTime\UCDatePickerExt2.Designer.cs">
<DependentUpon>UCDatePickerExt2.cs</DependentUpon>
</Compile>
<Compile Include="Controls\DateTime\UCDateTimeSelectPan2.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\DateTime\UCDateTimeSelectPan2.Designer.cs">
<DependentUpon>UCDateTimeSelectPan2.cs</DependentUpon>
</Compile>
<Compile Include="Controls\FactoryControls\DialAisle\UCDialAisle.cs">
<Compile Include="Controls\FactoryControls\DialAisle\UCDialAisle.cs">
<SubType>UserControl</SubType>
<SubType>UserControl</SubType>
</Compile>
</Compile>
...
@@ -687,9 +699,15 @@
...
@@ -687,9 +699,15 @@
<EmbeddedResource Include="Controls\DateTime\UCDatePickerExt.resx">
<EmbeddedResource Include="Controls\DateTime\UCDatePickerExt.resx">
<DependentUpon>UCDatePickerExt.cs</DependentUpon>
<DependentUpon>UCDatePickerExt.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DateTime\UCDatePickerExt2.resx">
<DependentUpon>UCDatePickerExt2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DateTime\UCDateTimeSelectPan.resx">
<EmbeddedResource Include="Controls\DateTime\UCDateTimeSelectPan.resx">
<DependentUpon>UCDateTimeSelectPan.cs</DependentUpon>
<DependentUpon>UCDateTimeSelectPan.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DateTime\UCDateTimeSelectPan2.resx">
<DependentUpon>UCDateTimeSelectPan2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\DateTime\UCTimePanel.resx">
<EmbeddedResource Include="Controls\DateTime\UCTimePanel.resx">
<DependentUpon>UCTimePanel.cs</DependentUpon>
<DependentUpon>UCTimePanel.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
HZH_Controls/Test/UC/UCTestForms.Designer.cs
查看文件 @
d3f350a
...
@@ -29,14 +29,29 @@
...
@@ -29,14 +29,29 @@
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox4
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucTextBoxEx4
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx3
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx2
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx1
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
textBoxTransparent1
=
new
HZH_Controls
.
Controls
.
TextBoxTransparent
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucCheckBox4
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox3
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox2
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox1
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucRadioButton4
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton3
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton2
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton1
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox6
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucComboxGrid1
=
new
HZH_Controls
.
Controls
.
UCComboxGrid
();
this
.
ucComboBox2
=
new
HZH_Controls
.
Controls
.
UCCombox
();
this
.
ucComboBox1
=
new
HZH_Controls
.
Controls
.
UCCombox
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox7
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucDatePickerExt3
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
ucDatePickerExt3
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
ucDatePickerExt2
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
ucDatePickerExt2
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
ucDatePickerExt1
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
ucDatePickerExt1
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucSwitch10
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch10
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch5
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch5
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch9
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch9
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
...
@@ -47,24 +62,10 @@
...
@@ -47,24 +62,10 @@
this
.
ucSwitch3
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch3
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch4
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch4
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch7
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
ucSwitch7
=
new
HZH_Controls
.
Controls
.
UCSwitch
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
ucNumTextBox2
=
new
HZH_Controls
.
Controls
.
UCNumTextBox
();
this
.
ucNumTextBox2
=
new
HZH_Controls
.
Controls
.
UCNumTextBox
();
this
.
ucNumTextBox1
=
new
HZH_Controls
.
Controls
.
UCNumTextBox
();
this
.
ucNumTextBox1
=
new
HZH_Controls
.
Controls
.
UCNumTextBox
();
this
.
ucComboxGrid1
=
new
HZH_Controls
.
Controls
.
UCComboxGrid
();
this
.
ucDatePickerExt21
=
new
HZH_Controls
.
Controls
.
UCDatePickerExt2
();
this
.
ucComboBox2
=
new
HZH_Controls
.
Controls
.
UCCombox
();
this
.
ucComboBox1
=
new
HZH_Controls
.
Controls
.
UCCombox
();
this
.
ucTextBoxEx4
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx3
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx2
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
ucTextBoxEx1
=
new
HZH_Controls
.
Controls
.
UCTextBoxEx
();
this
.
textBoxTransparent1
=
new
HZH_Controls
.
Controls
.
TextBoxTransparent
();
this
.
ucCheckBox4
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox3
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox2
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucCheckBox1
=
new
HZH_Controls
.
Controls
.
UCCheckBox
();
this
.
ucRadioButton4
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton3
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton2
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
ucRadioButton1
=
new
HZH_Controls
.
Controls
.
UCRadioButton
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
this
.
groupBox6
.
SuspendLayout
();
...
@@ -87,6 +88,204 @@
...
@@ -87,6 +88,204 @@
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
TabStop
=
false
;
this
.
groupBox4
.
Text
=
"文本框"
;
this
.
groupBox4
.
Text
=
"文本框"
;
//
//
// ucTextBoxEx4
//
this
.
ucTextBoxEx4
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx4
.
ConerRadius
=
5
;
this
.
ucTextBoxEx4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx4
.
DecLength
=
2
;
this
.
ucTextBoxEx4
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx4
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx4
.
InputText
=
""
;
this
.
ucTextBoxEx4
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx4
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx4
.
IsRadius
=
true
;
this
.
ucTextBoxEx4
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx4
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx4
.
IsShowRect
=
true
;
this
.
ucTextBoxEx4
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx4
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderAll_EN
;
this
.
ucTextBoxEx4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
273
);
this
.
ucTextBoxEx4
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx4
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx4
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx4
.
Name
=
"ucTextBoxEx4"
;
this
.
ucTextBoxEx4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx4
.
PasswordChar
=
'\0'
;
this
.
ucTextBoxEx4
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx4
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx4
.
PromptText
=
"水印文字"
;
this
.
ucTextBoxEx4
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx4
.
RectWidth
=
1
;
this
.
ucTextBoxEx4
.
RegexPattern
=
""
;
this
.
ucTextBoxEx4
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx4
.
TabIndex
=
2
;
//
// ucTextBoxEx3
//
this
.
ucTextBoxEx3
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx3
.
ConerRadius
=
5
;
this
.
ucTextBoxEx3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx3
.
DecLength
=
2
;
this
.
ucTextBoxEx3
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx3
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx3
.
InputText
=
"手写键盘"
;
this
.
ucTextBoxEx3
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx3
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx3
.
IsRadius
=
true
;
this
.
ucTextBoxEx3
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx3
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx3
.
IsShowRect
=
true
;
this
.
ucTextBoxEx3
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx3
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderHand
;
this
.
ucTextBoxEx3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
206
);
this
.
ucTextBoxEx3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx3
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx3
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx3
.
Name
=
"ucTextBoxEx3"
;
this
.
ucTextBoxEx3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx3
.
PasswordChar
=
'\0'
;
this
.
ucTextBoxEx3
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx3
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx3
.
PromptText
=
""
;
this
.
ucTextBoxEx3
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx3
.
RectWidth
=
1
;
this
.
ucTextBoxEx3
.
RegexPattern
=
""
;
this
.
ucTextBoxEx3
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx3
.
TabIndex
=
2
;
//
// ucTextBoxEx2
//
this
.
ucTextBoxEx2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx2
.
ConerRadius
=
5
;
this
.
ucTextBoxEx2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx2
.
DecLength
=
2
;
this
.
ucTextBoxEx2
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx2
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx2
.
InputText
=
"英文键盘"
;
this
.
ucTextBoxEx2
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx2
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx2
.
IsRadius
=
true
;
this
.
ucTextBoxEx2
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx2
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx2
.
IsShowRect
=
true
;
this
.
ucTextBoxEx2
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx2
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderAll_EN
;
this
.
ucTextBoxEx2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
139
);
this
.
ucTextBoxEx2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx2
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx2
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx2
.
Name
=
"ucTextBoxEx2"
;
this
.
ucTextBoxEx2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx2
.
PasswordChar
=
'\0'
;
this
.
ucTextBoxEx2
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx2
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx2
.
PromptText
=
""
;
this
.
ucTextBoxEx2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx2
.
RectWidth
=
1
;
this
.
ucTextBoxEx2
.
RegexPattern
=
""
;
this
.
ucTextBoxEx2
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx2
.
TabIndex
=
2
;
//
// ucTextBoxEx1
//
this
.
ucTextBoxEx1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx1
.
ConerRadius
=
5
;
this
.
ucTextBoxEx1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx1
.
DecLength
=
2
;
this
.
ucTextBoxEx1
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx1
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx1
.
InputText
=
"数字键盘"
;
this
.
ucTextBoxEx1
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx1
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx1
.
IsRadius
=
true
;
this
.
ucTextBoxEx1
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx1
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx1
.
IsShowRect
=
true
;
this
.
ucTextBoxEx1
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx1
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderNum
;
this
.
ucTextBoxEx1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
72
);
this
.
ucTextBoxEx1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx1
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx1
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx1
.
Name
=
"ucTextBoxEx1"
;
this
.
ucTextBoxEx1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx1
.
PasswordChar
=
'\0'
;
this
.
ucTextBoxEx1
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx1
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx1
.
PromptText
=
""
;
this
.
ucTextBoxEx1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx1
.
RectWidth
=
1
;
this
.
ucTextBoxEx1
.
RegexPattern
=
""
;
this
.
ucTextBoxEx1
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx1
.
TabIndex
=
2
;
//
// textBoxTransparent1
//
this
.
textBoxTransparent1
.
BackAlpha
=
10
;
this
.
textBoxTransparent1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
255
)))));
this
.
textBoxTransparent1
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
textBoxTransparent1
.
DecLength
=
2
;
this
.
textBoxTransparent1
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
13F
);
this
.
textBoxTransparent1
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
textBoxTransparent1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
30
);
this
.
textBoxTransparent1
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
textBoxTransparent1
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
textBoxTransparent1
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
textBoxTransparent1
.
Name
=
"textBoxTransparent1"
;
this
.
textBoxTransparent1
.
OldText
=
null
;
this
.
textBoxTransparent1
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
textBoxTransparent1
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
13F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
textBoxTransparent1
.
PromptText
=
""
;
this
.
textBoxTransparent1
.
RegexPattern
=
""
;
this
.
textBoxTransparent1
.
Size
=
new
System
.
Drawing
.
Size
(
164
,
20
);
this
.
textBoxTransparent1
.
TabIndex
=
0
;
this
.
textBoxTransparent1
.
Text
=
"这是一个透明文本框"
;
//
// groupBox3
// groupBox3
//
//
this
.
groupBox3
.
Controls
.
Add
(
this
.
ucCheckBox4
);
this
.
groupBox3
.
Controls
.
Add
(
this
.
ucCheckBox4
);
...
@@ -104,59 +303,194 @@
...
@@ -104,59 +303,194 @@
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
TabStop
=
false
;
this
.
groupBox3
.
Text
=
"单选/复选"
;
this
.
groupBox3
.
Text
=
"单选/复选"
;
//
//
//
groupBox6
//
ucCheckBox4
//
//
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboxGrid1
);
this
.
ucCheckBox4
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox2
);
this
.
ucCheckBox4
.
Checked
=
false
;
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox1
);
this
.
ucCheckBox4
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
279
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
461
);
this
.
ucCheckBox4
.
Name
=
"ucCheckBox4"
;
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
ucCheckBox4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
618
,
81
);
this
.
ucCheckBox4
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
groupBox6
.
TabIndex
=
7
;
this
.
ucCheckBox4
.
TabIndex
=
1
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
ucCheckBox4
.
TextValue
=
"复选框4"
;
this
.
groupBox6
.
Text
=
"下拉列表"
;
//
//
//
groupBox7
//
ucCheckBox3
//
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt3
);
this
.
ucCheckBox3
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt2
);
this
.
ucCheckBox3
.
Checked
=
false
;
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt1
);
this
.
ucCheckBox3
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
242
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
336
);
this
.
ucCheckBox3
.
Name
=
"ucCheckBox3"
;
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
ucCheckBox3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
374
,
119
);
this
.
ucCheckBox3
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
groupBox7
.
TabIndex
=
8
;
this
.
ucCheckBox3
.
TabIndex
=
1
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
ucCheckBox3
.
TextValue
=
"复选框3"
;
this
.
groupBox7
.
Text
=
"日历"
;
//
//
//
groupBox1
//
ucCheckBox2
//
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch10
);
this
.
ucCheckBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch5
);
this
.
ucCheckBox2
.
Checked
=
true
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch9
);
this
.
ucCheckBox2
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
205
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch1
);
this
.
ucCheckBox2
.
Name
=
"ucCheckBox2"
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch6
);
this
.
ucCheckBox2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch2
);
this
.
ucCheckBox2
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch8
);
this
.
ucCheckBox2
.
TabIndex
=
1
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch3
);
this
.
ucCheckBox2
.
TextValue
=
"复选框2"
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch4
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch7
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
174
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
238
,
281
);
this
.
groupBox1
.
TabIndex
=
7
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"下拉列表"
;
//
//
//
groupBox2
//
ucCheckBox1
//
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
ucNumTextBox2
);
this
.
ucCheckBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
groupBox2
.
Controls
.
Add
(
this
.
ucNumTextBox1
);
this
.
ucCheckBox1
.
Checked
=
true
;
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
3
);
this
.
ucCheckBox1
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
168
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
ucCheckBox1
.
Name
=
"ucCheckBox1"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
238
,
165
);
this
.
ucCheckBox1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
groupBox2
.
TabIndex
=
7
;
this
.
ucCheckBox1
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
groupBox2
.
TabStop
=
false
;
this
.
ucCheckBox1
.
TabIndex
=
1
;
this
.
groupBox2
.
Text
=
"下拉列表"
;
this
.
ucCheckBox1
.
TextValue
=
"复选框1"
;
//
// ucRadioButton4
//
this
.
ucRadioButton4
.
Checked
=
false
;
this
.
ucRadioButton4
.
GroupName
=
null
;
this
.
ucRadioButton4
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
131
);
this
.
ucRadioButton4
.
Name
=
"ucRadioButton4"
;
this
.
ucRadioButton4
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton4
.
TabIndex
=
0
;
this
.
ucRadioButton4
.
TextValue
=
"单选按钮4"
;
//
// ucRadioButton3
//
this
.
ucRadioButton3
.
Checked
=
false
;
this
.
ucRadioButton3
.
GroupName
=
null
;
this
.
ucRadioButton3
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
94
);
this
.
ucRadioButton3
.
Name
=
"ucRadioButton3"
;
this
.
ucRadioButton3
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton3
.
TabIndex
=
0
;
this
.
ucRadioButton3
.
TextValue
=
"单选按钮3"
;
//
// ucRadioButton2
//
this
.
ucRadioButton2
.
Checked
=
false
;
this
.
ucRadioButton2
.
GroupName
=
null
;
this
.
ucRadioButton2
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
57
);
this
.
ucRadioButton2
.
Name
=
"ucRadioButton2"
;
this
.
ucRadioButton2
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton2
.
TabIndex
=
0
;
this
.
ucRadioButton2
.
TextValue
=
"单选按钮2"
;
//
// ucRadioButton1
//
this
.
ucRadioButton1
.
Checked
=
true
;
this
.
ucRadioButton1
.
GroupName
=
null
;
this
.
ucRadioButton1
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
20
);
this
.
ucRadioButton1
.
Name
=
"ucRadioButton1"
;
this
.
ucRadioButton1
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton1
.
TabIndex
=
0
;
this
.
ucRadioButton1
.
TextValue
=
"单选按钮1"
;
//
// groupBox6
//
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboxGrid1
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox2
);
this
.
groupBox6
.
Controls
.
Add
(
this
.
ucComboBox1
);
this
.
groupBox6
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
530
);
this
.
groupBox6
.
Name
=
"groupBox6"
;
this
.
groupBox6
.
Size
=
new
System
.
Drawing
.
Size
(
618
,
81
);
this
.
groupBox6
.
TabIndex
=
7
;
this
.
groupBox6
.
TabStop
=
false
;
this
.
groupBox6
.
Text
=
"下拉列表"
;
//
// ucComboxGrid1
//
this
.
ucComboxGrid1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboxGrid1
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboxGrid1
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
ucComboxGrid1
.
ConerRadius
=
5
;
this
.
ucComboxGrid1
.
DropPanelHeight
=
-
1
;
this
.
ucComboxGrid1
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboxGrid1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucComboxGrid1
.
GridColumns
=
null
;
this
.
ucComboxGrid1
.
GridDataSource
=
null
;
this
.
ucComboxGrid1
.
GridRowType
=
typeof
(
HZH_Controls
.
Controls
.
UCDataGridViewRow
);
this
.
ucComboxGrid1
.
IsRadius
=
false
;
this
.
ucComboxGrid1
.
IsShowRect
=
true
;
this
.
ucComboxGrid1
.
ItemWidth
=
70
;
this
.
ucComboxGrid1
.
Location
=
new
System
.
Drawing
.
Point
(
429
,
26
);
this
.
ucComboxGrid1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboxGrid1
.
Name
=
"ucComboxGrid1"
;
this
.
ucComboxGrid1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboxGrid1
.
RectWidth
=
1
;
this
.
ucComboxGrid1
.
SelectedIndex
=
-
1
;
this
.
ucComboxGrid1
.
SelectedValue
=
""
;
this
.
ucComboxGrid1
.
SelectSource
=
null
;
this
.
ucComboxGrid1
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboxGrid1
.
Source
=
null
;
this
.
ucComboxGrid1
.
TabIndex
=
10
;
this
.
ucComboxGrid1
.
TextField
=
"Name"
;
this
.
ucComboxGrid1
.
TextValue
=
null
;
this
.
ucComboxGrid1
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// ucComboBox2
//
this
.
ucComboBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboBox2
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
ucComboBox2
.
ConerRadius
=
5
;
this
.
ucComboBox2
.
DropPanelHeight
=
-
1
;
this
.
ucComboBox2
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucComboBox2
.
IsRadius
=
false
;
this
.
ucComboBox2
.
IsShowRect
=
true
;
this
.
ucComboBox2
.
ItemWidth
=
70
;
this
.
ucComboBox2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
26
);
this
.
ucComboBox2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboBox2
.
Name
=
"ucComboBox2"
;
this
.
ucComboBox2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
RectWidth
=
1
;
this
.
ucComboBox2
.
SelectedIndex
=
-
1
;
this
.
ucComboBox2
.
SelectedValue
=
""
;
this
.
ucComboBox2
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboBox2
.
Source
=
null
;
this
.
ucComboBox2
.
TabIndex
=
5
;
this
.
ucComboBox2
.
TextValue
=
null
;
this
.
ucComboBox2
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// ucComboBox1
//
this
.
ucComboBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboBox1
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox1
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDown
;
this
.
ucComboBox1
.
ConerRadius
=
5
;
this
.
ucComboBox1
.
DropPanelHeight
=
-
1
;
this
.
ucComboBox1
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucComboBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucComboBox1
.
IsRadius
=
true
;
this
.
ucComboBox1
.
IsShowRect
=
true
;
this
.
ucComboBox1
.
ItemWidth
=
70
;
this
.
ucComboBox1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
26
);
this
.
ucComboBox1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboBox1
.
Name
=
"ucComboBox1"
;
this
.
ucComboBox1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucComboBox1
.
RectWidth
=
1
;
this
.
ucComboBox1
.
SelectedIndex
=
-
1
;
this
.
ucComboBox1
.
SelectedValue
=
""
;
this
.
ucComboBox1
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboBox1
.
Source
=
null
;
this
.
ucComboBox1
.
TabIndex
=
5
;
this
.
ucComboBox1
.
TextValue
=
null
;
this
.
ucComboBox1
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// groupBox7
//
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt21
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt3
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt2
);
this
.
groupBox7
.
Controls
.
Add
(
this
.
ucDatePickerExt1
);
this
.
groupBox7
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
336
);
this
.
groupBox7
.
Name
=
"groupBox7"
;
this
.
groupBox7
.
Size
=
new
System
.
Drawing
.
Size
(
374
,
188
);
this
.
groupBox7
.
TabIndex
=
8
;
this
.
groupBox7
.
TabStop
=
false
;
this
.
groupBox7
.
Text
=
"日历"
;
//
//
// ucDatePickerExt3
// ucDatePickerExt3
//
//
...
@@ -218,6 +552,25 @@
...
@@ -218,6 +552,25 @@
this
.
ucDatePickerExt1
.
TimeFontSize
=
20
;
this
.
ucDatePickerExt1
.
TimeFontSize
=
20
;
this
.
ucDatePickerExt1
.
TimeType
=
HZH_Controls
.
Controls
.
DateTimePickerType
.
DateTime
;
this
.
ucDatePickerExt1
.
TimeType
=
HZH_Controls
.
Controls
.
DateTimePickerType
.
DateTime
;
//
//
// groupBox1
//
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch10
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch5
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch9
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch1
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch6
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch2
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch8
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch3
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch4
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
ucSwitch7
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
174
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
238
,
281
);
this
.
groupBox1
.
TabIndex
=
7
;
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"下拉列表"
;
//
// ucSwitch10
// ucSwitch10
//
//
this
.
ucSwitch10
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucSwitch10
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
...
@@ -376,6 +729,17 @@
...
@@ -376,6 +729,17 @@
this
.
ucSwitch7
.
TrueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucSwitch7
.
TrueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucSwitch7
.
TrueTextColr
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucSwitch7
.
TrueTextColr
=
System
.
Drawing
.
Color
.
Black
;
//
//
// groupBox2
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
ucNumTextBox2
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
ucNumTextBox1
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
383
,
3
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
238
,
165
);
this
.
groupBox2
.
TabIndex
=
7
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"下拉列表"
;
//
// ucNumTextBox2
// ucNumTextBox2
//
//
this
.
ucNumTextBox2
.
Increment
=
new
decimal
(
new
int
[]
{
this
.
ucNumTextBox2
.
Increment
=
new
decimal
(
new
int
[]
{
...
@@ -438,363 +802,25 @@
...
@@ -438,363 +802,25 @@
this
.
ucNumTextBox1
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
44
);
this
.
ucNumTextBox1
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
44
);
this
.
ucNumTextBox1
.
TabIndex
=
1
;
this
.
ucNumTextBox1
.
TabIndex
=
1
;
//
//
// ucComboxGrid1
// ucDatePickerExt21
//
//
this
.
ucComboxGrid1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucDatePickerExt21
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboxGrid1
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucDatePickerExt21
.
ConerRadius
=
5
;
this
.
ucComboxGrid1
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
ucDatePickerExt21
.
CurrentTime
=
new
System
.
DateTime
(
2020
,
7
,
11
,
11
,
46
,
51
,
0
);
this
.
ucComboxGrid1
.
ConerRadius
=
5
;
this
.
ucDatePickerExt21
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucComboxGrid1
.
DropPanelHeight
=
-
1
;
this
.
ucDatePickerExt21
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucComboxGrid1
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucDatePickerExt21
.
IsRadius
=
true
;
this
.
ucComboxGrid1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucDatePickerExt21
.
IsShowRect
=
true
;
this
.
ucComboxGrid1
.
GridColumns
=
null
;
this
.
ucDatePickerExt21
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
111
);
this
.
ucComboxGrid1
.
GridDataSource
=
null
;
this
.
ucDatePickerExt21
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboxGrid1
.
GridRowType
=
typeof
(
HZH_Controls
.
Controls
.
UCDataGridViewRow
);
this
.
ucDatePickerExt21
.
Name
=
"ucDatePickerExt21"
;
this
.
ucComboxGrid1
.
IsRadius
=
false
;
this
.
ucDatePickerExt21
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucComboxGrid1
.
IsShowRect
=
true
;
this
.
ucDatePickerExt21
.
RectWidth
=
1
;
this
.
ucComboxGrid1
.
ItemWidth
=
70
;
this
.
ucDatePickerExt21
.
SelectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucComboxGrid1
.
Location
=
new
System
.
Drawing
.
Point
(
429
,
26
);
this
.
ucDatePickerExt21
.
Size
=
new
System
.
Drawing
.
Size
(
336
,
39
);
this
.
ucComboxGrid1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucDatePickerExt21
.
TabIndex
=
1
;
this
.
ucComboxGrid1
.
Name
=
"ucComboxGrid1"
;
this
.
ucDatePickerExt21
.
TimeFontSize
=
20
;
this
.
ucComboxGrid1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucDatePickerExt21
.
TimeType
=
HZH_Controls
.
Controls
.
DateTimePickerType
.
DateTime
;
this
.
ucComboxGrid1
.
RectWidth
=
1
;
this
.
ucComboxGrid1
.
SelectedIndex
=
-
1
;
this
.
ucComboxGrid1
.
SelectedValue
=
""
;
this
.
ucComboxGrid1
.
SelectSource
=
null
;
this
.
ucComboxGrid1
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboxGrid1
.
Source
=
null
;
this
.
ucComboxGrid1
.
TabIndex
=
10
;
this
.
ucComboxGrid1
.
TextField
=
"Name"
;
this
.
ucComboxGrid1
.
TextValue
=
null
;
this
.
ucComboxGrid1
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// ucComboBox2
//
this
.
ucComboBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboBox2
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
ucComboBox2
.
ConerRadius
=
5
;
this
.
ucComboBox2
.
DropPanelHeight
=
-
1
;
this
.
ucComboBox2
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucComboBox2
.
IsRadius
=
false
;
this
.
ucComboBox2
.
IsShowRect
=
true
;
this
.
ucComboBox2
.
ItemWidth
=
70
;
this
.
ucComboBox2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
26
);
this
.
ucComboBox2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboBox2
.
Name
=
"ucComboBox2"
;
this
.
ucComboBox2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox2
.
RectWidth
=
1
;
this
.
ucComboBox2
.
SelectedIndex
=
-
1
;
this
.
ucComboBox2
.
SelectedValue
=
""
;
this
.
ucComboBox2
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboBox2
.
Source
=
null
;
this
.
ucComboBox2
.
TabIndex
=
5
;
this
.
ucComboBox2
.
TextValue
=
null
;
this
.
ucComboBox2
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// ucComboBox1
//
this
.
ucComboBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucComboBox1
.
BackColorExt
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))),
((
int
)(((
byte
)(
240
)))));
this
.
ucComboBox1
.
BoxStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDown
;
this
.
ucComboBox1
.
ConerRadius
=
5
;
this
.
ucComboBox1
.
DropPanelHeight
=
-
1
;
this
.
ucComboBox1
.
FillColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucComboBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucComboBox1
.
IsRadius
=
true
;
this
.
ucComboBox1
.
IsShowRect
=
true
;
this
.
ucComboBox1
.
ItemWidth
=
70
;
this
.
ucComboBox1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
26
);
this
.
ucComboBox1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucComboBox1
.
Name
=
"ucComboBox1"
;
this
.
ucComboBox1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucComboBox1
.
RectWidth
=
1
;
this
.
ucComboBox1
.
SelectedIndex
=
-
1
;
this
.
ucComboBox1
.
SelectedValue
=
""
;
this
.
ucComboBox1
.
Size
=
new
System
.
Drawing
.
Size
(
173
,
32
);
this
.
ucComboBox1
.
Source
=
null
;
this
.
ucComboBox1
.
TabIndex
=
5
;
this
.
ucComboBox1
.
TextValue
=
null
;
this
.
ucComboBox1
.
TriangleColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
//
// ucTextBoxEx4
//
this
.
ucTextBoxEx4
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx4
.
ConerRadius
=
5
;
this
.
ucTextBoxEx4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx4
.
DecLength
=
2
;
this
.
ucTextBoxEx4
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx4
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx4
.
InputText
=
""
;
this
.
ucTextBoxEx4
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx4
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx4
.
IsRadius
=
true
;
this
.
ucTextBoxEx4
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx4
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx4
.
IsShowRect
=
true
;
this
.
ucTextBoxEx4
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx4
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderAll_EN
;
this
.
ucTextBoxEx4
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
273
);
this
.
ucTextBoxEx4
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx4
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx4
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx4
.
Name
=
"ucTextBoxEx4"
;
this
.
ucTextBoxEx4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx4
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx4
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx4
.
PromptText
=
"水印文字"
;
this
.
ucTextBoxEx4
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx4
.
RectWidth
=
1
;
this
.
ucTextBoxEx4
.
RegexPattern
=
""
;
this
.
ucTextBoxEx4
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx4
.
TabIndex
=
2
;
//
// ucTextBoxEx3
//
this
.
ucTextBoxEx3
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx3
.
ConerRadius
=
5
;
this
.
ucTextBoxEx3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx3
.
DecLength
=
2
;
this
.
ucTextBoxEx3
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx3
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx3
.
InputText
=
"手写键盘"
;
this
.
ucTextBoxEx3
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx3
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx3
.
IsRadius
=
true
;
this
.
ucTextBoxEx3
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx3
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx3
.
IsShowRect
=
true
;
this
.
ucTextBoxEx3
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx3
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderHand
;
this
.
ucTextBoxEx3
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
206
);
this
.
ucTextBoxEx3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx3
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx3
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx3
.
Name
=
"ucTextBoxEx3"
;
this
.
ucTextBoxEx3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx3
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx3
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx3
.
PromptText
=
""
;
this
.
ucTextBoxEx3
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx3
.
RectWidth
=
1
;
this
.
ucTextBoxEx3
.
RegexPattern
=
""
;
this
.
ucTextBoxEx3
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx3
.
TabIndex
=
2
;
//
// ucTextBoxEx2
//
this
.
ucTextBoxEx2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx2
.
ConerRadius
=
5
;
this
.
ucTextBoxEx2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx2
.
DecLength
=
2
;
this
.
ucTextBoxEx2
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx2
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx2
.
InputText
=
"英文键盘"
;
this
.
ucTextBoxEx2
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx2
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx2
.
IsRadius
=
true
;
this
.
ucTextBoxEx2
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx2
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx2
.
IsShowRect
=
true
;
this
.
ucTextBoxEx2
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx2
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderAll_EN
;
this
.
ucTextBoxEx2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
139
);
this
.
ucTextBoxEx2
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx2
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx2
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx2
.
Name
=
"ucTextBoxEx2"
;
this
.
ucTextBoxEx2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx2
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx2
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx2
.
PromptText
=
""
;
this
.
ucTextBoxEx2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx2
.
RectWidth
=
1
;
this
.
ucTextBoxEx2
.
RegexPattern
=
""
;
this
.
ucTextBoxEx2
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx2
.
TabIndex
=
2
;
//
// ucTextBoxEx1
//
this
.
ucTextBoxEx1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucTextBoxEx1
.
ConerRadius
=
5
;
this
.
ucTextBoxEx1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
ucTextBoxEx1
.
DecLength
=
2
;
this
.
ucTextBoxEx1
.
FillColor
=
System
.
Drawing
.
Color
.
Empty
;
this
.
ucTextBoxEx1
.
FocusBorderColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucTextBoxEx1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
18F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx1
.
InputText
=
"数字键盘"
;
this
.
ucTextBoxEx1
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
ucTextBoxEx1
.
IsFocusColor
=
true
;
this
.
ucTextBoxEx1
.
IsRadius
=
true
;
this
.
ucTextBoxEx1
.
IsShowClearBtn
=
true
;
this
.
ucTextBoxEx1
.
IsShowKeyboard
=
true
;
this
.
ucTextBoxEx1
.
IsShowRect
=
true
;
this
.
ucTextBoxEx1
.
IsShowSearchBtn
=
false
;
this
.
ucTextBoxEx1
.
KeyBoardType
=
HZH_Controls
.
Controls
.
KeyBoardType
.
UCKeyBorderNum
;
this
.
ucTextBoxEx1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
72
);
this
.
ucTextBoxEx1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
,
5
,
4
,
5
);
this
.
ucTextBoxEx1
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
ucTextBoxEx1
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
ucTextBoxEx1
.
Name
=
"ucTextBoxEx1"
;
this
.
ucTextBoxEx1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
ucTextBoxEx1
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
ucTextBoxEx1
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucTextBoxEx1
.
PromptText
=
""
;
this
.
ucTextBoxEx1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucTextBoxEx1
.
RectWidth
=
1
;
this
.
ucTextBoxEx1
.
RegexPattern
=
""
;
this
.
ucTextBoxEx1
.
Size
=
new
System
.
Drawing
.
Size
(
195
,
42
);
this
.
ucTextBoxEx1
.
TabIndex
=
2
;
//
// textBoxTransparent1
//
this
.
textBoxTransparent1
.
BackAlpha
=
10
;
this
.
textBoxTransparent1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
255
)))));
this
.
textBoxTransparent1
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
None
;
this
.
textBoxTransparent1
.
DecLength
=
2
;
this
.
textBoxTransparent1
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
13F
);
this
.
textBoxTransparent1
.
InputType
=
HZH_Controls
.
TextInputType
.
NotControl
;
this
.
textBoxTransparent1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
30
);
this
.
textBoxTransparent1
.
MaxValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
0
});
this
.
textBoxTransparent1
.
MinValue
=
new
decimal
(
new
int
[]
{
1000000
,
0
,
0
,
-
2147483648
});
this
.
textBoxTransparent1
.
MyRectangle
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
textBoxTransparent1
.
Name
=
"textBoxTransparent1"
;
this
.
textBoxTransparent1
.
OldText
=
null
;
this
.
textBoxTransparent1
.
PromptColor
=
System
.
Drawing
.
Color
.
Gray
;
this
.
textBoxTransparent1
.
PromptFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
13F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
textBoxTransparent1
.
PromptText
=
""
;
this
.
textBoxTransparent1
.
RegexPattern
=
""
;
this
.
textBoxTransparent1
.
Size
=
new
System
.
Drawing
.
Size
(
164
,
20
);
this
.
textBoxTransparent1
.
TabIndex
=
0
;
this
.
textBoxTransparent1
.
Text
=
"这是一个透明文本框"
;
//
// ucCheckBox4
//
this
.
ucCheckBox4
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucCheckBox4
.
Checked
=
false
;
this
.
ucCheckBox4
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
279
);
this
.
ucCheckBox4
.
Name
=
"ucCheckBox4"
;
this
.
ucCheckBox4
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
ucCheckBox4
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucCheckBox4
.
TabIndex
=
1
;
this
.
ucCheckBox4
.
TextValue
=
"复选框4"
;
//
// ucCheckBox3
//
this
.
ucCheckBox3
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucCheckBox3
.
Checked
=
false
;
this
.
ucCheckBox3
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
242
);
this
.
ucCheckBox3
.
Name
=
"ucCheckBox3"
;
this
.
ucCheckBox3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
ucCheckBox3
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucCheckBox3
.
TabIndex
=
1
;
this
.
ucCheckBox3
.
TextValue
=
"复选框3"
;
//
// ucCheckBox2
//
this
.
ucCheckBox2
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucCheckBox2
.
Checked
=
true
;
this
.
ucCheckBox2
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
205
);
this
.
ucCheckBox2
.
Name
=
"ucCheckBox2"
;
this
.
ucCheckBox2
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
ucCheckBox2
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucCheckBox2
.
TabIndex
=
1
;
this
.
ucCheckBox2
.
TextValue
=
"复选框2"
;
//
// ucCheckBox1
//
this
.
ucCheckBox1
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
ucCheckBox1
.
Checked
=
true
;
this
.
ucCheckBox1
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
168
);
this
.
ucCheckBox1
.
Name
=
"ucCheckBox1"
;
this
.
ucCheckBox1
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
1
);
this
.
ucCheckBox1
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucCheckBox1
.
TabIndex
=
1
;
this
.
ucCheckBox1
.
TextValue
=
"复选框1"
;
//
// ucRadioButton4
//
this
.
ucRadioButton4
.
Checked
=
false
;
this
.
ucRadioButton4
.
GroupName
=
null
;
this
.
ucRadioButton4
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
131
);
this
.
ucRadioButton4
.
Name
=
"ucRadioButton4"
;
this
.
ucRadioButton4
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton4
.
TabIndex
=
0
;
this
.
ucRadioButton4
.
TextValue
=
"单选按钮4"
;
//
// ucRadioButton3
//
this
.
ucRadioButton3
.
Checked
=
false
;
this
.
ucRadioButton3
.
GroupName
=
null
;
this
.
ucRadioButton3
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
94
);
this
.
ucRadioButton3
.
Name
=
"ucRadioButton3"
;
this
.
ucRadioButton3
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton3
.
TabIndex
=
0
;
this
.
ucRadioButton3
.
TextValue
=
"单选按钮3"
;
//
// ucRadioButton2
//
this
.
ucRadioButton2
.
Checked
=
false
;
this
.
ucRadioButton2
.
GroupName
=
null
;
this
.
ucRadioButton2
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
57
);
this
.
ucRadioButton2
.
Name
=
"ucRadioButton2"
;
this
.
ucRadioButton2
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton2
.
TabIndex
=
0
;
this
.
ucRadioButton2
.
TextValue
=
"单选按钮2"
;
//
// ucRadioButton1
//
this
.
ucRadioButton1
.
Checked
=
true
;
this
.
ucRadioButton1
.
GroupName
=
null
;
this
.
ucRadioButton1
.
Location
=
new
System
.
Drawing
.
Point
(
17
,
20
);
this
.
ucRadioButton1
.
Name
=
"ucRadioButton1"
;
this
.
ucRadioButton1
.
Size
=
new
System
.
Drawing
.
Size
(
126
,
30
);
this
.
ucRadioButton1
.
TabIndex
=
0
;
this
.
ucRadioButton1
.
TextValue
=
"单选按钮1"
;
//
//
// UCTestForms
// UCTestForms
//
//
...
@@ -807,7 +833,7 @@
...
@@ -807,7 +833,7 @@
this
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
Controls
.
Add
(
this
.
groupBox4
);
this
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
Name
=
"UCTestForms"
;
this
.
Name
=
"UCTestForms"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
6
56
,
567
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
6
45
,
711
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
UCForms_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
UCForms_Load
);
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox4
.
ResumeLayout
(
false
);
this
.
groupBox4
.
PerformLayout
();
this
.
groupBox4
.
PerformLayout
();
...
@@ -859,5 +885,6 @@
...
@@ -859,5 +885,6 @@
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
HZH_Controls
.
Controls
.
UCNumTextBox
ucNumTextBox2
;
private
HZH_Controls
.
Controls
.
UCNumTextBox
ucNumTextBox2
;
private
HZH_Controls
.
Controls
.
UCDatePickerExt2
ucDatePickerExt21
;
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论