From b26761134b659ee77ec3200fdcd54a804b8bf289 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 3 Jul 2023 10:24:06 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIDropControl:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E4=B8=8B=E6=8B=89=E6=A1=86=E6=8E=A7=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E9=87=8A=E6=94=BE=EF=BC=88=E4=B8=8D=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E8=AF=9DGC=E4=B9=9F=E4=BC=9A=E5=9B=9E=E6=94=B6?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIColorPicker.cs | 20 ++++++++++++++++++++ SunnyUI/Controls/UIComboDataGridView.cs | 20 ++++++++++++++++++++ SunnyUI/Controls/UIComboTreeView.cs | 20 ++++++++++++++++++++ SunnyUI/Controls/UIDatePicker.Designer.cs | 2 ++ SunnyUI/Controls/UIDateTimePicker.cs | 20 ++++++++++++++++++++ SunnyUI/Controls/UINumPadTextBox.cs | 21 +++++++++++++++++++++ SunnyUI/Controls/UITimePicker.cs | 20 ++++++++++++++++++++ 7 files changed, 123 insertions(+) diff --git a/SunnyUI/Controls/UIColorPicker.cs b/SunnyUI/Controls/UIColorPicker.cs index 136640c8..e7b9dc25 100644 --- a/SunnyUI/Controls/UIColorPicker.cs +++ b/SunnyUI/Controls/UIColorPicker.cs @@ -55,6 +55,26 @@ namespace Sunny.UI this.PerformLayout(); } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + item?.Dispose(); + base.Dispose(disposing); + } + /// /// 颜色改变事件 /// diff --git a/SunnyUI/Controls/UIComboDataGridView.cs b/SunnyUI/Controls/UIComboDataGridView.cs index dc6d43a6..35d324ed 100644 --- a/SunnyUI/Controls/UIComboDataGridView.cs +++ b/SunnyUI/Controls/UIComboDataGridView.cs @@ -55,6 +55,26 @@ namespace Sunny.UI this.PerformLayout(); } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + item?.Dispose(); + base.Dispose(disposing); + } + [DefaultValue(true), Description("过滤框输入逐一过滤"), Category("SunnyUI")] public bool Filter1by1 { get; set; } = true; diff --git a/SunnyUI/Controls/UIComboTreeView.cs b/SunnyUI/Controls/UIComboTreeView.cs index f3b61071..39b16a0b 100644 --- a/SunnyUI/Controls/UIComboTreeView.cs +++ b/SunnyUI/Controls/UIComboTreeView.cs @@ -63,6 +63,26 @@ namespace Sunny.UI this.PerformLayout(); } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + item?.Dispose(); + base.Dispose(disposing); + } + [DefaultValue(false)] [Description("显示清除按钮"), Category("SunnyUI")] public bool ShowClearButton diff --git a/SunnyUI/Controls/UIDatePicker.Designer.cs b/SunnyUI/Controls/UIDatePicker.Designer.cs index 3dfd416a..b89c7310 100644 --- a/SunnyUI/Controls/UIDatePicker.Designer.cs +++ b/SunnyUI/Controls/UIDatePicker.Designer.cs @@ -17,6 +17,8 @@ { components.Dispose(); } + + item?.Dispose(); base.Dispose(disposing); } diff --git a/SunnyUI/Controls/UIDateTimePicker.cs b/SunnyUI/Controls/UIDateTimePicker.cs index 924dd869..ddf785c5 100644 --- a/SunnyUI/Controls/UIDateTimePicker.cs +++ b/SunnyUI/Controls/UIDateTimePicker.cs @@ -50,6 +50,26 @@ namespace Sunny.UI } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + item?.Dispose(); + base.Dispose(disposing); + } + /// /// 需要额外设置ToolTip的控件 /// diff --git a/SunnyUI/Controls/UINumPadTextBox.cs b/SunnyUI/Controls/UINumPadTextBox.cs index 1f67edc3..2f05223f 100644 --- a/SunnyUI/Controls/UINumPadTextBox.cs +++ b/SunnyUI/Controls/UINumPadTextBox.cs @@ -259,6 +259,27 @@ namespace Sunny.UI PerformLayout(); } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + numPad?.Dispose(); + numPadForm?.Dispose(); + base.Dispose(disposing); + } + private void edit_Leave(object sender, EventArgs e) { HideDropDown(); diff --git a/SunnyUI/Controls/UITimePicker.cs b/SunnyUI/Controls/UITimePicker.cs index 734d6302..ffa96521 100644 --- a/SunnyUI/Controls/UITimePicker.cs +++ b/SunnyUI/Controls/UITimePicker.cs @@ -47,6 +47,26 @@ namespace Sunny.UI this.PerformLayout(); } + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + + item?.Dispose(); + base.Dispose(disposing); + } + /// /// 需要额外设置ToolTip的控件 ///