⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formconfirm.cs

📁 飞信的收发使用csharp进行开发
💻 CS
字号:
namespace Imps.Client.Pc
{
    using Imps.Client.Pc.BizControls;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormConfirm : XIMDialog
    {
        private int _totalContactCount;
        private Button buttonCancel;
        private Button buttonOK;
        private IContainer components;
        private Label label2;
        private Label labelConfirm;
        private Panel panel1;

        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)
        {
            this.labelConfirm.Text = string.Format("您选择了 {0} 位联系人,是否确认现在导入?", this._totalContactCount);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FormConfirm));
            this.buttonOK = new Button();
            this.buttonCancel = new Button();
            this.labelConfirm = new Label();
            this.label2 = new Label();
            this.panel1 = new Panel();
            this.panel1.SuspendLayout();
            base.SuspendLayout();
            this.buttonOK.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.buttonOK.Location = new Point(0x4c, 100);
            this.buttonOK.Name = "buttonOK";
            this.buttonOK.Size = new Size(0x4b, 0x17);
            this.buttonOK.TabIndex = 0;
            this.buttonOK.Text = "确定";
            this.buttonOK.UseVisualStyleBackColor = true;
            this.buttonOK.Click += new EventHandler(this.buttonOK_Click);
            this.buttonCancel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
            this.buttonCancel.DialogResult = DialogResult.Cancel;
            this.buttonCancel.Location = new Point(0x9d, 100);
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.Size = new Size(0x4b, 0x17);
            this.buttonCancel.TabIndex = 1;
            this.buttonCancel.Text = "取消";
            this.buttonCancel.UseVisualStyleBackColor = true;
            this.buttonCancel.Click += new EventHandler(this.buttonCancel_Click);
            this.labelConfirm.AutoSize = true;
            this.labelConfirm.BackColor = Color.Transparent;
            this.labelConfirm.Location = new Point(0x27, 0x12);
            this.labelConfirm.Name = "labelConfirm";
            this.labelConfirm.Size = new Size(0xd3, 13);
            this.labelConfirm.TabIndex = 2;
            this.labelConfirm.Text = "您选择了联系人,是否确认现在导入?";
            this.label2.AutoSize = true;
            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 Point(0x27, 0x2d);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0xf7, 15);
            this.label2.TabIndex = 3;
            this.label2.Text = "对方将以手机短信的方式收到您的添加邀请。";
            this.panel1.BackColor = Color.Transparent;
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.labelConfirm);
            this.panel1.Controls.Add(this.buttonCancel);
            this.panel1.Controls.Add(this.buttonOK);
            this.panel1.Dock = DockStyle.Fill;
            this.panel1.Location = new Point(6, 0x1f);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x133, 0x7e);
            this.panel1.TabIndex = 4;
            base.AcceptButton = this.buttonCancel;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.CancelButton = this.buttonCancel;
            base.ClientSize = new Size(0x14c, 0xa5);
            base.ControlBox = false;
            base.Controls.Add(this.panel1);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MinimizeBox = false;
            base.Name = "FormConfirm";
            base.Padding = new Padding(6, 0x1f, 0x13, 8);
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterParent;
            base.Text = "确认";
            base.Load += new EventHandler(this.FormConfirm_Load);
            base.Controls.SetChildIndex(this.panel1, 0);
            base.Controls.SetChildIndex(base.menubar, 0);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            base.ResumeLayout(false);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -