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

📄 eraseaccountform.cs

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

    public class EraseAccountForm : XIMDialog
    {
        private XButton btnCancel;
        private XButton btnOk;
        public CheckBox CkCaches;
        public CheckBox CkChatHistory;
        public CheckBox CkContactInfo;
        private IContainer components;
        private XLabel lbConfirm;
        private Panel pnlChks;
        private Panel pnlContainer;
        public RadioButton RbAllMaterials;
        public RadioButton RbCurrentAccountOnly;
        public RadioButton RbDetailOption;

        public EraseAccountForm(string id)
        {
            this.InitializeComponent();
            this.LoadResource(id);
        }

        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(EraseAccountForm));
            this.lbConfirm = new XLabel();
            this.CkChatHistory = new CheckBox();
            this.CkContactInfo = new CheckBox();
            this.CkCaches = new CheckBox();
            this.RbAllMaterials = new RadioButton();
            this.RbCurrentAccountOnly = new RadioButton();
            this.RbDetailOption = new RadioButton();
            this.btnOk = new XButton();
            this.btnCancel = new XButton();
            this.pnlChks = new Panel();
            this.pnlContainer = new Panel();
            this.pnlChks.SuspendLayout();
            base.SuspendLayout();
            base.menubar.Location = new Point(3, 0x17);
            this.lbConfirm.AutoSize = true;
            this.lbConfirm.BackColor = Color.Transparent;
            this.lbConfirm.Location = new Point(10, 20);
            this.lbConfirm.Name = "lbConfirm";
            this.lbConfirm.Size = new Size(0x3b, 12);
            this.lbConfirm.TabIndex = 1;
            this.lbConfirm.Text = "LbConfirm";
            this.CkChatHistory.AutoSize = true;
            this.CkChatHistory.BackColor = Color.Transparent;
            this.CkChatHistory.Enabled = false;
            this.CkChatHistory.Location = new Point(0x2d, 0x70);
            this.CkChatHistory.Name = "CkChatHistory";
            this.CkChatHistory.Size = new Size(0x66, 0x10);
            this.CkChatHistory.TabIndex = 3;
            this.CkChatHistory.Text = "CkChatHistory";
            this.CkChatHistory.UseVisualStyleBackColor = false;
            this.CkContactInfo.AutoSize = true;
            this.CkContactInfo.BackColor = Color.Transparent;
            this.CkContactInfo.Enabled = false;
            this.CkContactInfo.Location = new Point(0x2d, 0x85);
            this.CkContactInfo.Name = "CkContactInfo";
            this.CkContactInfo.Size = new Size(0x66, 0x10);
            this.CkContactInfo.TabIndex = 4;
            this.CkContactInfo.Text = "CkContactInfo";
            this.CkContactInfo.UseVisualStyleBackColor = false;
            this.CkCaches.AutoSize = true;
            this.CkCaches.BackColor = Color.Transparent;
            this.CkCaches.Enabled = false;
            this.CkCaches.Location = new Point(0x2d, 0x99);
            this.CkCaches.Name = "CkCaches";
            this.CkCaches.Size = new Size(0x48, 0x10);
            this.CkCaches.TabIndex = 5;
            this.CkCaches.Text = "CkCaches";
            this.CkCaches.UseVisualStyleBackColor = false;
            this.RbAllMaterials.AutoSize = true;
            this.RbAllMaterials.BackColor = Color.Transparent;
            this.RbAllMaterials.Checked = true;
            this.RbAllMaterials.Location = new Point(0x12, 6);
            this.RbAllMaterials.Name = "RbAllMaterials";
            this.RbAllMaterials.Size = new Size(0x6b, 0x10);
            this.RbAllMaterials.TabIndex = 0;
            this.RbAllMaterials.TabStop = true;
            this.RbAllMaterials.Text = "RbAllMaterials";
            this.RbAllMaterials.UseVisualStyleBackColor = false;
            this.RbCurrentAccountOnly.AutoSize = true;
            this.RbCurrentAccountOnly.BackColor = Color.Transparent;
            this.RbCurrentAccountOnly.Location = new Point(0x12, 0x1b);
            this.RbCurrentAccountOnly.Name = "RbCurrentAccountOnly";
            this.RbCurrentAccountOnly.Size = new Size(0x8f, 0x10);
            this.RbCurrentAccountOnly.TabIndex = 1;
            this.RbCurrentAccountOnly.Text = "RbCurrentAccountOnly";
            this.RbCurrentAccountOnly.UseVisualStyleBackColor = false;
            this.RbDetailOption.AutoSize = true;
            this.RbDetailOption.BackColor = Color.Transparent;
            this.RbDetailOption.Location = new Point(0x12, 0x30);
            this.RbDetailOption.Name = "RbDetailOption";
            this.RbDetailOption.Size = new Size(0x6b, 0x10);
            this.RbDetailOption.TabIndex = 2;
            this.RbDetailOption.Text = "RbDetailOption";
            this.RbDetailOption.UseVisualStyleBackColor = false;
            this.RbDetailOption.CheckedChanged += new EventHandler(this.RbDetailOption_CheckedChanged);
            this.btnOk.DialogResult = DialogResult.OK;
            this.btnOk.Location = new Point(0xc2, 0xc5);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new Size(0x4b, 0x15);
            this.btnOk.TabIndex = 6;
            this.btnOk.UseVisualStyleBackColor = true;
            this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Location = new Point(0x114, 0xc5);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x15);
            this.btnCancel.TabIndex = 7;
            this.btnCancel.UseVisualStyleBackColor = true;
            this.pnlChks.BackColor = Color.Transparent;
            this.pnlChks.Controls.Add(this.RbAllMaterials);
            this.pnlChks.Controls.Add(this.RbCurrentAccountOnly);
            this.pnlChks.Controls.Add(this.RbDetailOption);
            this.pnlChks.Location = new Point(8, 0x39);
            this.pnlChks.Name = "pnlChks";
            this.pnlChks.Size = new Size(0x15a, 0x45);
            this.pnlChks.TabIndex = 2;
            this.pnlContainer.BackColor = Color.Transparent;
            this.pnlContainer.Dock = DockStyle.Fill;
            this.pnlContainer.Location = new Point(3, 3);
            this.pnlContainer.Name = "pnlContainer";
            this.pnlContainer.Padding = new Padding(3);
            this.pnlContainer.Size = new Size(0x18a, 0xf4);
            this.pnlContainer.TabIndex = 0;
            base.AcceptButton = this.btnOk;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.CancelButton = this.btnCancel;
            base.ClientSize = new Size(400, 250);
            base.Controls.Add(this.pnlChks);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOk);
            base.Controls.Add(this.CkCaches);
            base.Controls.Add(this.CkContactInfo);
            base.Controls.Add(this.CkChatHistory);
            base.Controls.Add(this.lbConfirm);
            base.Controls.Add(this.pnlContainer);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MinimizeBox = false;
            base.Name = "EraseAccountForm";
            base.Padding = new Padding(3);
            base.StartPosition = FormStartPosition.CenterParent;
            base.Text = "删除我的信息";
            base.Controls.SetChildIndex(this.pnlContainer, 0);
            base.Controls.SetChildIndex(this.lbConfirm, 0);
            base.Controls.SetChildIndex(this.CkChatHistory, 0);
            base.Controls.SetChildIndex(this.CkContactInfo, 0);
            base.Controls.SetChildIndex(this.CkCaches, 0);
            base.Controls.SetChildIndex(this.btnOk, 0);
            base.Controls.SetChildIndex(this.btnCancel, 0);
            base.Controls.SetChildIndex(this.pnlChks, 0);
            base.Controls.SetChildIndex(base.menubar, 0);
            this.pnlChks.ResumeLayout(false);
            this.pnlChks.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void LoadResource(string id)
        {
            this.lbConfirm.Text = string.Format(StringTable.AccountOperations.LbConfirm, id);
            this.RbAllMaterials.Text = StringTable.AccountOperations.RbAllMaterials;
            this.RbCurrentAccountOnly.Text = StringTable.AccountOperations.RbCurrentAccountOnly;
            this.RbDetailOption.Text = StringTable.AccountOperations.RbDetailOption;
            this.CkChatHistory.Text = StringTable.AccountOperations.CkChatHistory;
            this.CkContactInfo.Text = StringTable.AccountOperations.CkContactInfo;
            this.CkCaches.Text = StringTable.AccountOperations.CkCaches;
            this.btnOk.Text = StringTable.Common.TitleConfirm;
            this.btnCancel.Text = StringTable.Common.btnCancel;
            base.Icon = ImpsIcons.Logo;
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.pnlChks.Top = this.lbConfirm.Bottom + (((this.CkChatHistory.Top - this.lbConfirm.Bottom) - this.pnlChks.Height) / 2);
        }

        private void RbDetailOption_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton button = sender as RadioButton;
            this.CkChatHistory.Enabled = button.Checked;
            this.CkContactInfo.Enabled = button.Checked;
            this.CkCaches.Enabled = button.Checked;
        }
    }
}

⌨️ 快捷键说明

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