Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b2b6637d
由
HZH
编写于
2019-09-26 14:32:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加金字塔图
1 个父辈
decb4fd2
全部展开
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
289 行增加
和
3 行删除
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartAlignment.cs
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartDirection.cs
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartItem.cs
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/UCFunnelChart.cs
HZH_Controls/HZH_Controls/HZH_Controls.csproj
HZH_Controls/Test/FrmMain.cs
HZH_Controls/Test/Test.csproj
HZH_Controls/Test/UC/UCTestFunnelChart.Designer.cs
HZH_Controls/Test/UC/UCTestFunnelChart.cs
HZH_Controls/Test/UC/UCTestFunnelChart.resx
HZH_Controls/Test/UC/UCTestGridTable.Designer.cs
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartAlignment.cs
0 → 100644
查看文件 @
b2b6637
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-26
//
// ***********************************************************************
// <copyright file="FunelChartAlignment.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.Linq
;
using
System.Text
;
namespace
HZH_Controls.Controls
{
/// <summary>
/// Enum FunelChartAlignment
/// </summary>
public
enum
FunelChartAlignment
{
/// <summary>
/// The left
/// </summary>
Left
,
/// <summary>
/// The center
/// </summary>
Center
,
/// <summary>
/// The right
/// </summary>
Right
}
}
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartDirection.cs
0 → 100644
查看文件 @
b2b6637
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-26
//
// ***********************************************************************
// <copyright file="FunelChartDirection.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.Linq
;
using
System.Text
;
namespace
HZH_Controls.Controls
{
/// <summary>
/// Enum FunelChartDirection
/// </summary>
public
enum
FunelChartDirection
{
/// <summary>
/// Up
/// </summary>
UP
,
/// <summary>
/// Down
/// </summary>
Down
}
}
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/FunelChartItem.cs
0 → 100644
查看文件 @
b2b6637
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-26
//
// ***********************************************************************
// <copyright file="FunelChartItem.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.Linq
;
using
System.Text
;
namespace
HZH_Controls.Controls
{
/// <summary>
/// Class FunelChartItem.
/// </summary>
public
class
FunelChartItem
{
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>The text.</value>
public
string
Text
{
get
;
set
;
}
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
public
float
Value
{
get
;
set
;
}
/// <summary>
/// Gets or sets the color of the value.
/// </summary>
/// <value>The color of the value.</value>
public
System
.
Drawing
.
Color
?
ValueColor
{
get
;
set
;
}
/// <summary>
/// Gets or sets the color of the text fore.
/// </summary>
/// <value>The color of the text fore.</value>
public
System
.
Drawing
.
Color
?
TextForeColor
{
get
;
set
;
}
}
}
HZH_Controls/HZH_Controls/Controls/Charts/FunnelChart/UCFunnelChart.cs
0 → 100644
查看文件 @
b2b6637
此文件的差异被折叠,
点击展开。
HZH_Controls/HZH_Controls/HZH_Controls.csproj
查看文件 @
b2b6637
...
...
@@ -53,6 +53,12 @@
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Charts\CurveChart\CurveItem.cs" />
<Compile Include="Controls\Charts\FunnelChart\FunelChartAlignment.cs" />
<Compile Include="Controls\Charts\FunnelChart\FunelChartDirection.cs" />
<Compile Include="Controls\Charts\FunnelChart\FunelChartItem.cs" />
<Compile Include="Controls\Charts\FunnelChart\UCFunnelChart.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Charts\MarkText.cs" />
<Compile Include="Controls\Charts\MarkTextPositionStyle.cs" />
<Compile Include="Controls\Charts\PieChart\UCPieChart.cs">
...
...
HZH_Controls/Test/FrmMain.cs
查看文件 @
b2b6637
...
...
@@ -68,6 +68,7 @@ namespace Test
tnCharts
.
Nodes
.
Add
(
"饼状图"
);
tnCharts
.
Nodes
.
Add
(
"曲线图"
);
tnCharts
.
Nodes
.
Add
(
"雷达图"
);
tnCharts
.
Nodes
.
Add
(
"金字塔图"
);
this
.
tvMenu
.
Nodes
.
Add
(
tnCharts
);
TreeNode
tnFactory
=
new
TreeNode
(
" 工业控件"
);
...
...
@@ -206,10 +207,10 @@ namespace Test
AddControl
(
new
UC
.
UCTestPage
());
break
;
case
"表格"
:
AddControl
(
new
UC
.
UCTestGridTable
()
{
Dock
=
DockStyle
.
Fill
}
);
AddControl
(
new
UC
.
UCTestGridTable
());
break
;
case
"树表格"
:
AddControl
(
new
UC
.
UCTestTreeGridTable
()
{
Dock
=
DockStyle
.
Fill
}
);
AddControl
(
new
UC
.
UCTestTreeGridTable
());
break
;
case
"进度条"
:
AddControl
(
new
UC
.
UCTestProcess
()
{
Dock
=
DockStyle
.
Fill
});
...
...
@@ -263,6 +264,9 @@ namespace Test
case
"雷达图"
:
AddControl
(
new
UC
.
UCTestRadarChart
()
{
Dock
=
DockStyle
.
Fill
});
break
;
case
"金字塔图"
:
AddControl
(
new
UC
.
UCTestFunnelChart
());
break
;
#
endregion
#
region
工业
English
:
Industry
...
...
HZH_Controls/Test/Test.csproj
查看文件 @
b2b6637
...
...
@@ -122,6 +122,12 @@
<Compile Include="UC\UCTestCurveChart.Designer.cs">
<DependentUpon>UCTestCurveChart.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestFunnelChart.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UC\UCTestFunnelChart.Designer.cs">
<DependentUpon>UCTestFunnelChart.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestIcon.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -353,6 +359,9 @@
<EmbeddedResource Include="UC\UCTestForms.resx">
<DependentUpon>UCTestForms.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestFunnelChart.resx">
<DependentUpon>UCTestFunnelChart.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestGridTable.resx">
<DependentUpon>UCTestGridTable.cs</DependentUpon>
</EmbeddedResource>
...
...
HZH_Controls/Test/UC/UCTestFunnelChart.Designer.cs
0 → 100644
查看文件 @
b2b6637
此文件的差异被折叠,
点击展开。
HZH_Controls/Test/UC/UCTestFunnelChart.cs
0 → 100644
查看文件 @
b2b6637
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
Test.UC
{
[
ToolboxItem
(
false
)]
public
partial
class
UCTestFunnelChart
:
UserControl
{
public
UCTestFunnelChart
()
{
InitializeComponent
();
}
}
}
HZH_Controls/Test/UC/UCTestFunnelChart.resx
0 → 100644
查看文件 @
b2b6637
<?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
HZH_Controls/Test/UC/UCTestGridTable.Designer.cs
查看文件 @
b2b6637
...
...
@@ -40,7 +40,7 @@
this
.
ucDataGridView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucDataGridView1
.
HeadFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucDataGridView1
.
HeadHeight
=
40
;
this
.
ucDataGridView1
.
HeadPadingLeft
=
24
;
this
.
ucDataGridView1
.
HeadPadingLeft
=
0
;
this
.
ucDataGridView1
.
HeadTextColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucDataGridView1
.
IsCloseAutoHeight
=
false
;
this
.
ucDataGridView1
.
IsShowCheckBox
=
false
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论