⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liveupdatenotifyform.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.BizControls.NotifyWindows.Templates
{
    using Imps.Client.Pc.BizControls.NotifyWindows;
    using Imps.Client.Resource;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;

    public class LiveUpdateNotifyForm : NotifyWindowTemplateBase
    {
        private string _PromptText = string.Format(StringTable.LiveUpdate.NotifyWindow_Description, AppDictionary.CurrentClientName);
        private IContainer components;
        protected NotifyWindowLabel contentLabel;

        public event NotifyWindowEventHandler ContentClick;

        public LiveUpdateNotifyForm(string promptText)
        {
            this.InitializeComponent();
            base.title = string.Format(StringTable.LiveUpdate.PromptWindow_TitleFormat, AppDictionary.CurrentClientName);
            if (!string.IsNullOrEmpty(promptText))
            {
                this._PromptText = promptText;
            }
            base.InitContent();
        }

        protected override void CreateContent(NotifyWindowContent content)
        {
            Rectangle textRectangle = new Rectangle(12, 30, 0xba, 80);
            this.contentLabel = new NotifyWindowLabel(this._PromptText, textRectangle);
            this.contentLabel.Format.Alignment = StringAlignment.Center;
            this.contentLabel.Format.LineAlignment = StringAlignment.Center;
            this.contentLabel.Clickable = true;
            this.contentLabel.Click += delegate (object sender, NotifyWindowEventArgs e) {
                NotifyWindowEventHandler contentClick = this.ContentClick;
                if (contentClick != null)
                {
                    contentClick(this, e);
                }
            };
            content.Elements.Add(this.contentLabel);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            base.set_AutoScaleMode(1);
            this.Text = "LiveUpdateNotifyForm";
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -