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

📄 unregisterdialog.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.Provsion2
{
    using Imps.Client;
    using Imps.Client.Core;
    using Imps.Client.Pc;
    using Imps.Client.Pc.BizControls;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Pc.Utils;
    using Imps.Client.Resource;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class UnRegisterDialog : XIMDialog
    {
        private IFrameworkWindow _frmWnd;
        private XButton btnCancel;
        private XButton btnOk;
        private IContainer components;
        private Label label1;
        private Label label2;
        private Label label3;
        private PictureBox pbUnRegister;
        private Panel pnlContainer;
        private XTextBox txtPassword;

        public UnRegisterDialog() : this(null)
        {
        }

        public UnRegisterDialog(IFrameworkWindow wnd)
        {
            this._frmWnd = wnd;
            base.DialogResult = DialogResult.No;
            this.InitializeComponent();
            this.LoadResources();
        }

        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(UnRegisterDialog));
            this.txtPassword = new XTextBox();
            this.btnCancel = new XButton();
            this.btnOk = new XButton();
            this.pnlContainer = new Panel();
            this.label3 = new Label();
            this.label2 = new Label();
            this.label1 = new Label();
            this.pbUnRegister = new PictureBox();
            this.pnlContainer.SuspendLayout();
            this.pbUnRegister.BeginInit();
            base.SuspendLayout();
            this.txtPassword.BackColor = Color.White;
            this.txtPassword.BorderStyle = BorderStyle.FixedSingle;
            this.txtPassword.EmptyTextTip = "";
            this.txtPassword.EmptyTextTipColor = Color.DarkGray;
            this.txtPassword.Location = new System.Drawing.Point(0x94, 0x47);
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.Size = new Size(0x66, 20);
            this.txtPassword.TabIndex = 0x1b;
            this.txtPassword.set_UseSystemPasswordChar(true);
            this.btnCancel.AutoArrangementX = true;
            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(0xd3, 0x7d);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x19);
            this.btnCancel.TabIndex = 4;
            this.btnCancel.set_UseVisualStyleBackColor(false);
            this.btnOk.AutoArrangementX = true;
            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(130, 0x7d);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new Size(0x4b, 0x19);
            this.btnOk.TabIndex = 3;
            this.btnOk.set_UseVisualStyleBackColor(false);
            this.pnlContainer.BackColor = Color.Transparent;
            this.pnlContainer.Controls.Add(this.label3);
            this.pnlContainer.Controls.Add(this.label2);
            this.pnlContainer.Controls.Add(this.label1);
            this.pnlContainer.Controls.Add(this.pbUnRegister);
            this.pnlContainer.Controls.Add(this.txtPassword);
            this.pnlContainer.Location = new System.Drawing.Point(12, 12);
            this.pnlContainer.Name = "pnlContainer";
            this.pnlContainer.Size = new Size(0x112, 0x6b);
            this.pnlContainer.TabIndex = 0;
            this.label3.set_AutoSize(true);
            this.label3.Location = new System.Drawing.Point(0x63, 0x49);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x2b, 13);
            this.label3.TabIndex = 0x1f;
            this.label3.Text = "密码:";
            this.label2.set_AutoSize(true);
            this.label2.Location = new System.Drawing.Point(0x63, 0x2e);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x8b, 13);
            this.label2.TabIndex = 30;
            this.label2.Text = "请输入飞信密码进行注销";
            this.label1.set_AutoSize(true);
            this.label1.Location = new System.Drawing.Point(0x63, 0x12);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x97, 13);
            this.label1.TabIndex = 0x1d;
            this.label1.Text = "您确定要注销飞信服务吗?";
            this.pbUnRegister.Location = new System.Drawing.Point(0x13, 20);
            this.pbUnRegister.Name = "pbUnRegister";
            this.pbUnRegister.Size = new Size(0x40, 0x40);
            this.pbUnRegister.TabIndex = 0x1c;
            this.pbUnRegister.TabStop = false;
            base.AcceptButton = this.btnOk;
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            base.BaseHeight = 0xe0;
            base.BaseWidth = 0x124;
            base.CancelButton = this.btnCancel;
            base.ClientSize = new Size(0x11e, 0xc0);
            base.Controls.Add(this.pnlContainer);
            base.Controls.Add(this.btnOk);
            base.Controls.Add(this.btnCancel);
            base.DisplayLocation = new System.Drawing.Point(0x12, 0x26);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MinimizeBox = false;
            base.Name = "UnRegisterDialog";
            base.set_Padding(new Padding(1, 0x16, 13, 4));
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            base.add_Shown(new EventHandler(this.UnRegisterDialog_Shown));
            this.pnlContainer.ResumeLayout(false);
            this.pnlContainer.PerformLayout();
            this.pbUnRegister.EndInit();
            base.ResumeLayout(false);
        }

        private void LoadResources()
        {
            this.pbUnRegister.Image = ImpsResources.GetImage("Images.warning.png");
            base.Text = string.Format(StringTable.UnRegister.UnRegisterFormTitle, AppDictionary.ShortEnglishName);
            this.btnOk.Text = StringTable.UnRegister.btnUnRegister;
            this.btnCancel.Text = StringTable.Common.btnCancel;
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            if (base.DialogResult == DialogResult.OK)
            {
                string password = this.txtPassword.Text.Trim();
                if (string.IsNullOrEmpty(password))
                {
                    BalloonHelper.ShowBallon(this.txtPassword, StringTable.UnRegister.Msg_UnRegister_NoPassword, StringTable.Common.Notice, 1, 0x5dc);
                    this.txtPassword.Focus();
                    e.Cancel = true;
                }
                else if (FuncLimitedSetting.SSIEncryptLoginLimited)
                {
                    if (this.User.Password != password)
                    {
                        BalloonHelper.ShowBallon(this.txtPassword, StringTable.UnRegister.Msg_UnRegister_WrongPassword, StringTable.Common.Error, 3, 0x5dc);
                        this.txtPassword.SelectAll();
                        this.txtPassword.Focus();
                        e.Cancel = true;
                    }
                }
                else if (!this.User.IsPasswordCorrect(password))
                {
                    BalloonHelper.ShowBallon(this.txtPassword, StringTable.UnRegister.Msg_UnRegister_WrongPassword, StringTable.Common.Error, 3, 0x5dc);
                    this.txtPassword.SelectAll();
                    this.txtPassword.Focus();
                    e.Cancel = true;
                }
            }
        }

        private void UnRegisterDialog_Shown(object sender, EventArgs e)
        {
            this.txtPassword.Focus();
        }

        public Imps.Client.Core.User User
        {
            get
            {
                return this._frmWnd.AccountManager.CurrentUser;
            }
        }
    }
}

⌨️ 快捷键说明

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