www.pudn.com > Fetion.rar > FormConfirm.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 FormConfirm : XIMDialog 
    { 
        private int _totalContactCount; 
        private XButton buttonCancel; 
        private XButton buttonOK; 
        private IContainer components; 
        private Label label2; 
        private Label labelConfirm; 
        private Panel panel1; 
        private PictureBox pictureBox1; 
 
        public FormConfirm(int totalContactCount) 
        { 
            this.InitializeComponent(); 
            this._totalContactCount = totalContactCount; 
        } 
 
        private void buttonCancel_Click(object sender, EventArgs e) 
        { 
        } 
 
        private void buttonOK_Click(object sender, EventArgs e) 
        { 
            base.DialogResult = DialogResult.OK; 
            base.Close(); 
        } 
 
        protected override void Dispose(bool disposing) 
        { 
            if (disposing && (this.components != null)) 
            { 
                this.components.Dispose(); 
            } 
            base.Dispose(disposing); 
        } 
 
        private void FormConfirm_Load(object sender, EventArgs e) 
        { 
            base.Text = "Fetion2008"; 
            this.labelConfirm.Text = string.Format("确认导入 {0} 位联系人吗?", this._totalContactCount); 
        } 
 
        private void InitializeComponent() 
        { 
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FormConfirm)); 
            this.buttonOK = new XButton(); 
            this.buttonCancel = new XButton(); 
            this.labelConfirm = new Label(); 
            this.label2 = new Label(); 
            this.panel1 = new Panel(); 
            this.pictureBox1 = new PictureBox(); 
            this.panel1.SuspendLayout(); 
            ((ISupportInitialize) this.pictureBox1).BeginInit(); 
            base.SuspendLayout(); 
            this.buttonOK.AutoSizeToImage = false; 
            this.buttonOK.BackColor = Color.Transparent; 
            this.buttonOK.BackgroundImageDisable = null; 
            this.buttonOK.BackgroundImageDown = null; 
            this.buttonOK.BackgroundImageHover = null; 
            this.buttonOK.ChangeSkin = true; 
            this.buttonOK.Location = new System.Drawing.Point(0x97, 0x89); 
            this.buttonOK.Name = "buttonOK"; 
            this.buttonOK.Size = new Size(0x4b, 0x17); 
            this.buttonOK.TabIndex = 0; 
            this.buttonOK.Text = "确定"; 
            this.buttonOK.UseVisualStyleBackColor = false; 
            this.buttonOK.Click += new EventHandler(this.buttonOK_Click); 
            this.buttonCancel.AutoSizeToImage = false; 
            this.buttonCancel.BackColor = Color.Transparent; 
            this.buttonCancel.BackgroundImageDisable = null; 
            this.buttonCancel.BackgroundImageDown = null; 
            this.buttonCancel.BackgroundImageHover = null; 
            this.buttonCancel.ChangeSkin = true; 
            this.buttonCancel.DialogResult = DialogResult.Cancel; 
            this.buttonCancel.Location = new System.Drawing.Point(0xe8, 0x89); 
            this.buttonCancel.Name = "buttonCancel"; 
            this.buttonCancel.Size = new Size(0x4b, 0x17); 
            this.buttonCancel.TabIndex = 1; 
            this.buttonCancel.Text = "取消"; 
            this.buttonCancel.UseVisualStyleBackColor = false; 
            this.buttonCancel.Click += new EventHandler(this.buttonCancel_Click); 
            this.labelConfirm.AutoSize = true; 
            this.labelConfirm.BackColor = Color.Transparent; 
            this.labelConfirm.Location = new System.Drawing.Point(0x51, 0x47); 
            this.labelConfirm.Name = "labelConfirm"; 
            this.labelConfirm.Size = new Size(0x3d, 13); 
            this.labelConfirm.TabIndex = 2; 
            this.labelConfirm.Text = "确认导入?"; 
            this.label2.BackColor = Color.Transparent; 
            this.label2.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86); 
            this.label2.ForeColor = Color.Red; 
            this.label2.Location = new System.Drawing.Point(0x51, 0x22); 
            this.label2.Name = "label2"; 
            this.label2.Size = new Size(210, 0x20); 
            this.label2.TabIndex = 3; 
            this.label2.Text = "如果对方不在线或未开通飞信,将通过手机短信收到您的添加邀请。"; 
            this.panel1.BackColor = Color.Transparent; 
            this.panel1.Controls.Add(this.pictureBox1); 
            this.panel1.Controls.Add(this.label2); 
            this.panel1.Controls.Add(this.labelConfirm); 
            this.panel1.Location = new System.Drawing.Point(9, 8); 
            this.panel1.Name = "panel1"; 
            this.panel1.Size = new Size(0x133, 0x7a); 
            this.panel1.TabIndex = 4; 
            this.pictureBox1.Image = (Image) manager.GetObject("pictureBox1.Image"); 
            this.pictureBox1.Location = new System.Drawing.Point(13, 0x22); 
            this.pictureBox1.Name = "pictureBox1"; 
            this.pictureBox1.Size = new Size(0x3e, 50); 
            this.pictureBox1.TabIndex = 4; 
            this.pictureBox1.TabStop = false; 
            base.AcceptButton = this.buttonCancel; 
            base.AutoScaleDimensions = new SizeF(6f, 13f); 
            base.AutoScaleMode = AutoScaleMode.Font; 
            base.BaseHeight = 0xc4; 
            base.BaseWidth = 0x145; 
            base.CancelButton = this.buttonCancel; 
            base.ClientSize = new Size(0x13f, 170); 
            base.Controls.Add(this.panel1); 
            base.Controls.Add(this.buttonOK); 
            base.Controls.Add(this.buttonCancel); 
            base.DisplayLocation = new System.Drawing.Point(0x12, 0x26); 
            base.MinimizeBox = false; 
            base.Name = "FormConfirm"; 
            base.Padding = new Padding(6, 0x1f, 0x13, 8); 
            base.ShowInTaskbar = false; 
            base.StartPosition = FormStartPosition.CenterParent; 
            base.Text = "确定"; 
            base.Load += new EventHandler(this.FormConfirm_Load); 
            this.panel1.ResumeLayout(false); 
            this.panel1.PerformLayout(); 
            ((ISupportInitialize) this.pictureBox1).EndInit(); 
            base.ResumeLayout(false); 
        } 
    } 
}