www.pudn.com > Fetion.rar > ColorfulFontMessageForm.cs


namespace Imps.Client.Pc 
{ 
    using Imps.Client.Pc.BizControls; 
    using Imps.Client.Pc.Controls; 
    using System; 
    using System.ComponentModel; 
    using System.Drawing; 
    using System.Windows.Forms; 
 
    public class ColorfulFontMessageForm : XIMDialog 
    { 
        private IContainer components; 
        private HtmlLabel hlContent; 
        private Panel pnlBase; 
        private XButton xbtnOK; 
 
        public ColorfulFontMessageForm(string content) 
        { 
            this.InitializeComponent(); 
            this.hlContent.Text = content; 
            this.initComponentRegion(); 
        } 
 
        protected override void Dispose(bool disposing) 
        { 
            if (disposing && (this.components != null)) 
            { 
                this.components.Dispose(); 
            } 
            base.Dispose(disposing); 
        } 
 
        private void InitializeComponent() 
        { 
            this.components = new Container(); 
            ComponentResourceManager manager = new ComponentResourceManager(typeof(ColorfulFontMessageForm)); 
            this.pnlBase = new Panel(); 
            this.xbtnOK = new XButton(); 
            this.hlContent = new HtmlLabel(); 
            this.pnlBase.SuspendLayout(); 
            base.SuspendLayout(); 
            this.pnlBase.BackColor = Color.Transparent; 
            this.pnlBase.Controls.Add(this.xbtnOK); 
            this.pnlBase.Controls.Add(this.hlContent); 
            this.pnlBase.Dock = DockStyle.Fill; 
            this.pnlBase.Location = new System.Drawing.Point(6, 0x22); 
            this.pnlBase.Name = "pnlBase"; 
            this.pnlBase.Size = new Size(0x165, 0x9b); 
            this.pnlBase.TabIndex = 0; 
            this.xbtnOK.BackColor = Color.Transparent; 
            this.xbtnOK.BackgroundImageDisable = null; 
            this.xbtnOK.BackgroundImageDown = null; 
            this.xbtnOK.BackgroundImageHover = null; 
            this.xbtnOK.Location = new System.Drawing.Point(0x8e, 0x76); 
            this.xbtnOK.Name = "xbtnOK"; 
            this.xbtnOK.Size = new Size(0x4b, 0x19); 
            this.xbtnOK.TabIndex = 1; 
            this.xbtnOK.Text = "确定"; 
            this.xbtnOK.UseVisualStyleBackColor = false; 
            this.xbtnOK.Click += new EventHandler(this.xbtnOK_Click); 
            this.hlContent.Font = new Font("Arial", 10.5f, FontStyle.Regular, GraphicsUnit.Point, 0); 
            this.hlContent.LinkColor = Color.Blue; 
            this.hlContent.Location = new System.Drawing.Point(0x12, 15); 
            this.hlContent.Name = "hlContent"; 
            this.hlContent.ShowBackgroundImage = false; 
            this.hlContent.Size = new Size(0x144, 0x5b); 
            this.hlContent.TabIndex = 0; 
            this.hlContent.Text = "超级管理员删除"; 
            base.AcceptButton = this.xbtnOK; 
            base.AutoScaleDimensions = new SizeF(6f, 13f); 
            base.AutoScaleMode = AutoScaleMode.Font; 
            base.ClientSize = new Size(0x17e, 0xc6); 
            base.Controls.Add(this.pnlBase); 
            base.DisplayLocation = new System.Drawing.Point(0x12, 0x26); 
            base.DisplaySize = new Size(0x175, 0xc6); 
            base.Icon = (Icon) manager.GetObject("$this.Icon"); 
            base.Name = "ColorfulFontMessageForm"; 
            base.Padding = new Padding(6, 0x22, 0x13, 9); 
            this.pnlBase.ResumeLayout(false); 
            base.ResumeLayout(false); 
        } 
 
        private void xbtnOK_Click(object sender, EventArgs e) 
        { 
            base.Close(); 
        } 
    } 
}