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


namespace Imps.Client.Pc 
{ 
    using Imps.Client.Pc.BizControls; 
    using Imps.Client.Pc.Controls; 
    using Imps.Client.Pc.Properties; 
    using Imps.Client.Resource; 
    using System; 
    using System.ComponentModel; 
    using System.Drawing; 
    using System.Windows.Forms; 
 
    public class DeleteGroupConfirmForm : XIMDialog 
    { 
        private XButton btnCancel; 
        private XButton btnConfirm; 
        private CheckBox chkConfirm; 
        private IContainer components; 
        private Label lblDescription; 
        private Panel panel1; 
        private PictureBox picError; 
 
        public DeleteGroupConfirmForm() 
        { 
            this.InitializeComponent(); 
            this.picError.Image = ImpsIcons.InfoImage; 
        } 
 
        private void btnCancel_Click(object sender, EventArgs e) 
        { 
            base.DialogResult = DialogResult.No; 
            base.Close(); 
        } 
 
        private void btnConfirm_Click(object sender, EventArgs e) 
        { 
            base.DialogResult = DialogResult.Yes; 
        } 
 
        private void chkConfirm_CheckedChanged(object sender, EventArgs e) 
        { 
            this.btnConfirm.Enabled = this.chkConfirm.Checked; 
        } 
 
        private void DeleteGroupConfirmForm_KeyDown(object sender, KeyEventArgs e) 
        { 
            if (e.KeyCode == Keys.Escape) 
            { 
                base.Close(); 
            } 
        } 
 
        protected override void Dispose(bool disposing) 
        { 
            if (disposing && (this.components != null)) 
            { 
                this.components.Dispose(); 
            } 
            base.Dispose(disposing); 
        } 
 
        private void InitializeComponent() 
        { 
            ComponentResourceManager manager = new ComponentResourceManager(typeof(DeleteGroupConfirmForm)); 
            this.panel1 = new Panel(); 
            this.picError = new PictureBox(); 
            this.chkConfirm = new CheckBox(); 
            this.lblDescription = new Label(); 
            this.btnCancel = new XButton(); 
            this.btnConfirm = new XButton(); 
            this.panel1.SuspendLayout(); 
            ((ISupportInitialize) this.picError).BeginInit(); 
            base.SuspendLayout(); 
            this.panel1.BackColor = Color.Transparent; 
            this.panel1.Controls.Add(this.picError); 
            this.panel1.Controls.Add(this.chkConfirm); 
            this.panel1.Controls.Add(this.lblDescription); 
            this.panel1.Location = new System.Drawing.Point(6, 0x1f); 
            this.panel1.Name = "panel1"; 
            this.panel1.Size = new Size(300, 80); 
            this.panel1.TabIndex = 3; 
            this.picError.Image = Resources.error; 
            this.picError.Location = new System.Drawing.Point(0x18, 9); 
            this.picError.Name = "picError"; 
            this.picError.Size = new Size(0x20, 0x20); 
            this.picError.SizeMode = PictureBoxSizeMode.StretchImage; 
            this.picError.TabIndex = 5; 
            this.picError.TabStop = false; 
            this.chkConfirm.AutoSize = true; 
            this.chkConfirm.Location = new System.Drawing.Point(0x41, 0x2f); 
            this.chkConfirm.Name = "chkConfirm"; 
            this.chkConfirm.Size = new Size(170, 0x11); 
            this.chkConfirm.TabIndex = 4; 
            this.chkConfirm.Text = "解散群内成员,并删除群。"; 
            this.chkConfirm.UseVisualStyleBackColor = true; 
            this.chkConfirm.CheckedChanged += new EventHandler(this.chkConfirm_CheckedChanged); 
            this.lblDescription.Location = new System.Drawing.Point(0x3e, 9); 
            this.lblDescription.Name = "lblDescription"; 
            this.lblDescription.Size = new Size(0xe1, 0x23); 
            this.lblDescription.TabIndex = 3; 
            this.lblDescription.Text = "删除群是一个不可逆的操作,将解除群内所有成员的群友关系。\r\n"; 
            this.btnCancel.AutoSizeToImage = false; 
            this.btnCancel.BackColor = Color.Transparent; 
            this.btnCancel.BackgroundImageDisable = null; 
            this.btnCancel.BackgroundImageDown = null; 
            this.btnCancel.BackgroundImageHover = null; 
            this.btnCancel.ChangeSkin = true; 
            this.btnCancel.DialogResult = DialogResult.Cancel; 
            this.btnCancel.Location = new System.Drawing.Point(190, 0x75); 
            this.btnCancel.Name = "btnCancel"; 
            this.btnCancel.Size = new Size(0x4b, 0x17); 
            this.btnCancel.TabIndex = 5; 
            this.btnCancel.Text = "取消"; 
            this.btnCancel.UseVisualStyleBackColor = false; 
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click); 
            this.btnConfirm.AutoSizeToImage = false; 
            this.btnConfirm.BackColor = Color.Transparent; 
            this.btnConfirm.BackgroundImageDisable = null; 
            this.btnConfirm.BackgroundImageDown = null; 
            this.btnConfirm.BackgroundImageHover = null; 
            this.btnConfirm.ChangeSkin = true; 
            this.btnConfirm.Enabled = false; 
            this.btnConfirm.Location = new System.Drawing.Point(0x6d, 0x75); 
            this.btnConfirm.Name = "btnConfirm"; 
            this.btnConfirm.Size = new Size(0x4b, 0x17); 
            this.btnConfirm.TabIndex = 6; 
            this.btnConfirm.Text = "确定"; 
            this.btnConfirm.UseVisualStyleBackColor = false; 
            this.btnConfirm.Click += new EventHandler(this.btnConfirm_Click); 
            base.AutoScaleDimensions = new SizeF(6f, 13f); 
            base.AutoScaleMode = AutoScaleMode.Font; 
            base.BaseHeight = 0xc2; 
            base.BaseWidth = 0x137; 
            base.CancelButton = this.btnCancel; 
            base.ClientSize = new Size(0x131, 0xa8); 
            base.Controls.Add(this.panel1); 
            base.Controls.Add(this.btnCancel); 
            base.Controls.Add(this.btnConfirm); 
            base.DisplayLocation = new System.Drawing.Point(0x12, 0x2c); 
            base.Icon = (Icon) manager.GetObject("$this.Icon"); 
            base.Name = "DeleteGroupConfirmForm"; 
            base.Padding = new Padding(6, 0x1f, 0x13, 8); 
            base.Text = "系统提示"; 
            base.KeyDown += new KeyEventHandler(this.DeleteGroupConfirmForm_KeyDown); 
            this.panel1.ResumeLayout(false); 
            this.panel1.PerformLayout(); 
            ((ISupportInitialize) this.picError).EndInit(); 
            base.ResumeLayout(false); 
        } 
    } 
}