liveupdatenotifyform.cs
来自「破解的飞信源代码」· CS 代码 · 共 64 行
CS
64 行
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 + =
减小字号Ctrl + -
显示快捷键?