* 增加文件说明
This commit is contained in:
parent
58089ed736
commit
df2bcd9d12
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
@ -1,4 +1,25 @@
|
|||||||
using System;
|
/******************************************************************************
|
||||||
|
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||||
|
* CopyRight (C) 2012-2020 ShenYongHua(沈永华).
|
||||||
|
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com
|
||||||
|
*
|
||||||
|
* Blog: https://www.cnblogs.com/yhuse
|
||||||
|
* Gitee: https://gitee.com/yhuse/SunnyUI
|
||||||
|
* GitHub: https://github.com/yhuse/SunnyUI
|
||||||
|
*
|
||||||
|
* SunnyUI.dll can be used for free under the GPL-3.0 license.
|
||||||
|
* If you use this code, please keep this note.
|
||||||
|
* 如果您使用此代码,请保留此说明。
|
||||||
|
******************************************************************************
|
||||||
|
* 文件名称: UIBarChartEx.cs
|
||||||
|
* 文件说明: 柱状图
|
||||||
|
* 当前版本: V2.2
|
||||||
|
* 创建日期: 2020-09-26
|
||||||
|
*
|
||||||
|
* 2020-09-26: V2.2.8 增加文件说明
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
@ -276,7 +297,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
if (s.ShowValue)
|
if (s.ShowValue)
|
||||||
{
|
{
|
||||||
string value = s.Data[j].ToString("F" + BarOption.XAxis.AxisLabel.DecimalCount);
|
string value = s.Data[j].ToString("F" + BarOption.YAxis.AxisLabel.DecimalCount);
|
||||||
SizeF sf = g.MeasureString(value, SubFont);
|
SizeF sf = g.MeasureString(value, SubFont);
|
||||||
if (s.Data[j] < 0)
|
if (s.Data[j] < 0)
|
||||||
g.DrawString(value, SubFont, bars[j].Color,
|
g.DrawString(value, SubFont, bars[j].Color,
|
||||||
|
@ -1,4 +1,26 @@
|
|||||||
using System;
|
/******************************************************************************
|
||||||
|
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||||
|
* CopyRight (C) 2012-2020 ShenYongHua(沈永华).
|
||||||
|
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com
|
||||||
|
*
|
||||||
|
* Blog: https://www.cnblogs.com/yhuse
|
||||||
|
* Gitee: https://gitee.com/yhuse/SunnyUI
|
||||||
|
* GitHub: https://github.com/yhuse/SunnyUI
|
||||||
|
*
|
||||||
|
* SunnyUI.dll can be used for free under the GPL-3.0 license.
|
||||||
|
* If you use this code, please keep this note.
|
||||||
|
* 如果您使用此代码,请保留此说明。
|
||||||
|
******************************************************************************
|
||||||
|
* 文件名称: UIFlowLayoutPanel.cs
|
||||||
|
* 文件说明: FlowLayoutPanel
|
||||||
|
* 当前版本: V2.2
|
||||||
|
* 创建日期: 2020-09-29
|
||||||
|
*
|
||||||
|
* 2020-09-29: V2.2.8 增加文件说明
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Sunny.UI
|
namespace Sunny.UI
|
||||||
@ -6,8 +28,7 @@ namespace Sunny.UI
|
|||||||
public class UIFlowLayoutPanel : UIPanel
|
public class UIFlowLayoutPanel : UIPanel
|
||||||
{
|
{
|
||||||
private UIVerScrollBarEx Bar;
|
private UIVerScrollBarEx Bar;
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel;
|
private FlowLayoutPanel flowLayoutPanel;
|
||||||
private Timer timer = new Timer();
|
|
||||||
|
|
||||||
public UIFlowLayoutPanel()
|
public UIFlowLayoutPanel()
|
||||||
{
|
{
|
||||||
@ -30,6 +51,13 @@ namespace Sunny.UI
|
|||||||
Panel.BackColor = uiColor.PlainColor;
|
Panel.BackColor = uiColor.PlainColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void AfterSetFillColor(Color color)
|
||||||
|
{
|
||||||
|
base.AfterSetFillColor(color);
|
||||||
|
Panel.BackColor = color;
|
||||||
|
Bar.FillColor = color;
|
||||||
|
}
|
||||||
|
|
||||||
public void AddControl(Control ctrl)
|
public void AddControl(Control ctrl)
|
||||||
{
|
{
|
||||||
Panel.Controls.Add(ctrl);
|
Panel.Controls.Add(ctrl);
|
||||||
|
@ -220,11 +220,12 @@ namespace Sunny.UI
|
|||||||
if (rectColor != value)
|
if (rectColor != value)
|
||||||
{
|
{
|
||||||
rectColor = value;
|
rectColor = value;
|
||||||
AfterSetRectColor(value);
|
|
||||||
RectColorChanged?.Invoke(this, null);
|
RectColorChanged?.Invoke(this, null);
|
||||||
_style = UIStyle.Custom;
|
_style = UIStyle.Custom;
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AfterSetRectColor(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,11 +245,12 @@ namespace Sunny.UI
|
|||||||
if (fillColor != value)
|
if (fillColor != value)
|
||||||
{
|
{
|
||||||
fillColor = value;
|
fillColor = value;
|
||||||
AfterSetFillColor(value);
|
|
||||||
FillColorChanged?.Invoke(this, null);
|
FillColorChanged?.Invoke(this, null);
|
||||||
_style = UIStyle.Custom;
|
_style = UIStyle.Custom;
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AfterSetFillColor(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,25 @@
|
|||||||
using System;
|
/******************************************************************************
|
||||||
|
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||||
|
* CopyRight (C) 2012-2020 ShenYongHua(沈永华).
|
||||||
|
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com
|
||||||
|
*
|
||||||
|
* Blog: https://www.cnblogs.com/yhuse
|
||||||
|
* Gitee: https://gitee.com/yhuse/SunnyUI
|
||||||
|
* GitHub: https://github.com/yhuse/SunnyUI
|
||||||
|
*
|
||||||
|
* SunnyUI.dll can be used for free under the GPL-3.0 license.
|
||||||
|
* If you use this code, please keep this note.
|
||||||
|
* 如果您使用此代码,请保留此说明。
|
||||||
|
******************************************************************************
|
||||||
|
* 文件名称: UDateTimeInt64.cs
|
||||||
|
* 文件说明: 日期长整型
|
||||||
|
* 当前版本: V2.2
|
||||||
|
* 创建日期: 2020-09-23
|
||||||
|
*
|
||||||
|
* 2020-09-23: V2.2.8 增加文件说明
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Sunny.UI
|
namespace Sunny.UI
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user