Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a261a12c
由
HZH
编写于
2019-08-27 11:22:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
add dropdownBtns
1 个父辈
5fded8fc
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
451 行增加
和
59 行删除
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnExt.cs
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.Designer.cs
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.cs
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.resx
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.Designer.cs
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.cs
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.resx
HZH_Controls/HZH_Controls/Controls/UCControlBase.cs
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/Form1.Designer.cs
HZH_Controls/Test/Form1.cs
HZH_Controls/Test/Form1.resx
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/Test/Form2.cs
HZH_Controls/Test/Form2.resx
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnExt.cs
查看文件 @
a261a12
...
@@ -16,7 +16,7 @@ using System.Windows.Forms;
...
@@ -16,7 +16,7 @@ using System.Windows.Forms;
namespace
HZH_Controls.Controls
namespace
HZH_Controls.Controls
{
{
[
DefaultEvent
(
"BtnClick"
)]
[
DefaultEvent
(
"BtnClick"
)]
public
partial
class
UCBtnExt
:
UCControlBase
public
partial
class
UCBtnExt
:
UCControlBase
{
{
#
region
字段属性
#
region
字段属性
...
@@ -99,7 +99,7 @@ namespace HZH_Controls.Controls
...
@@ -99,7 +99,7 @@ namespace HZH_Controls.Controls
/// 按钮文字
/// 按钮文字
/// </summary>
/// </summary>
[
Description
(
"按钮文字"
),
Category
(
"自定义"
)]
[
Description
(
"按钮文字"
),
Category
(
"自定义"
)]
public
string
BtnText
public
virtual
string
BtnText
{
{
get
{
return
_btnText
;
}
get
{
return
_btnText
;
}
set
set
...
...
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.Designer.cs
查看文件 @
a261a12
...
@@ -28,15 +28,12 @@
...
@@ -28,15 +28,12 @@
/// </summary>
/// </summary>
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
UCBtnImg
));
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
UCBtnImg
));
this
.
imageList1
=
new
System
.
Windows
.
Forms
.
ImageList
(
this
.
components
);
this
.
imageList1
=
new
System
.
Windows
.
Forms
.
ImageList
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// lbl
// lbl
//
//
//this.lbl.Font = new System.Drawing.Font("微软雅黑", 17F);
//this.lbl.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102)))));
this
.
lbl
.
ImageIndex
=
0
;
this
.
lbl
.
ImageIndex
=
0
;
this
.
lbl
.
ImageList
=
this
.
imageList1
;
this
.
lbl
.
ImageList
=
this
.
imageList1
;
this
.
lbl
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
10
,
0
,
0
,
0
);
this
.
lbl
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
10
,
0
,
0
,
0
);
...
@@ -49,11 +46,11 @@
...
@@ -49,11 +46,11 @@
this
.
imageList1
.
TransparentColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
imageList1
.
TransparentColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
imageList1
.
Images
.
SetKeyName
(
0
,
"back.png"
);
this
.
imageList1
.
Images
.
SetKeyName
(
0
,
"back.png"
);
//
//
//
BtnBack
//
UCBtnImg
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
Name
=
"BtnBack"
;
this
.
IsShowTips
=
true
;
this
.
Name
=
"UCBtnImg"
;
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
}
...
...
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.cs
查看文件 @
a261a12
...
@@ -24,13 +24,13 @@ namespace HZH_Controls.Controls
...
@@ -24,13 +24,13 @@ namespace HZH_Controls.Controls
/// 按钮文字
/// 按钮文字
/// </summary>
/// </summary>
[
Description
(
"按钮文字"
),
Category
(
"自定义"
)]
[
Description
(
"按钮文字"
),
Category
(
"自定义"
)]
public
new
string
BtnText
public
override
string
BtnText
{
{
get
{
return
_btnText
;
}
get
{
return
_btnText
;
}
set
set
{
{
_btnText
=
value
;
_btnText
=
value
;
lbl
.
Text
=
" "
+
value
;
lbl
.
Text
=
value
;
lbl
.
Refresh
();
lbl
.
Refresh
();
}
}
}
}
...
@@ -38,7 +38,7 @@ namespace HZH_Controls.Controls
...
@@ -38,7 +38,7 @@ namespace HZH_Controls.Controls
/// 图片
/// 图片
/// </summary>
/// </summary>
[
Description
(
"图片"
),
Category
(
"自定义"
)]
[
Description
(
"图片"
),
Category
(
"自定义"
)]
public
Image
Image
public
virtual
Image
Image
{
{
get
get
{
{
...
@@ -52,6 +52,13 @@ namespace HZH_Controls.Controls
...
@@ -52,6 +52,13 @@ namespace HZH_Controls.Controls
}
}
}
}
[
Description
(
"图片位置"
),
Category
(
"自定义"
)]
public
virtual
ContentAlignment
ImageAlign
{
get
{
return
this
.
lbl
.
ImageAlign
;
}
set
{
lbl
.
ImageAlign
=
value
;
}
}
public
UCBtnImg
()
public
UCBtnImg
()
{
{
InitializeComponent
();
InitializeComponent
();
...
...
HZH_Controls/HZH_Controls/Controls/Btn/UCBtnImg.resx
查看文件 @
a261a12
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAU
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAU
CAAAAk1TRnQBSQFMAwEBAAE
IAQABC
AEAAQ4BAAEYAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
CAAAAk1TRnQBSQFMAwEBAAE
QAQABE
AEAAQ4BAAEYAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
ATgDAAEYAwABAQEAAQgFAAFAAQUYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
ATgDAAEYAwABAQEAAQgFAAFAAQUYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw
AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw
AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/wwAAeMCFzQAAeMDFzMA
AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/wwAAeMCFzQAAeMDFzMA
BBcBvTIABBcBGzIABBcBGzIABBcBGzIABBcBGzIABBcBGzIABBcB
9TIABBcB9TIABBcB9T
MAAxcBlDQA
BBcBvTIABBcBGzIABBcBGzIABBcBGzIABBcBGzIABBcBGzIABBcB
/zIABBcB/zIABBcB/z
MAAxcBlDQA
AZQDFwGUNAABlAMXAZQ0AAGUAxcBlDQAAZQDFwGUNAABlAMXAeM0AAG9AxcB4zQAAb0DFwHjNAABvQMX
AZQDFwGUNAABlAMXAZQ0AAGUAxcBlDQAAZQDFwGUNAABlAMXAeM0AAG9AxcB4zQAAb0DFwHjNAABvQMX
AeM0AAG9AxcB4zQAAb0DFzUAARsCFzYAAv8qAAFCAU0BPgcAAT4DAAEoAwABOAMAARgDAAEBAQABAQUA
AeM0AAG9AxcB4zQAAb0DFzUAARsCFzYAAv8qAAFCAU0BPgcAAT4DAAEoAwABOAMAARgDAAEBAQABAQUA
AcAXAAP/AQAB/wHgBgAB/wHABgAB/wGABgAB/wEEBgAB/gEMBgAB/AEcBgAB+AE8BgAB8AF8BgAB4AH8
AcAXAAP/AQAB/wHgBgAB/wHABgAB/wGABgAB/wEEBgAB/gEMBgAB/AEcBgAB+AE8BgAB8AF8BgAB4AH8
...
...
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.Designer.cs
0 → 100644
查看文件 @
a261a12
namespace
HZH_Controls.Controls.Btn
{
partial
class
UCDropDownBtn
{
/// <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
()
{
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
UCDropDownBtn
));
this
.
SuspendLayout
();
//
// lbl
//
this
.
lbl
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
14F
);
this
.
lbl
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
lbl
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lbl
.
ImageList
=
null
;
this
.
lbl
.
Text
=
"自定义按钮"
;
this
.
lbl
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// UCDropDownBtn
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BtnFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
14F
);
this
.
BtnForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"$this.Image"
)));
this
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
Name
=
"UCDropDownBtn"
;
this
.
ResumeLayout
(
false
);
}
#
endregion
}
}
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.cs
0 → 100644
查看文件 @
a261a12
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.Btn
{
[
DefaultEvent
(
"BtnClick"
)]
public
partial
class
UCDropDownBtn
:
UCBtnImg
{
Forms
.
FrmAnchor
_frmAnchor
;
private
int
_dropPanelHeight
=
-
1
;
public
new
event
EventHandler
BtnClick
;
[
Description
(
"下拉框高度"
),
Category
(
"自定义"
)]
public
int
DropPanelHeight
{
get
{
return
_dropPanelHeight
;
}
set
{
_dropPanelHeight
=
value
;
}
}
private
string
[]
btns
;
[
Description
(
"按钮"
),
Category
(
"自定义"
)]
public
string
[]
Btns
{
get
{
return
btns
;
}
set
{
btns
=
value
;
}
}
[
Obsolete
(
"不再可用的属性"
)]
[
Browsable
(
false
),
EditorBrowsable
(
EditorBrowsableState
.
Never
)]
public
override
Image
Image
{
get
;
set
;
}
[
Obsolete
(
"不再可用的属性"
)]
[
Browsable
(
false
),
EditorBrowsable
(
EditorBrowsableState
.
Never
)]
public
override
ContentAlignment
ImageAlign
{
get
;
set
;
}
public
UCDropDownBtn
()
{
InitializeComponent
();
IsShowTips
=
false
;
this
.
lbl
.
Image
=
Properties
.
Resources
.
ComboBox
;
this
.
lbl
.
ImageAlign
=
ContentAlignment
.
MiddleRight
;
base
.
BtnClick
+=
UCDropDownBtn_BtnClick
;
}
void
UCDropDownBtn_BtnClick
(
object
sender
,
EventArgs
e
)
{
if
(
_frmAnchor
==
null
||
_frmAnchor
.
IsDisposed
||
_frmAnchor
.
Visible
==
false
)
{
if
(
Btns
!=
null
&&
Btns
.
Length
>
0
)
{
int
intRow
=
0
;
int
intCom
=
1
;
var
p
=
this
.
PointToScreen
(
this
.
Location
);
while
(
true
)
{
int
intScreenHeight
=
Screen
.
PrimaryScreen
.
Bounds
.
Height
;
if
((
p
.
Y
+
this
.
Height
+
Btns
.
Length
/
intCom
*
50
<
intScreenHeight
||
p
.
Y
-
Btns
.
Length
/
intCom
*
50
>
0
)
&&
(
_dropPanelHeight
<=
0
?
true
:
(
Btns
.
Length
/
intCom
*
50
<=
_dropPanelHeight
)))
{
intRow
=
Btns
.
Length
/
intCom
+
(
Btns
.
Length
%
intCom
!=
0
?
1
:
0
);
break
;
}
intCom
++;
}
UCTimePanel
ucTime
=
new
UCTimePanel
();
ucTime
.
IsShowBorder
=
true
;
int
intWidth
=
this
.
Width
/
intCom
;
Size
size
=
new
Size
(
intCom
*
intWidth
,
intRow
*
50
);
ucTime
.
Size
=
size
;
ucTime
.
FirstEvent
=
true
;
ucTime
.
SelectSourceEvent
+=
ucTime_SelectSourceEvent
;
ucTime
.
Row
=
intRow
;
ucTime
.
Column
=
intCom
;
List
<
KeyValuePair
<
string
,
string
>>
lst
=
new
List
<
KeyValuePair
<
string
,
string
>>();
foreach
(
var
item
in
Btns
)
{
lst
.
Add
(
new
KeyValuePair
<
string
,
string
>(
item
,
item
));
}
ucTime
.
Source
=
lst
;
_frmAnchor
=
new
Forms
.
FrmAnchor
(
this
,
ucTime
);
_frmAnchor
.
Load
+=
(
a
,
b
)
=>
{
(
a
as
Form
).
Size
=
size
;
};
_frmAnchor
.
Show
(
this
.
FindForm
());
}
}
else
{
_frmAnchor
.
Close
();
}
}
void
ucTime_SelectSourceEvent
(
object
sender
,
EventArgs
e
)
{
if
(
_frmAnchor
!=
null
&&
!
_frmAnchor
.
IsDisposed
&&
_frmAnchor
.
Visible
)
{
_frmAnchor
.
Close
();
if
(
BtnClick
!=
null
)
{
BtnClick
(
sender
.
ToString
(),
e
);
}
}
}
}
}
HZH_Controls/HZH_Controls/Controls/Btn/UCDropDownBtn.resx
0 → 100644
查看文件 @
a261a12
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD0SURBVDhPjZLtDcIwDES9Ezt1py7AMCgrdIGKH3SC0OfE
JZ/FJxmR+E55livP1ycua4iPJboKLxnZti0HPeFwemPc9z3KcRx68AbX04uEHw4eXB4A8wqmOcfmsvCE
oLkoCOb/uAlT5zMxp+IOA6noQYY3x6TAnb/YYSIOXN7NaZhdkEuaoxBlmFUQcaG4g5DN14UQlzNcne+t
uT6Ifmupq1tDK2YAqd5n+qirNbQCBdzyNea7xUQ0MZW4/O/W0Ipmu5bpGlrVc4b+a5kJk+G6ME2YbC2U
CxNhMlzKlNtzZZ/i2hpQbt8LI6+6MU3qLpSvC4l8ASkgxV0fp9H6AAAAAElFTkSuQmCC
</value>
</data>
</root>
\ No newline at end of file
\ No newline at end of file
HZH_Controls/HZH_Controls/Controls/UCControlBase.cs
查看文件 @
a261a12
...
@@ -145,22 +145,25 @@ namespace HZH_Controls.Controls
...
@@ -145,22 +145,25 @@ namespace HZH_Controls.Controls
{
{
this
.
SetWindowRegion
();
this
.
SetWindowRegion
();
}
}
if
(
this
.
_isShowRect
)
GraphicsPath
graphicsPath
=
new
GraphicsPath
();
if
(
this
.
_isShowRect
||
(
_fillColor
!=
Color
.
Empty
&&
_fillColor
!=
Color
.
Transparent
&&
_fillColor
!=
this
.
BackColor
))
{
{
Color
rectColor
=
this
.
_rectColor
;
Pen
pen
=
new
Pen
(
rectColor
,
(
float
)
this
.
_rectWidth
);
Rectangle
clientRectangle
=
base
.
ClientRectangle
;
Rectangle
clientRectangle
=
base
.
ClientRectangle
;
GraphicsPath
graphicsPath
=
new
GraphicsPath
();
graphicsPath
.
AddArc
(
0
,
0
,
_cornerRadius
,
_cornerRadius
,
180f
,
90f
);
graphicsPath
.
AddArc
(
0
,
0
,
_cornerRadius
,
_cornerRadius
,
180f
,
90f
);
graphicsPath
.
AddArc
(
clientRectangle
.
Width
-
_cornerRadius
-
1
,
0
,
_cornerRadius
,
_cornerRadius
,
270f
,
90f
);
graphicsPath
.
AddArc
(
clientRectangle
.
Width
-
_cornerRadius
-
1
,
0
,
_cornerRadius
,
_cornerRadius
,
270f
,
90f
);
graphicsPath
.
AddArc
(
clientRectangle
.
Width
-
_cornerRadius
-
1
,
clientRectangle
.
Height
-
_cornerRadius
-
1
,
_cornerRadius
,
_cornerRadius
,
0f
,
90f
);
graphicsPath
.
AddArc
(
clientRectangle
.
Width
-
_cornerRadius
-
1
,
clientRectangle
.
Height
-
_cornerRadius
-
1
,
_cornerRadius
,
_cornerRadius
,
0f
,
90f
);
graphicsPath
.
AddArc
(
0
,
clientRectangle
.
Height
-
_cornerRadius
-
1
,
_cornerRadius
,
_cornerRadius
,
90f
,
90f
);
graphicsPath
.
AddArc
(
0
,
clientRectangle
.
Height
-
_cornerRadius
-
1
,
_cornerRadius
,
_cornerRadius
,
90f
,
90f
);
graphicsPath
.
CloseFigure
();
graphicsPath
.
CloseFigure
();
e
.
Graphics
.
SetGDIHigh
();
}
if
(
_fillColor
!=
Color
.
Empty
&&
_fillColor
!=
Color
.
Transparent
&&
_fillColor
!=
this
.
BackColor
)
e
.
Graphics
.
SetGDIHigh
();
e
.
Graphics
.
FillPath
(
new
SolidBrush
(
this
.
_fillColor
),
graphicsPath
);
if
(
this
.
_isShowRect
)
{
Color
rectColor
=
this
.
_rectColor
;
Pen
pen
=
new
Pen
(
rectColor
,
(
float
)
this
.
_rectWidth
);
e
.
Graphics
.
DrawPath
(
pen
,
graphicsPath
);
e
.
Graphics
.
DrawPath
(
pen
,
graphicsPath
);
}
}
if
(
_fillColor
!=
Color
.
Empty
&&
_fillColor
!=
Color
.
Transparent
&&
_fillColor
!=
this
.
BackColor
)
e
.
Graphics
.
FillPath
(
new
SolidBrush
(
this
.
_fillColor
),
graphicsPath
);
}
}
base
.
OnPaint
(
e
);
base
.
OnPaint
(
e
);
}
}
...
@@ -197,7 +200,7 @@ namespace HZH_Controls.Controls
...
@@ -197,7 +200,7 @@ namespace HZH_Controls.Controls
base
.
WndProc
(
ref
m
);
base
.
WndProc
(
ref
m
);
}
}
}
}
public
virtual
void
ResetTheme
(
ThemeEntity
theme
)
public
virtual
void
ResetTheme
(
ThemeEntity
theme
)
{
{
}
}
...
...
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
a261a12
...
@@ -48,6 +48,12 @@
...
@@ -48,6 +48,12 @@
<Compile Include="Controls\BtnsGroup\UCBtnsGroup.Designer.cs">
<Compile Include="Controls\BtnsGroup\UCBtnsGroup.Designer.cs">
<DependentUpon>UCBtnsGroup.cs</DependentUpon>
<DependentUpon>UCBtnsGroup.cs</DependentUpon>
</Compile>
</Compile>
<Compile Include="Controls\Btn\UCDropDownBtn.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Btn\UCDropDownBtn.Designer.cs">
<DependentUpon>UCDropDownBtn.cs</DependentUpon>
</Compile>
<Compile Include="Controls\DataGridView\DataGridViewCellEntity.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEntity.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventArgs.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventArgs.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventHandler.cs" />
<Compile Include="Controls\DataGridView\DataGridViewCellEventHandler.cs" />
...
@@ -414,6 +420,9 @@
...
@@ -414,6 +420,9 @@
<EmbeddedResource Include="Controls\Btn\UCBtnImg.resx">
<EmbeddedResource Include="Controls\Btn\UCBtnImg.resx">
<DependentUpon>UCBtnImg.cs</DependentUpon>
<DependentUpon>UCBtnImg.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Btn\UCDropDownBtn.resx">
<DependentUpon>UCDropDownBtn.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Controls\Checkbox\UCCheckBox.resx">
<EmbeddedResource Include="Controls\Checkbox\UCCheckBox.resx">
<DependentUpon>UCCheckBox.cs</DependentUpon>
<DependentUpon>UCCheckBox.cs</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
HZH_Controls/Test/Form1.Designer.cs
查看文件 @
a261a12
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/Form1.cs
查看文件 @
a261a12
...
@@ -114,7 +114,7 @@ namespace Test
...
@@ -114,7 +114,7 @@ namespace Test
ucBtnsGroup2
.
DataSource
=
new
Dictionary
<
string
,
string
>()
{
{
"1"
,
"河南"
},
{
"2"
,
"北京"
},
{
"3"
,
"湖南"
},
{
"4"
,
"上海"
}
};
ucBtnsGroup2
.
DataSource
=
new
Dictionary
<
string
,
string
>()
{
{
"1"
,
"河南"
},
{
"2"
,
"北京"
},
{
"3"
,
"湖南"
},
{
"4"
,
"上海"
}
};
ucBtnsGroup2
.
SelectItem
=
new
List
<
string
>()
{
"2"
,
"3"
};
ucBtnsGroup2
.
SelectItem
=
new
List
<
string
>()
{
"2"
,
"3"
};
this
.
processExt1
.
Value
=
50
;
}
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
...
@@ -196,5 +196,10 @@ namespace Test
...
@@ -196,5 +196,10 @@ namespace Test
new
FrmTestListView
().
Show
();
new
FrmTestListView
().
Show
();
}
}
private
void
ucDropDownBtn1_BtnClick
(
object
sender
,
EventArgs
e
)
{
HZH_Controls
.
Forms
.
FrmTips
.
ShowTipsSuccess
(
this
,
sender
.
ToString
());
}
}
}
}
}
HZH_Controls/Test/Form1.resx
查看文件 @
a261a12
...
@@ -120,44 +120,15 @@
...
@@ -120,44 +120,15 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
<value>17, 17</value>
</metadata>
</metadata>
<data name="treeViewEx1.LstTips" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAPcBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XSxbU3lzdGVtLlN0cmluZywgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwg
UHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQwDAAAAmgFtc2NvcmxpYiwgVmVyc2lvbj00LjAu
MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXSwgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5BQEAAAA2U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuRGljdGlvbmFyeWAyW1tT
eXN0ZW0uU3RyaW5nAwAAAAdWZXJzaW9uCENvbXBhcmVyCEhhc2hTaXplAAQACENTeXN0ZW0uQ29sbGVj
dGlvbnMuR2VuZXJpYy5HZW5lcmljRXF1YWxpdHlDb21wYXJlcmAxW1tTeXN0ZW0uU3RyaW5nAwAAAAgC
AAAAAAAAAAkEAAAAAAAAAAUEAAAAQ1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkdlbmVyaWNFcXVh
bGl0eUNvbXBhcmVyYDFbW1N5c3RlbS5TdHJpbmcAAAAAAwAAAAs=
</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="treeViewEx1.NodeDownPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucDropDownBtn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAzSURBVDhPYxg+YObMmf9BGMqlHIwaSDkYhgbCNFCKocbRwEBCgGQNhMCogZSD4WIgAwMAGe+9
qQatewQAAAAASUVORK5CYII=
</value>
</data>
<data name="treeViewEx1.NodeUpPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAiSURBVDhPYxgFo2AUkAJmzpz5nxoYahwNDBwFo2DAAAMDAFv8ZGmGIVPvAAAAAElFTkSuQmCC
YQUAAAAJcEhZcwAADrwAAA68AZW8ckkAAAD0SURBVDhPjZLtDcIwDES9Ezt1py7AMCgrdIGKH3SC0OfE
</value>
JZ/FJxmR+E55livP1ycua4iPJboKLxnZti0HPeFwemPc9z3KcRx68AbX04uEHw4eXB4A8wqmOcfmsvCE
</data>
oLkoCOb/uAlT5zMxp+IOA6noQYY3x6TAnb/YYSIOXN7NaZhdkEuaoxBlmFUQcaG4g5DN14UQlzNcne+t
<data name="treeViewEx1.TipImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
uT6Ifmupq1tDK2YAqd5n+qirNbQCBdzyNea7xUQ0MZW4/O/W0Ipmu5bpGlrVc4b+a5kJk+G6ME2YbC2U
<value>
CxNhMlzKlNtzZZ/i2hpQbt8LI6+6MU3qLpSvC4l8ASkgxV0fp9H6AAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAADmSURBVDhPrZRNDoIwEIXH2+gNpEBI1OgCqufTJRdxyRE0Ue5gjBvcjI/amogDUuUlXyDz81KG
tiSJtZqBLevwBCoL3hHL4rktaxfrYIyGPeAvoCYY27Z3sY4TFFwbDV2gNk5s+1NmJVl4EYq7MT12ZUw0
QrD4KOpPUXsQb6KFkPQDHsTraCcmfYAH4TvPYtIHeGDQZo/IBf2paiOfX96GMTo2gr9QwkjlQsITlROn
wUpOepCp5XAb0uzuf45IOp0YE6dBDq2TvUb6fCZqWq4RJzMzDM8enRLLv+N5AwcTq3NuJi8RPQApRqhG
KfUq3QAAAABJRU5ErkJggg==
</value>
</value>
</data>
</data>
<data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
...
@@ -197,6 +168,45 @@
...
@@ -197,6 +168,45 @@
QmCC
QmCC
</value>
</value>
</data>
</data>
<data name="treeViewEx1.LstTips" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAPcBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XSxbU3lzdGVtLlN0cmluZywgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwg
UHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQwDAAAAmgFtc2NvcmxpYiwgVmVyc2lvbj00LjAu
MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXSwgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5BQEAAAA2U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuRGljdGlvbmFyeWAyW1tT
eXN0ZW0uU3RyaW5nAwAAAAdWZXJzaW9uCENvbXBhcmVyCEhhc2hTaXplAAQACENTeXN0ZW0uQ29sbGVj
dGlvbnMuR2VuZXJpYy5HZW5lcmljRXF1YWxpdHlDb21wYXJlcmAxW1tTeXN0ZW0uU3RyaW5nAwAAAAgC
AAAAAAAAAAkEAAAAAAAAAAUEAAAAQ1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkdlbmVyaWNFcXVh
bGl0eUNvbXBhcmVyYDFbW1N5c3RlbS5TdHJpbmcAAAAAAwAAAAs=
</value>
</data>
<data name="treeViewEx1.NodeDownPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAzSURBVDhPYxg+YObMmf9BGMqlHIwaSDkYhgbCNFCKocbRwEBCgGQNhMCogZSD4WIgAwMAGe+9
qQatewQAAAAASUVORK5CYII=
</value>
</data>
<data name="treeViewEx1.NodeUpPic" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAiSURBVDhPYxgFo2AUkAJmzpz5nxoYahwNDBwFo2DAAAMDAFv8ZGmGIVPvAAAAAElFTkSuQmCC
</value>
</data>
<data name="treeViewEx1.TipImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAADmSURBVDhPrZRNDoIwEIXH2+gNpEBI1OgCqufTJRdxyRE0Ue5gjBvcjI/amogDUuUlXyDz81KG
tiSJtZqBLevwBCoL3hHL4rktaxfrYIyGPeAvoCYY27Z3sY4TFFwbDV2gNk5s+1NmJVl4EYq7MT12ZUw0
QrD4KOpPUXsQb6KFkPQDHsTraCcmfYAH4TvPYtIHeGDQZo/IBf2paiOfX96GMTo2gr9QwkjlQsITlROn
wUpOepCp5XAb0uzuf45IOp0YE6dBDq2TvUb6fCZqWq4RJzMzDM8enRLLv+N5AwcTq3NuJi8RPQApRqhG
KfUq3QAAAABJRU5ErkJggg==
</value>
</data>
<data name="ucPagerControl21.DataSource" mimetype="application/x-microsoft.net.object.binary.base64">
<data name="ucPagerControl21.DataSource" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
a261a12
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
trackBar3
=
new
System
.
Windows
.
Forms
.
TrackBar
();
this
.
trackBar3
=
new
System
.
Windows
.
Forms
.
TrackBar
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
ucDropDownBtn1
=
new
HZH_Controls
.
Controls
.
Btn
.
UCDropDownBtn
();
this
.
ucProcessWave2
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave2
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave1
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucProcessWave1
=
new
HZH_Controls
.
Controls
.
UCProcessWave
();
this
.
ucWaveWithSource1
=
new
HZH_Controls
.
Controls
.
UCWaveWithSource
();
this
.
ucWaveWithSource1
=
new
HZH_Controls
.
Controls
.
UCWaveWithSource
();
...
@@ -135,6 +136,40 @@
...
@@ -135,6 +136,40 @@
this
.
label3
.
TabIndex
=
9
;
this
.
label3
.
TabIndex
=
9
;
this
.
label3
.
Text
=
"波宽"
;
this
.
label3
.
Text
=
"波宽"
;
//
//
// ucDropDownBtn1
//
this
.
ucDropDownBtn1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDropDownBtn1
.
BtnBackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDropDownBtn1
.
BtnFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucDropDownBtn1
.
BtnForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDropDownBtn1
.
Btns
=
new
string
[]
{
"按钮1"
,
"按钮2"
,
"按钮3"
};
this
.
ucDropDownBtn1
.
BtnText
=
"测试下拉按钮"
;
this
.
ucDropDownBtn1
.
ConerRadius
=
5
;
this
.
ucDropDownBtn1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Hand
;
this
.
ucDropDownBtn1
.
DropPanelHeight
=
-
1
;
this
.
ucDropDownBtn1
.
EnabledTheme
=
false
;
this
.
ucDropDownBtn1
.
FillColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
ucDropDownBtn1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Pixel
);
this
.
ucDropDownBtn1
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDropDownBtn1
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"ucDropDownBtn1.Image"
)));
this
.
ucDropDownBtn1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
ucDropDownBtn1
.
IsRadius
=
true
;
this
.
ucDropDownBtn1
.
IsShowRect
=
true
;
this
.
ucDropDownBtn1
.
IsShowTips
=
false
;
this
.
ucDropDownBtn1
.
Location
=
new
System
.
Drawing
.
Point
(
995
,
242
);
this
.
ucDropDownBtn1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
ucDropDownBtn1
.
Name
=
"ucDropDownBtn1"
;
this
.
ucDropDownBtn1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
ucDropDownBtn1
.
RectWidth
=
1
;
this
.
ucDropDownBtn1
.
Size
=
new
System
.
Drawing
.
Size
(
143
,
39
);
this
.
ucDropDownBtn1
.
TabIndex
=
12
;
this
.
ucDropDownBtn1
.
TabStop
=
false
;
this
.
ucDropDownBtn1
.
TipsText
=
""
;
this
.
ucDropDownBtn1
.
BtnClick
+=
new
System
.
EventHandler
(
this
.
ucDropDownBtn1_BtnClick
);
//
// ucProcessWave2
// ucProcessWave2
//
//
this
.
ucProcessWave2
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
197
)))),
((
int
)(((
byte
)(
229
)))),
((
int
)(((
byte
)(
250
)))));
this
.
ucProcessWave2
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
197
)))),
((
int
)(((
byte
)(
229
)))),
((
int
)(((
byte
)(
250
)))));
...
@@ -499,6 +534,7 @@
...
@@ -499,6 +534,7 @@
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1438
,
594
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1438
,
594
);
this
.
Controls
.
Add
(
this
.
ucDropDownBtn1
);
this
.
Controls
.
Add
(
this
.
ucProcessWave2
);
this
.
Controls
.
Add
(
this
.
ucProcessWave2
);
this
.
Controls
.
Add
(
this
.
ucProcessWave1
);
this
.
Controls
.
Add
(
this
.
ucProcessWave1
);
this
.
Controls
.
Add
(
this
.
ucWaveWithSource1
);
this
.
Controls
.
Add
(
this
.
ucWaveWithSource1
);
...
@@ -569,6 +605,7 @@
...
@@ -569,6 +605,7 @@
private
HZH_Controls
.
Controls
.
UCWaveWithSource
ucWaveWithSource1
;
private
HZH_Controls
.
Controls
.
UCWaveWithSource
ucWaveWithSource1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave1
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave2
;
private
HZH_Controls
.
Controls
.
UCProcessWave
ucProcessWave2
;
private
HZH_Controls
.
Controls
.
Btn
.
UCDropDownBtn
ucDropDownBtn1
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
HZH_Controls/Test/Form2.cs
查看文件 @
a261a12
...
@@ -64,5 +64,10 @@ namespace Test
...
@@ -64,5 +64,10 @@ namespace Test
{
{
this
.
ucWave1
.
WaveWidth
=
trackBar3
.
Value
;
this
.
ucWave1
.
WaveWidth
=
trackBar3
.
Value
;
}
}
private
void
ucDropDownBtn1_BtnClick
(
object
sender
,
EventArgs
e
)
{
HZH_Controls
.
Forms
.
FrmTips
.
ShowTipsSuccess
(
this
,
sender
.
ToString
());
}
}
}
}
}
HZH_Controls/Test/Form2.resx
查看文件 @
a261a12
...
@@ -121,6 +121,16 @@
...
@@ -121,6 +121,16 @@
<value>17, 17</value>
<value>17, 17</value>
</metadata>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="ucDropDownBtn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADr8AAA6/ATgFUyQAAAD0SURBVDhPjZLtDcIwDES9Ezt1py7AMCgrdIGKH3SC0OfE
JZ/FJxmR+E55livP1ycua4iPJboKLxnZti0HPeFwemPc9z3KcRx68AbX04uEHw4eXB4A8wqmOcfmsvCE
oLkoCOb/uAlT5zMxp+IOA6noQYY3x6TAnb/YYSIOXN7NaZhdkEuaoxBlmFUQcaG4g5DN14UQlzNcne+t
uT6Ifmupq1tDK2YAqd5n+qirNbQCBdzyNea7xUQ0MZW4/O/W0Ipmu5bpGlrVc4b+a5kJk+G6ME2YbC2U
CxNhMlzKlNtzZZ/i2hpQbt8LI6+6MU3qLpSvC4l8ASkgxV0fp9H6AAAAAElFTkSuQmCC
</value>
</data>
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucStep1.ImgCompleted" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论