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


namespace Imps.Client.Pc 
{ 
    using Imps.Client.Pc.BizControls; 
    using Imps.Client.Pc.Controls; 
    using System; 
    using System.Collections.Generic; 
    using System.ComponentModel; 
    using System.Drawing; 
    using System.Windows.Forms; 
 
    internal class GroupSMSFailedForm : XIMDialog 
    { 
        private XButton btnClose; 
        private IContainer components; 
        private Label lbldes; 
        private ListBox lstFaileds; 
        private Panel panel1; 
 
        internal GroupSMSFailedForm(Queue _stackSMSItems) 
        { 
            this.InitializeComponent(); 
            this.initComponentRegion(); 
            this.lstFaileds.Items.Clear(); 
            while (_stackSMSItems.Count > 0) 
            { 
                SendSMSItem item = _stackSMSItems.Dequeue(); 
                this.lstFaileds.Items.Add(string.Format("【发送失败】  {0}  {1}", item.Contact.DisplayName, item.Content)); 
            } 
        } 
 
        private void btnClose_Click(object sender, EventArgs e) 
        { 
            base.Close(); 
        } 
 
        protected override void Dispose(bool disposing) 
        { 
            if (disposing && (this.components != null)) 
            { 
                this.components.Dispose(); 
            } 
            base.Dispose(disposing); 
        } 
 
        private void GroupSMSFailedForm_KeyDown(object sender, KeyEventArgs e) 
        { 
            if (e.KeyCode == Keys.Escape) 
            { 
                base.Close(); 
            } 
        } 
 
        private void InitializeComponent() 
        { 
            ComponentResourceManager manager = new ComponentResourceManager(typeof(GroupSMSFailedForm)); 
            this.panel1 = new Panel(); 
            this.btnClose = new XButton(); 
            this.lstFaileds = new ListBox(); 
            this.lbldes = new Label(); 
            this.panel1.SuspendLayout(); 
            base.SuspendLayout(); 
            this.panel1.BackColor = Color.Transparent; 
            this.panel1.Controls.Add(this.btnClose); 
            this.panel1.Controls.Add(this.lstFaileds); 
            this.panel1.Controls.Add(this.lbldes); 
            this.panel1.Dock = DockStyle.Fill; 
            this.panel1.Location = new System.Drawing.Point(6, 0x1f); 
            this.panel1.Name = "panel1"; 
            this.panel1.Size = new Size(0x193, 0xc0); 
            this.panel1.TabIndex = 0; 
            this.btnClose.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; 
            this.btnClose.AutoArrangementX = true; 
            this.btnClose.AutoSizeToImage = false; 
            this.btnClose.BackColor = Color.Transparent; 
            this.btnClose.BackgroundImageDisable = null; 
            this.btnClose.BackgroundImageDown = null; 
            this.btnClose.BackgroundImageHover = null; 
            this.btnClose.ChangeSkin = true; 
            this.btnClose.Location = new System.Drawing.Point(0x13a, 0xa4); 
            this.btnClose.Name = "btnClose"; 
            this.btnClose.Size = new Size(0x4c, 0x19); 
            this.btnClose.TabIndex = 4; 
            this.btnClose.Text = "关闭"; 
            this.btnClose.UseVisualStyleBackColor = false; 
            this.btnClose.Click += new EventHandler(this.btnClose_Click); 
            this.lstFaileds.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; 
            this.lstFaileds.FormattingEnabled = true; 
            this.lstFaileds.Items.AddRange(new object[] { "【发送失败】  FMJ  我也想学车 呵呵", "【发送失败】  FMJ  我也想学车 呵呵", "【发送失败】  FMJ  我也想学车 呵呵", "【发送失败】  FMJ  我也想学车 呵呵", "【发送失败】  FMJ  我也想学车 呵呵", "【发送失败】  FMJ  我也想学车 呵呵..." }); 
            this.lstFaileds.Location = new System.Drawing.Point(8, 0x17); 
            this.lstFaileds.Name = "lstFaileds"; 
            this.lstFaileds.ScrollAlwaysVisible = true; 
            this.lstFaileds.Size = new Size(0x17e, 0x86); 
            this.lstFaileds.TabIndex = 1; 
            this.lbldes.AutoSize = true; 
            this.lbldes.Location = new System.Drawing.Point(5, 5); 
            this.lbldes.Name = "lbldes"; 
            this.lbldes.Size = new Size(0x4f, 13); 
            this.lbldes.TabIndex = 0; 
            this.lbldes.Text = "短信发送详情"; 
            base.AutoScaleDimensions = new SizeF(6f, 13f); 
            base.AutoScaleMode = AutoScaleMode.Font; 
            base.BaseHeight = 0x101; 
            base.BaseWidth = 0x1b2; 
            base.ClientSize = new Size(0x1ac, 0xe7); 
            base.Controls.Add(this.panel1); 
            base.DisplayLocation = new System.Drawing.Point(0x12, 0x26); 
            base.Icon = (Icon) manager.GetObject("$this.Icon"); 
            base.KeyPreview = true; 
            base.Name = "GroupSMSFailedForm"; 
            base.Padding = new Padding(6, 0x1f, 0x13, 8); 
            base.StartPosition = FormStartPosition.Manual; 
            base.Text = "短信发送失败"; 
            base.KeyDown += new KeyEventHandler(this.GroupSMSFailedForm_KeyDown); 
            this.panel1.ResumeLayout(false); 
            this.panel1.PerformLayout(); 
            base.ResumeLayout(false); 
        } 
 
        protected override void OnFormClosed(FormClosedEventArgs e) 
        { 
            base.OnFormClosed(e); 
        } 
 
        protected override void OnFormClosing(FormClosingEventArgs e) 
        { 
            base.Hide(); 
            e.Cancel = true; 
        } 
    } 
}