diff --git a/SunnyUI/Charts/UIBarChart.cs b/SunnyUI/Charts/UIBarChart.cs
index 9b144177..152ca36f 100644
--- a/SunnyUI/Charts/UIBarChart.cs
+++ b/SunnyUI/Charts/UIBarChart.cs
@@ -35,17 +35,27 @@ using System.Windows.Forms;
namespace Sunny.UI
{
+ ///
+ /// 柱状图
+ ///
[ToolboxItem(true)]
public class UIBarChart : UIChart
{
- protected bool NeedDraw;
+ private bool NeedDraw;
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
CalcData();
}
+ ///
+ /// 刷新显示
+ ///
public override void Refresh()
{
base.Refresh();
@@ -57,6 +67,12 @@ namespace Sunny.UI
CalcData();
}
+ ///
+ /// 更新数据
+ ///
+ /// 序列名称
+ /// 序号
+ /// 值
public void Update(string seriesName, int index, double value)
{
var series = Option[seriesName];
@@ -68,6 +84,9 @@ namespace Sunny.UI
UILinearScale YScale = new UILinearScale();
+ ///
+ /// 计算数据用于显示
+ ///
protected override void CalcData()
{
Bars.Clear();
@@ -209,20 +228,20 @@ namespace Sunny.UI
}
}
- protected Point DrawOrigin => new Point(Option.Grid.Left, Height - Option.Grid.Bottom);
- protected Size DrawSize => new Size(Width - Option.Grid.Left - Option.Grid.Right, Height - Option.Grid.Top - Option.Grid.Bottom);
- protected Rectangle DrawRect => new Rectangle(Option.Grid.Left, Option.Grid.Top, DrawSize.Width, DrawSize.Height);
+ private Point DrawOrigin => new Point(Option.Grid.Left, Height - Option.Grid.Bottom);
+ private Size DrawSize => new Size(Width - Option.Grid.Left - Option.Grid.Right, Height - Option.Grid.Top - Option.Grid.Bottom);
+ private Rectangle DrawRect => new Rectangle(Option.Grid.Left, Option.Grid.Top, DrawSize.Width, DrawSize.Height);
- protected int selectIndex = -1;
- protected float DrawBarWidth;
- protected double YAxisStart;
- protected double YAxisEnd;
- protected double YAxisInterval;
- protected int YAxisDecimalCount;
- protected readonly ConcurrentDictionary> Bars = new ConcurrentDictionary>();
+ private int selectIndex = -1;
+ private float DrawBarWidth;
+ private double YAxisStart;
+ private double YAxisEnd;
+ private double YAxisInterval;
+ private int YAxisDecimalCount;
+ private readonly ConcurrentDictionary> Bars = new ConcurrentDictionary>();
[DefaultValue(-1), Browsable(false)]
- protected int SelectIndex
+ private int SelectIndex
{
get => selectIndex;
set
@@ -237,6 +256,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -281,6 +304,9 @@ namespace Sunny.UI
}
}
+ ///
+ /// 图表参数
+ ///
[Browsable(false), DefaultValue(null)]
public UIBarOption Option
{
@@ -291,6 +317,9 @@ namespace Sunny.UI
}
}
+ ///
+ /// 默认创建空的图表参数
+ ///
protected override void CreateEmptyOption()
{
if (emptyOption != null) return;
@@ -338,6 +367,10 @@ namespace Sunny.UI
emptyOption = option;
}
+ ///
+ /// 绘制图表参数
+ ///
+ /// 绘制图面
protected override void DrawOption(Graphics g)
{
if (Option == null) return;
@@ -354,6 +387,10 @@ namespace Sunny.UI
DrawAxisScales(g);
}
+ ///
+ /// 绘制工具提示
+ ///
+ /// 绘制图面
protected virtual void DrawToolTip(Graphics g)
{
if (selectIndex < 0) return;
@@ -370,6 +407,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 绘制坐标轴
+ ///
+ /// 绘制图面
protected virtual void DrawAxis(Graphics g)
{
g.FillRectangle(FillColor, Option.Grid.Left, 1, Width - Option.Grid.Left - Option.Grid.Right, Option.Grid.Top);
@@ -468,6 +509,11 @@ namespace Sunny.UI
}
}
+ ///
+ /// 绘制序列
+ ///
+ /// 绘制图面
+ /// 序列
protected virtual void DrawSeries(Graphics g, List series)
{
if (series == null || series.Count == 0) return;
@@ -508,7 +554,8 @@ namespace Sunny.UI
}
}
- protected class BarInfo
+
+ private class BarInfo
{
public RectangleF Rect { get; set; }
diff --git a/SunnyUI/Charts/UIBarChartOption.cs b/SunnyUI/Charts/UIBarChartOption.cs
index 1c00800b..9a581d8c 100644
--- a/SunnyUI/Charts/UIBarChartOption.cs
+++ b/SunnyUI/Charts/UIBarChartOption.cs
@@ -25,22 +25,49 @@ using System.Drawing;
namespace Sunny.UI
{
+ ///
+ /// 柱状图配置类
+ ///
public sealed class UIBarOption : UIOption, IDisposable
{
+ ///
+ /// X轴
+ ///
public UIAxis XAxis { get; set; } = new UIAxis(UIAxisType.Category);
+ ///
+ /// 工具提示
+ ///
public UIBarToolTip ToolTip { get; set; } = new UIBarToolTip();
+ ///
+ /// Y轴
+ ///
public UIAxis YAxis { get; set; } = new UIAxis(UIAxisType.Value);
+ ///
+ /// 序列
+ ///
public List Series = new List();
+ ///
+ /// 绘图表格
+ ///
public UIChartGrid Grid = new UIChartGrid();
+ ///
+ /// X轴自定义刻度线
+ ///
public readonly List XAxisScaleLines = new List();
+ ///
+ /// Y轴自定义刻度线
+ ///
public readonly List YAxisScaleLines = new List();
+ ///
+ /// 显示值
+ ///
public bool ShowValue { get; set; }
///
@@ -62,6 +89,9 @@ namespace Sunny.UI
Series.Add(series);
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
foreach (var series in Series)
@@ -428,6 +458,9 @@ namespace Sunny.UI
AddData(value, color);
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Data.Clear();
diff --git a/SunnyUI/Charts/UIDoughnutChart.cs b/SunnyUI/Charts/UIDoughnutChart.cs
index 01be8b6d..4df5d4be 100644
--- a/SunnyUI/Charts/UIDoughnutChart.cs
+++ b/SunnyUI/Charts/UIDoughnutChart.cs
@@ -32,6 +32,9 @@ namespace Sunny.UI
[ToolboxItem(true), Description("甜甜圈图")]
public sealed class UIDoughnutChart : UIChart
{
+ ///
+ /// 默认创建空的图表参数
+ ///
protected override void CreateEmptyOption()
{
if (emptyOption != null) return;
@@ -65,6 +68,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -82,6 +89,10 @@ namespace Sunny.UI
CalcData();
}
+ ///
+ /// 绘制图表参数
+ ///
+ /// 绘制图面
protected override void DrawOption(Graphics g)
{
if (Option == null) return;
@@ -90,6 +101,9 @@ namespace Sunny.UI
DrawLegend(g, Option.Legend);
}
+ ///
+ /// 计算数据用于显示
+ ///
protected override void CalcData()
{
Angles.Clear();
@@ -175,6 +189,9 @@ namespace Sunny.UI
private readonly ConcurrentDictionary> Angles = new ConcurrentDictionary>();
+ ///
+ /// 图表参数
+ ///
[Browsable(false), DefaultValue(null)]
public UIDoughnutOption Option
{
@@ -191,6 +208,10 @@ namespace Sunny.UI
// }
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
diff --git a/SunnyUI/Charts/UILineChart.cs b/SunnyUI/Charts/UILineChart.cs
index a86b2666..5d8ab021 100644
--- a/SunnyUI/Charts/UILineChart.cs
+++ b/SunnyUI/Charts/UILineChart.cs
@@ -50,6 +50,10 @@ namespace Sunny.UI
{
protected bool NeedDraw;
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -65,6 +69,9 @@ namespace Sunny.UI
[Browsable(false)]
public Rectangle DrawRect => new Rectangle(Option.Grid.Left, Option.Grid.Top, DrawSize.Width, DrawSize.Height);
+ ///
+ /// 计算数据用于显示
+ ///
protected override void CalcData()
{
NeedDraw = false;
@@ -173,6 +180,9 @@ namespace Sunny.UI
}
}
+ ///
+ /// 图表参数
+ ///
[Browsable(false), DefaultValue(null)]
public UILineOption Option
{
@@ -183,6 +193,9 @@ namespace Sunny.UI
}
}
+ ///
+ /// 默认创建空的图表参数
+ ///
protected override void CreateEmptyOption()
{
if (emptyOption != null) return;
@@ -210,6 +223,10 @@ namespace Sunny.UI
emptyOption = option;
}
+ ///
+ /// 绘制图表参数
+ ///
+ /// 绘制图面
protected override void DrawOption(Graphics g)
{
if (Option == null) return;
@@ -766,6 +783,10 @@ namespace Sunny.UI
private readonly List selectPoints = new List();
private readonly List selectPointsTemp = new List();
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -892,6 +913,10 @@ namespace Sunny.UI
private Point StartPoint, StopPoint;
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -909,6 +934,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -1059,6 +1088,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
diff --git a/SunnyUI/Charts/UILineChartOption.cs b/SunnyUI/Charts/UILineChartOption.cs
index a51bdd49..bba47a7d 100644
--- a/SunnyUI/Charts/UILineChartOption.cs
+++ b/SunnyUI/Charts/UILineChartOption.cs
@@ -41,6 +41,9 @@ namespace Sunny.UI
public UILineToolTip ToolTip { get; set; } = new UILineToolTip();
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Clear();
diff --git a/SunnyUI/Charts/UIPieChart.cs b/SunnyUI/Charts/UIPieChart.cs
index 7f76fb30..2cf6fea8 100644
--- a/SunnyUI/Charts/UIPieChart.cs
+++ b/SunnyUI/Charts/UIPieChart.cs
@@ -32,6 +32,9 @@ namespace Sunny.UI
[ToolboxItem(true)]
public sealed class UIPieChart : UIChart
{
+ ///
+ /// 默认创建空的图表参数
+ ///
protected override void CreateEmptyOption()
{
if (emptyOption != null) return;
@@ -64,6 +67,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -81,6 +88,10 @@ namespace Sunny.UI
CalcData();
}
+ ///
+ /// 绘制图表参数
+ ///
+ /// 绘制图面
protected override void DrawOption(Graphics g)
{
if (Option == null) return;
@@ -91,6 +102,9 @@ namespace Sunny.UI
private bool AllIsZero;
+ ///
+ /// 计算数据用于显示
+ ///
protected override void CalcData()
{
Angles.Clear();
@@ -200,6 +214,9 @@ namespace Sunny.UI
private readonly ConcurrentDictionary> Angles = new ConcurrentDictionary>();
+ ///
+ /// 图表参数
+ ///
[Browsable(false), DefaultValue(null)]
public UIPieOption Option
{
@@ -215,6 +232,10 @@ namespace Sunny.UI
// }
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
diff --git a/SunnyUI/Charts/UIPieChartOption.cs b/SunnyUI/Charts/UIPieChartOption.cs
index e2959575..1d7eeea5 100644
--- a/SunnyUI/Charts/UIPieChartOption.cs
+++ b/SunnyUI/Charts/UIPieChartOption.cs
@@ -37,6 +37,9 @@ namespace Sunny.UI
Series.Add(series);
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
foreach (var series in Series)
@@ -75,6 +78,9 @@ namespace Sunny.UI
Series.Add(series);
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
foreach (var series in Series)
@@ -147,6 +153,9 @@ namespace Sunny.UI
Data.Add(new UIPieSeriesData(name, value, color));
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Data.Clear();
@@ -199,6 +208,9 @@ namespace Sunny.UI
Data.Add(new UIPieSeriesData(name, value, color));
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Data.Clear();
diff --git a/SunnyUI/Common/UFastBitmap.cs b/SunnyUI/Common/UFastBitmap.cs
index ec5754d0..9693d294 100644
--- a/SunnyUI/Common/UFastBitmap.cs
+++ b/SunnyUI/Common/UFastBitmap.cs
@@ -187,8 +187,7 @@ namespace Sunny.UI
}
///
- /// Disposes of this fast bitmap object and releases any pending resources.
- /// The underlying bitmap is not disposes, and is unlocked, if currently locked
+ /// 析构函数
///
public void Dispose()
{
@@ -866,7 +865,7 @@ namespace Sunny.UI
}
///
- /// Disposes of this FastBitmapLocker, essentially unlocking the underlying fast bitmap
+ /// 析构函数
///
public void Dispose()
{
diff --git a/SunnyUI/Common/UGif.cs b/SunnyUI/Common/UGif.cs
index ce7316ca..42dd0a3a 100644
--- a/SunnyUI/Common/UGif.cs
+++ b/SunnyUI/Common/UGif.cs
@@ -65,6 +65,9 @@ namespace Sunny.UI
}
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Active = false;
diff --git a/SunnyUI/Common/UMMFile.cs b/SunnyUI/Common/UMMFile.cs
index 4c93b999..886051a6 100644
--- a/SunnyUI/Common/UMMFile.cs
+++ b/SunnyUI/Common/UMMFile.cs
@@ -167,6 +167,9 @@ namespace Sunny.UI
public string Value { get; set; }
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Stop();
diff --git a/SunnyUI/Common/UMessageTip.cs b/SunnyUI/Common/UMessageTip.cs
index bef8c687..d42363d1 100644
--- a/SunnyUI/Common/UMessageTip.cs
+++ b/SunnyUI/Common/UMessageTip.cs
@@ -964,7 +964,9 @@ namespace Sunny.UI
///
public static bool IsValid(Border border) => border != null && border.IsValid();
- ///
+ ///
+ /// 析构函数
+ ///
public void Dispose() => Pen?.Dispose();
}
@@ -1381,8 +1383,9 @@ namespace Sunny.UI
}
bool _disposed;
+
///
- /// 释放窗体
+ /// 析构函数
///
public void Dispose()
{
diff --git a/SunnyUI/Common/UThunder.cs b/SunnyUI/Common/UThunder.cs
index 7d18f62a..2d56c395 100644
--- a/SunnyUI/Common/UThunder.cs
+++ b/SunnyUI/Common/UThunder.cs
@@ -134,6 +134,9 @@ namespace Sunny.UI
return cnt;
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
timer.Stop();
diff --git a/SunnyUI/Controls/Color/UIColorBar.cs b/SunnyUI/Controls/Color/UIColorBar.cs
index 35fd9666..b977c38a 100644
--- a/SunnyUI/Controls/Color/UIColorBar.cs
+++ b/SunnyUI/Controls/Color/UIColorBar.cs
@@ -133,6 +133,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// ƶ¼
+ ///
+ ///
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -141,6 +145,10 @@ namespace Sunny.UI
SetPercent(mousepoint);
}
+ ///
+ /// 갴¼
+ ///
+ ///
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
diff --git a/SunnyUI/Controls/Color/UIColorTable.cs b/SunnyUI/Controls/Color/UIColorTable.cs
index 1756ce25..fc55b649 100644
--- a/SunnyUI/Controls/Color/UIColorTable.cs
+++ b/SunnyUI/Controls/Color/UIColorTable.cs
@@ -236,6 +236,10 @@ namespace Sunny.UI
Invalidate(GetSelectedItemRect());
}
+ ///
+ /// 갴¼
+ ///
+ ///
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
diff --git a/SunnyUI/Controls/Color/UIColorWheel.cs b/SunnyUI/Controls/Color/UIColorWheel.cs
index 93ee51a0..6a981541 100644
--- a/SunnyUI/Controls/Color/UIColorWheel.cs
+++ b/SunnyUI/Controls/Color/UIColorWheel.cs
@@ -169,6 +169,10 @@ namespace Sunny.UI
ReCalcWheelPoints();
}
+ ///
+ /// ƶ¼
+ ///
+ ///
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -177,6 +181,10 @@ namespace Sunny.UI
SetColor(mousePoint);
}
+ ///
+ /// 갴¼
+ ///
+ ///
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
diff --git a/SunnyUI/Controls/DropItem/UIDropControl.cs b/SunnyUI/Controls/DropItem/UIDropControl.cs
index 5abba1fd..96dc1551 100644
--- a/SunnyUI/Controls/DropItem/UIDropControl.cs
+++ b/SunnyUI/Controls/DropItem/UIDropControl.cs
@@ -280,6 +280,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -297,6 +301,10 @@ namespace Sunny.UI
SizeChange();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
SizeChange();
@@ -372,6 +380,10 @@ namespace Sunny.UI
[Browsable(false)]
public bool IsEmpty => edit.Text == "";
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
ActiveControl = edit;
diff --git a/SunnyUI/Controls/DropItem/UIDropDown.cs b/SunnyUI/Controls/DropItem/UIDropDown.cs
index baabd5af..92e75d4b 100644
--- a/SunnyUI/Controls/DropItem/UIDropDown.cs
+++ b/SunnyUI/Controls/DropItem/UIDropDown.cs
@@ -254,9 +254,9 @@ namespace Sunny.UI
}
///
- /// OnSizeChanged
+ /// 重载控件尺寸变更
///
- /// e
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
if (Item != null)
diff --git a/SunnyUI/Controls/UIAnalogMeter.cs b/SunnyUI/Controls/UIAnalogMeter.cs
index 4dc25da3..ee008860 100644
--- a/SunnyUI/Controls/UIAnalogMeter.cs
+++ b/SunnyUI/Controls/UIAnalogMeter.cs
@@ -319,6 +319,10 @@ namespace Sunny.UI
#region Events delegates
+ ///
+ /// ؿؼߴ
+ ///
+ ///
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIComboDataGridView.cs b/SunnyUI/Controls/UIComboDataGridView.cs
index 13443585..fb8ba78e 100644
--- a/SunnyUI/Controls/UIComboDataGridView.cs
+++ b/SunnyUI/Controls/UIComboDataGridView.cs
@@ -100,6 +100,10 @@ namespace Sunny.UI
return edit;
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
diff --git a/SunnyUI/Controls/UIComboTreeView.cs b/SunnyUI/Controls/UIComboTreeView.cs
index 37f40590..4244850e 100644
--- a/SunnyUI/Controls/UIComboTreeView.cs
+++ b/SunnyUI/Controls/UIComboTreeView.cs
@@ -76,6 +76,10 @@ namespace Sunny.UI
return edit;
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
diff --git a/SunnyUI/Controls/UIControl.cs b/SunnyUI/Controls/UIControl.cs
index c81ed1f0..c32455a8 100644
--- a/SunnyUI/Controls/UIControl.cs
+++ b/SunnyUI/Controls/UIControl.cs
@@ -97,6 +97,10 @@ namespace Sunny.UI
UpdateStyles();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIDataGridView.cs b/SunnyUI/Controls/UIDataGridView.cs
index 6678d4b4..a9339ae5 100644
--- a/SunnyUI/Controls/UIDataGridView.cs
+++ b/SunnyUI/Controls/UIDataGridView.cs
@@ -400,6 +400,10 @@ namespace Sunny.UI
SetScrollInfo();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIDoubleUpDown.cs b/SunnyUI/Controls/UIDoubleUpDown.cs
index 84abe963..cedc724d 100644
--- a/SunnyUI/Controls/UIDoubleUpDown.cs
+++ b/SunnyUI/Controls/UIDoubleUpDown.cs
@@ -99,6 +99,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -340,6 +344,10 @@ namespace Sunny.UI
btnDec.Radius = btnAdd.Radius = value;
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIFlowLayoutPanel.cs b/SunnyUI/Controls/UIFlowLayoutPanel.cs
index 1b134973..bd9eb652 100644
--- a/SunnyUI/Controls/UIFlowLayoutPanel.cs
+++ b/SunnyUI/Controls/UIFlowLayoutPanel.cs
@@ -64,6 +64,10 @@ namespace Sunny.UI
timer.Start();
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -314,6 +318,10 @@ namespace Sunny.UI
Panel.Focus();
}
+ ///
+ /// 重载鼠标进入事件
+ ///
+ /// 鼠标参数
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
@@ -451,6 +459,10 @@ namespace Sunny.UI
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIHeaderButton.cs b/SunnyUI/Controls/UIHeaderButton.cs
index 8b49333f..4fbcc0a0 100644
--- a/SunnyUI/Controls/UIHeaderButton.cs
+++ b/SunnyUI/Controls/UIHeaderButton.cs
@@ -530,6 +530,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -537,6 +541,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -544,6 +552,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -552,6 +564,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标进入事件
+ ///
+ /// 鼠标参数
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
diff --git a/SunnyUI/Controls/UIHorScrollBar.cs b/SunnyUI/Controls/UIHorScrollBar.cs
index 77cd9ef3..812af2f7 100644
--- a/SunnyUI/Controls/UIHorScrollBar.cs
+++ b/SunnyUI/Controls/UIHorScrollBar.cs
@@ -104,6 +104,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -285,6 +289,10 @@ namespace Sunny.UI
timer.Stop();
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
if (e.Button != MouseButtons.Left)
@@ -350,6 +358,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
IsPress = false;
@@ -360,6 +372,10 @@ namespace Sunny.UI
private int MousePos;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
MousePos = e.X;
@@ -393,6 +409,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
diff --git a/SunnyUI/Controls/UIHorScrollBarEx.cs b/SunnyUI/Controls/UIHorScrollBarEx.cs
index 068124ff..7bedbe8d 100644
--- a/SunnyUI/Controls/UIHorScrollBarEx.cs
+++ b/SunnyUI/Controls/UIHorScrollBarEx.cs
@@ -132,7 +132,10 @@ namespace Sunny.UI
return new Rectangle(Width - 17, 1, 16, Height - 2);
}
-
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -162,6 +165,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -169,6 +176,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -176,6 +187,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标进入事件
+ ///
+ /// 鼠标参数
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
@@ -216,6 +231,10 @@ namespace Sunny.UI
private bool inLeftArea, inRightArea, inCenterArea;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
diff --git a/SunnyUI/Controls/UIIPTextBox.cs b/SunnyUI/Controls/UIIPTextBox.cs
index 7b54081a..f8e8ee81 100644
--- a/SunnyUI/Controls/UIIPTextBox.cs
+++ b/SunnyUI/Controls/UIIPTextBox.cs
@@ -307,6 +307,10 @@ namespace Sunny.UI
UIIPTextBox_SizeChanged(null, null);
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
ActiveControl = txt1;
@@ -418,6 +422,10 @@ namespace Sunny.UI
txt1.Top = txt2.Top = txt3.Top = txt4.Top = (Height - txt1.Height) / 2;
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
diff --git a/SunnyUI/Controls/UIImageButton.cs b/SunnyUI/Controls/UIImageButton.cs
index e1c105f8..d8f466c8 100644
--- a/SunnyUI/Controls/UIImageButton.cs
+++ b/SunnyUI/Controls/UIImageButton.cs
@@ -294,9 +294,9 @@ namespace Sunny.UI
}
///
- /// 鼠标按下
+ /// 重载鼠标按下事件
///
- /// e
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -305,9 +305,9 @@ namespace Sunny.UI
}
///
- /// 鼠标弹起
+ /// 重载鼠标抬起事件
///
- /// e
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -316,9 +316,9 @@ namespace Sunny.UI
}
///
- /// 鼠标进入
+ /// 重载鼠标进入事件
///
- /// e
+ /// 鼠标参数
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
@@ -333,9 +333,9 @@ namespace Sunny.UI
}
///
- /// 鼠标离开
+ /// 重载鼠标离开事件
///
- /// e
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
diff --git a/SunnyUI/Controls/UIImageListBox.cs b/SunnyUI/Controls/UIImageListBox.cs
index 0e672230..72b1d137 100644
--- a/SunnyUI/Controls/UIImageListBox.cs
+++ b/SunnyUI/Controls/UIImageListBox.cs
@@ -114,6 +114,10 @@ namespace Sunny.UI
public new event MouseEventHandler MouseUp;
public new event MouseEventHandler MouseMove;
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -121,6 +125,10 @@ namespace Sunny.UI
listbox.Font = Font;
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -409,6 +417,10 @@ namespace Sunny.UI
SetScrollInfo();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
if (Bar != null && Bar.Visible)
@@ -728,12 +740,20 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
MouseIndex = IndexFromPoint(e.Location);
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -772,6 +792,9 @@ namespace Sunny.UI
return Description + ", " + ImagePath;
}
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
Image?.Dispose();
diff --git a/SunnyUI/Controls/UIIntegerUpDown.cs b/SunnyUI/Controls/UIIntegerUpDown.cs
index 6b8ae856..8e90a278 100644
--- a/SunnyUI/Controls/UIIntegerUpDown.cs
+++ b/SunnyUI/Controls/UIIntegerUpDown.cs
@@ -117,6 +117,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -317,6 +321,10 @@ namespace Sunny.UI
btnDec.Radius = btnAdd.Radius = value;
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIListBox.cs b/SunnyUI/Controls/UIListBox.cs
index c1940c45..e9860d08 100644
--- a/SunnyUI/Controls/UIListBox.cs
+++ b/SunnyUI/Controls/UIListBox.cs
@@ -367,6 +367,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -374,6 +378,10 @@ namespace Sunny.UI
listbox.Font = Font;
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIListBoxEx.cs b/SunnyUI/Controls/UIListBoxEx.cs
index 35955735..df60bd23 100644
--- a/SunnyUI/Controls/UIListBoxEx.cs
+++ b/SunnyUI/Controls/UIListBoxEx.cs
@@ -104,6 +104,10 @@ namespace Sunny.UI
base.WndProc(ref m);
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
if (Bar != null && Bar.Visible)
@@ -391,6 +395,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -398,6 +406,10 @@ namespace Sunny.UI
MouseIndex = IndexFromPoint(e.Location);
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
diff --git a/SunnyUI/Controls/UINavBar.cs b/SunnyUI/Controls/UINavBar.cs
index cf874c0b..71a872de 100644
--- a/SunnyUI/Controls/UINavBar.cs
+++ b/SunnyUI/Controls/UINavBar.cs
@@ -128,6 +128,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -580,6 +584,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -587,6 +595,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
diff --git a/SunnyUI/Controls/UINavMenu.cs b/SunnyUI/Controls/UINavMenu.cs
index 74c438cd..88e45811 100644
--- a/SunnyUI/Controls/UINavMenu.cs
+++ b/SunnyUI/Controls/UINavMenu.cs
@@ -517,6 +517,10 @@ namespace Sunny.UI
private TreeNode CurrentNode;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -550,6 +554,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
Graphics g = CreateGraphics();
diff --git a/SunnyUI/Controls/UIPagination.cs b/SunnyUI/Controls/UIPagination.cs
index 27a660e7..877cf154 100644
--- a/SunnyUI/Controls/UIPagination.cs
+++ b/SunnyUI/Controls/UIPagination.cs
@@ -124,6 +124,10 @@ namespace Sunny.UI
p1.FillColor = p1.RectColor = color;
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
diff --git a/SunnyUI/Controls/UIProcessBar.cs b/SunnyUI/Controls/UIProcessBar.cs
index 3aaa73d3..c14b26a3 100644
--- a/SunnyUI/Controls/UIProcessBar.cs
+++ b/SunnyUI/Controls/UIProcessBar.cs
@@ -193,6 +193,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIProgressIndicator.cs b/SunnyUI/Controls/UIProgressIndicator.cs
index 6c27668e..e9046095 100644
--- a/SunnyUI/Controls/UIProgressIndicator.cs
+++ b/SunnyUI/Controls/UIProgressIndicator.cs
@@ -150,6 +150,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIRichTextBox.cs b/SunnyUI/Controls/UIRichTextBox.cs
index 97c25002..9cd22ddf 100644
--- a/SunnyUI/Controls/UIRichTextBox.cs
+++ b/SunnyUI/Controls/UIRichTextBox.cs
@@ -187,6 +187,10 @@ namespace Sunny.UI
edit.ContextMenuStrip = ContextMenuStrip;
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -260,6 +264,10 @@ namespace Sunny.UI
edit.Focus();
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
ActiveControl = edit;
diff --git a/SunnyUI/Controls/UIScrollBar.cs b/SunnyUI/Controls/UIScrollBar.cs
index 98b4b0dd..a5b4aaae 100644
--- a/SunnyUI/Controls/UIScrollBar.cs
+++ b/SunnyUI/Controls/UIScrollBar.cs
@@ -105,6 +105,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -305,6 +309,10 @@ namespace Sunny.UI
timer.Stop();
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
if (e.Button != MouseButtons.Left)
@@ -370,6 +378,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
IsPress = false;
@@ -380,6 +392,10 @@ namespace Sunny.UI
private int MousePos;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
MousePos = e.Y;
@@ -413,6 +429,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
diff --git a/SunnyUI/Controls/UIScrollingText.cs b/SunnyUI/Controls/UIScrollingText.cs
index 86d31ea2..aa87c19e 100644
--- a/SunnyUI/Controls/UIScrollingText.cs
+++ b/SunnyUI/Controls/UIScrollingText.cs
@@ -225,6 +225,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
Reset();
diff --git a/SunnyUI/Controls/UISmoothLabel.cs b/SunnyUI/Controls/UISmoothLabel.cs
index a658df8e..91e796b7 100644
--- a/SunnyUI/Controls/UISmoothLabel.cs
+++ b/SunnyUI/Controls/UISmoothLabel.cs
@@ -172,6 +172,10 @@ namespace Sunny.UI
set => SetStyle(value);
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
diff --git a/SunnyUI/Controls/UISplitContainer.cs b/SunnyUI/Controls/UISplitContainer.cs
index eb5cb88e..64d21ead 100644
--- a/SunnyUI/Controls/UISplitContainer.cs
+++ b/SunnyUI/Controls/UISplitContainer.cs
@@ -314,6 +314,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -476,6 +480,10 @@ namespace Sunny.UI
return new Point[0];
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
//如果鼠标的左键没有按下,重置鼠标状态
@@ -532,6 +540,10 @@ namespace Sunny.UI
base.OnMouseMove(e);
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.Cursor = Cursors.Default;
@@ -539,6 +551,10 @@ namespace Sunny.UI
base.OnMouseLeave(e);
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
Rectangle collapseRect = CollapseRect;
@@ -566,6 +582,10 @@ namespace Sunny.UI
Invalidate(SplitterRectangle);
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
diff --git a/SunnyUI/Controls/UITabControl.cs b/SunnyUI/Controls/UITabControl.cs
index e0856a47..677ee011 100644
--- a/SunnyUI/Controls/UITabControl.cs
+++ b/SunnyUI/Controls/UITabControl.cs
@@ -711,6 +711,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -750,6 +754,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -1080,6 +1088,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -1174,6 +1186,9 @@ namespace Sunny.UI
#region IDisposable 成员
+ ///
+ /// 析构函数
+ ///
public void Dispose()
{
_owner = null;
diff --git a/SunnyUI/Controls/UITextBox.cs b/SunnyUI/Controls/UITextBox.cs
index f2a20f0b..f7298a71 100644
--- a/SunnyUI/Controls/UITextBox.cs
+++ b/SunnyUI/Controls/UITextBox.cs
@@ -516,6 +516,10 @@ namespace Sunny.UI
SetScrollInfo();
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -525,6 +529,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -772,6 +780,10 @@ namespace Sunny.UI
public bool IsEmpty => edit.Text == "";
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
ActiveControl = edit;
diff --git a/SunnyUI/Controls/UITitlePanel.cs b/SunnyUI/Controls/UITitlePanel.cs
index ec1e0737..257c186c 100644
--- a/SunnyUI/Controls/UITitlePanel.cs
+++ b/SunnyUI/Controls/UITitlePanel.cs
@@ -194,6 +194,10 @@ namespace Sunny.UI
private bool InControlBox;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
bool inControlBox = e.Location.InRect(ControlBoxRect);
@@ -206,6 +210,10 @@ namespace Sunny.UI
base.OnMouseMove(e);
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -314,6 +322,10 @@ namespace Sunny.UI
base.OnMouseClick(e);
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UITrackBar.cs b/SunnyUI/Controls/UITrackBar.cs
index 8dd5ab4c..9885792c 100644
--- a/SunnyUI/Controls/UITrackBar.cs
+++ b/SunnyUI/Controls/UITrackBar.cs
@@ -239,6 +239,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -260,6 +264,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -267,6 +275,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
diff --git a/SunnyUI/Controls/UITransfer.cs b/SunnyUI/Controls/UITransfer.cs
index 213209e6..0af99b4a 100644
--- a/SunnyUI/Controls/UITransfer.cs
+++ b/SunnyUI/Controls/UITransfer.cs
@@ -196,9 +196,9 @@ namespace Sunny.UI
}
///
- /// OnSizeChanged
+ /// 重载控件尺寸变更
///
- /// e
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UITreeView.cs b/SunnyUI/Controls/UITreeView.cs
index ed09ecf9..e1f21076 100644
--- a/SunnyUI/Controls/UITreeView.cs
+++ b/SunnyUI/Controls/UITreeView.cs
@@ -622,6 +622,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载字体变更
+ ///
+ /// 参数
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
@@ -645,6 +649,10 @@ namespace Sunny.UI
SetScrollInfo();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -826,6 +834,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
@@ -847,6 +859,10 @@ namespace Sunny.UI
g.Dispose();
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
var g = CreateGraphics();
diff --git a/SunnyUI/Controls/UIUserControl.cs b/SunnyUI/Controls/UIUserControl.cs
index 394b7a7e..9e8a4e52 100644
--- a/SunnyUI/Controls/UIUserControl.cs
+++ b/SunnyUI/Controls/UIUserControl.cs
@@ -99,6 +99,10 @@ namespace Sunny.UI
UpdateStyles();
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Controls/UIVerScrollBarEx.cs b/SunnyUI/Controls/UIVerScrollBarEx.cs
index d65323c8..7cebf9dd 100644
--- a/SunnyUI/Controls/UIVerScrollBarEx.cs
+++ b/SunnyUI/Controls/UIVerScrollBarEx.cs
@@ -133,6 +133,10 @@ namespace Sunny.UI
return rect;
}
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -162,6 +166,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -169,6 +177,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -176,6 +188,10 @@ namespace Sunny.UI
Invalidate();
}
+ ///
+ /// 重载鼠标进入事件
+ ///
+ /// 鼠标参数
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
@@ -216,6 +232,10 @@ namespace Sunny.UI
private bool inLeftArea, inRightArea, inCenterArea;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
diff --git a/SunnyUI/Forms/UIEditForm.cs b/SunnyUI/Forms/UIEditForm.cs
index 2e9fa153..1c9b10d5 100644
--- a/SunnyUI/Forms/UIEditForm.cs
+++ b/SunnyUI/Forms/UIEditForm.cs
@@ -460,6 +460,10 @@ namespace Sunny.UI
public UIEditForm Form { get; set; }
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs
index a921b8da..fc037cb1 100644
--- a/SunnyUI/Forms/UIForm.cs
+++ b/SunnyUI/Forms/UIForm.cs
@@ -778,6 +778,10 @@ namespace Sunny.UI
///
private Point mouseOffset;
+ ///
+ /// 重载鼠标按下事件
+ ///
+ /// 鼠标参数
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
@@ -829,6 +833,10 @@ namespace Sunny.UI
///
private long TopBorderStayTicks;
+ ///
+ /// 重载鼠标抬起事件
+ ///
+ /// 鼠标参数
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
@@ -861,6 +869,10 @@ namespace Sunny.UI
FormMoveMouseDown = false;
}
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
if (FormMoveMouseDown && !MousePosition.Equals(mouseOffset))
@@ -946,6 +958,10 @@ namespace Sunny.UI
base.OnMouseMove(e);
}
+ ///
+ /// 重载鼠标离开事件
+ ///
+ /// 鼠标参数
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
@@ -1346,6 +1362,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Forms/UIMessageForm.cs b/SunnyUI/Forms/UIMessageForm.cs
index 988ac419..17d03662 100644
--- a/SunnyUI/Forms/UIMessageForm.cs
+++ b/SunnyUI/Forms/UIMessageForm.cs
@@ -54,6 +54,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
diff --git a/SunnyUI/Frames/UIPage.cs b/SunnyUI/Frames/UIPage.cs
index 180065c7..45e6d76f 100644
--- a/SunnyUI/Frames/UIPage.cs
+++ b/SunnyUI/Frames/UIPage.cs
@@ -713,6 +713,10 @@ namespace Sunny.UI
}
}
+ ///
+ /// 重载控件尺寸变更
+ ///
+ /// 参数
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@@ -721,6 +725,10 @@ namespace Sunny.UI
private bool InControlBox;
+ ///
+ /// 重载鼠标移动事件
+ ///
+ /// 鼠标参数
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);