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 一些辅助窗口