* 增加文件说明

This commit is contained in:
Sunny 2020-09-29 21:19:18 +08:00
parent 58089ed736
commit df2bcd9d12
6 changed files with 80 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,25 @@
using System;
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2020 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@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.Drawing;
using System.Drawing.Drawing2D;
@ -276,7 +297,7 @@ namespace Sunny.UI
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);
if (s.Data[j] < 0)
g.DrawString(value, SubFont, bars[j].Color,

View File

@ -1,4 +1,26 @@
using System;
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2020 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@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;
namespace Sunny.UI
@ -6,8 +28,7 @@ namespace Sunny.UI
public class UIFlowLayoutPanel : UIPanel
{
private UIVerScrollBarEx Bar;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel;
private Timer timer = new Timer();
private FlowLayoutPanel flowLayoutPanel;
public UIFlowLayoutPanel()
{
@ -30,6 +51,13 @@ namespace Sunny.UI
Panel.BackColor = uiColor.PlainColor;
}
protected override void AfterSetFillColor(Color color)
{
base.AfterSetFillColor(color);
Panel.BackColor = color;
Bar.FillColor = color;
}
public void AddControl(Control ctrl)
{
Panel.Controls.Add(ctrl);

View File

@ -220,11 +220,12 @@ namespace Sunny.UI
if (rectColor != value)
{
rectColor = value;
AfterSetRectColor(value);
RectColorChanged?.Invoke(this, null);
_style = UIStyle.Custom;
Invalidate();
}
AfterSetRectColor(value);
}
}
@ -244,11 +245,12 @@ namespace Sunny.UI
if (fillColor != value)
{
fillColor = value;
AfterSetFillColor(value);
FillColorChanged?.Invoke(this, null);
_style = UIStyle.Custom;
Invalidate();
}
AfterSetFillColor(value);
}
}

View File

@ -1,4 +1,25 @@
using System;
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2020 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@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
{