From c588cec21ffe0fdad9e7a0cedccd38d0568d1fb1 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 16 Jul 2021 10:42:07 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIPage=EF=BC=9A=E6=81=A2=E5=A4=8D=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=9A=84Initialize=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Pages/UIPage.cs | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/SunnyUI/Pages/UIPage.cs b/SunnyUI/Pages/UIPage.cs index 9beb3110..2405696d 100644 --- a/SunnyUI/Pages/UIPage.cs +++ b/SunnyUI/Pages/UIPage.cs @@ -40,7 +40,10 @@ namespace Sunny.UI protected UIStyle _style = UIStyle.Blue; [Browsable(false)] - public IFrame Frame { get; set; } + public IFrame Frame + { + get; set; + } public UIPage() { @@ -113,7 +116,10 @@ namespace Sunny.UI } [DefaultValue(false), Description("在Frame框架中不被关闭"), Category("SunnyUI")] - public bool AlwaysOpen { get; set; } + public bool AlwaysOpen + { + get; set; + } protected virtual void SymbolChange() { @@ -180,9 +186,15 @@ namespace Sunny.UI /// [DefaultValue(null)] [Description("获取或设置包含有关控件的数据的对象字符串"), Category("SunnyUI")] - public string TagString { get; set; } + public string TagString + { + get; set; + } - public string Version { get; } + public string Version + { + get; + } /// /// 主题样式 @@ -199,7 +211,12 @@ namespace Sunny.UI /// [DefaultValue(false)] [Description("获取或设置可以自定义主题风格"), Category("SunnyUI")] - public bool StyleCustomMode { get; set; } + public bool StyleCustomMode + { + get; set; + } + + public event EventHandler Initialize; protected override void OnControlAdded(ControlEventArgs e) { @@ -243,7 +260,7 @@ namespace Sunny.UI public virtual void Init() { - + Initialize?.Invoke(this, null); } protected override void OnLoad(EventArgs e) @@ -554,10 +571,16 @@ namespace Sunny.UI } [Browsable(false)] - public new bool MinimizeBox { get; set; } + public new bool MinimizeBox + { + get; set; + } [Browsable(false)] - public new bool MaximizeBox { get; set; } + public new bool MaximizeBox + { + get; set; + } #region 一些辅助窗口