📄 eraseaccountform.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();
this.pnlContainer.SuspendLayout();
base.SuspendLayout();
this.lbConfirm.set_AutoSize(true);
this.lbConfirm.BackColor = Color.Transparent;
this.lbConfirm.BorderColor = Color.Empty;
this.lbConfirm.ButtonBorderStyle = ButtonBorderStyle.None;
this.lbConfirm.Location = new System.Drawing.Point(6, 0x13);
this.lbConfirm.Name = "lbConfirm";
this.lbConfirm.Size = new Size(0x36, 13);
this.lbConfirm.TabIndex = 1;
this.lbConfirm.Text = "LbConfirm";
this.CkChatHistory.set_AutoSize(true);
this.CkChatHistory.BackColor = Color.Transparent;
this.CkChatHistory.Enabled = false;
this.CkChatHistory.Location = new System.Drawing.Point(0x29, 0x81);
this.CkChatHistory.Name = "CkChatHistory";
this.CkChatHistory.Size = new Size(0x5d, 0x11);
this.CkChatHistory.TabIndex = 3;
this.CkChatHistory.Text = "CkChatHistory";
this.CkChatHistory.set_UseVisualStyleBackColor(false);
this.CkContactInfo.set_AutoSize(true);
this.CkContactInfo.BackColor = Color.Transparent;
this.CkContactInfo.Enabled = false;
this.CkContactInfo.Location = new System.Drawing.Point(0x29, 0x98);
this.CkContactInfo.Name = "CkContactInfo";
this.CkContactInfo.Size = new Size(0x5e, 0x11);
this.CkContactInfo.TabIndex = 4;
this.CkContactInfo.Text = "CkContactInfo";
this.CkContactInfo.set_UseVisualStyleBackColor(false);
this.CkCaches.set_AutoSize(true);
this.CkCaches.BackColor = Color.Transparent;
this.CkCaches.Enabled = false;
this.CkCaches.Location = new System.Drawing.Point(0x29, 0xaf);
this.CkCaches.Name = "CkCaches";
this.CkCaches.Size = new Size(0x4b, 0x11);
this.CkCaches.TabIndex = 5;
this.CkCaches.Text = "CkCaches";
this.CkCaches.set_UseVisualStyleBackColor(false);
this.RbAllMaterials.set_AutoSize(true);
this.RbAllMaterials.BackColor = Color.Transparent;
this.RbAllMaterials.Checked = true;
this.RbAllMaterials.Location = new System.Drawing.Point(0x12, 7);
this.RbAllMaterials.Name = "RbAllMaterials";
this.RbAllMaterials.Size = new Size(0x5c, 0x11);
this.RbAllMaterials.TabIndex = 0;
this.RbAllMaterials.TabStop = true;
this.RbAllMaterials.Text = "RbAllMaterials";
this.RbAllMaterials.set_UseVisualStyleBackColor(false);
this.RbCurrentAccountOnly.set_AutoSize(true);
this.RbCurrentAccountOnly.BackColor = Color.Transparent;
this.RbCurrentAccountOnly.Location = new System.Drawing.Point(0x12, 0x1d);
this.RbCurrentAccountOnly.Name = "RbCurrentAccountOnly";
this.RbCurrentAccountOnly.Size = new Size(0x86, 0x11);
this.RbCurrentAccountOnly.TabIndex = 1;
this.RbCurrentAccountOnly.Text = "RbCurrentAccountOnly";
this.RbCurrentAccountOnly.set_UseVisualStyleBackColor(false);
this.RbDetailOption.set_AutoSize(true);
this.RbDetailOption.BackColor = Color.Transparent;
this.RbDetailOption.Location = new System.Drawing.Point(0x12, 0x34);
this.RbDetailOption.Name = "RbDetailOption";
this.RbDetailOption.Size = new Size(0x61, 0x11);
this.RbDetailOption.TabIndex = 2;
this.RbDetailOption.Text = "RbDetailOption";
this.RbDetailOption.set_UseVisualStyleBackColor(false);
this.RbDetailOption.CheckedChanged += new EventHandler(this.RbDetailOption_CheckedChanged);
this.btnOk.AutoSizeToImage = false;
this.btnOk.BackColor = Color.Transparent;
this.btnOk.BackgroundImageDisable = null;
this.btnOk.BackgroundImageDown = null;
this.btnOk.BackgroundImageHover = null;
this.btnOk.ChangeSkin = true;
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Location = new System.Drawing.Point(0xc4, 0xe2);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new Size(0x4b, 0x17);
this.btnOk.TabIndex = 6;
this.btnOk.set_UseVisualStyleBackColor(false);
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(0x116, 0xe2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(0x4b, 0x17);
this.btnCancel.TabIndex = 7;
this.btnCancel.set_UseVisualStyleBackColor(false);
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 System.Drawing.Point(4, 0x3b);
this.pnlChks.Name = "pnlChks";
this.pnlChks.Size = new Size(0x15a, 0x4b);
this.pnlChks.TabIndex = 2;
this.pnlContainer.BackColor = Color.Transparent;
this.pnlContainer.Controls.Add(this.lbConfirm);
this.pnlContainer.Controls.Add(this.CkChatHistory);
this.pnlContainer.Controls.Add(this.CkContactInfo);
this.pnlContainer.Controls.Add(this.CkCaches);
this.pnlContainer.Controls.Add(this.pnlChks);
this.pnlContainer.Location = new System.Drawing.Point(3, 3);
this.pnlContainer.Name = "pnlContainer";
this.pnlContainer.set_Padding(new Padding(3));
this.pnlContainer.Size = new Size(0x16a, 0xd9);
this.pnlContainer.TabIndex = 0;
base.AcceptButton = this.btnOk;
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.CancelButton = this.btnCancel;
base.ClientSize = new Size(0x188, 0x111);
base.Controls.Add(this.pnlContainer);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.btnOk);
base.DisplayLocation = new System.Drawing.Point(0x12, 0x26);
base.DisplaySize = new Size(0x17f, 0x111);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.MinimizeBox = false;
base.Name = "EraseAccountForm";
base.set_Padding(new Padding(3));
base.StartPosition = FormStartPosition.CenterParent;
base.Text = "删除我的信息";
this.pnlChks.ResumeLayout(false);
this.pnlChks.PerformLayout();
this.pnlContainer.ResumeLayout(false);
this.pnlContainer.PerformLayout();
base.ResumeLayout(false);
}
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 + -