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

📄 unregisteripidialog.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.IPI.UI
{
    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 UnRegisterIPIDialog : XIMDialog
    {
        private IFrameworkWindow _frmWnd;
        private XButton btnCancel;
        private XButton btnOk;
        private IContainer components;
        private XLabel label1;
        private XLabel label2;
        private XLabel lbConfirm;
        private XLabel lbPass;
        private XLabel lbPromot;
        private XLabel lbWord;
        private PictureBox pbUnRegister;
        private Panel pnlContainer;
        private Panel pnlPage;
        private XTextBox txtPassword;

        public UnRegisterIPIDialog(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()
        {
            this.pnlContainer = new Panel();
            this.label1 = new XLabel();
            this.btnOk = new XButton();
            this.btnCancel = new XButton();
            this.pnlPage = new Panel();
            this.lbConfirm = new XLabel();
            this.lbWord = new XLabel();
            this.lbPass = new XLabel();
            this.txtPassword = new XTextBox();
            this.label2 = new XLabel();
            this.lbPromot = new XLabel();
            this.pbUnRegister = new PictureBox();
            this.pnlContainer.SuspendLayout();
            this.pnlPage.SuspendLayout();
            this.pbUnRegister.BeginInit();
            base.SuspendLayout();
            this.pnlContainer.BackColor = Color.Transparent;
            this.pnlContainer.Controls.Add(this.label1);
            this.pnlContainer.Controls.Add(this.btnOk);
            this.pnlContainer.Controls.Add(this.btnCancel);
            this.pnlContainer.Controls.Add(this.pnlPage);
            this.pnlContainer.Controls.Add(this.pbUnRegister);
            this.pnlContainer.Dock = DockStyle.Fill;
            this.pnlContainer.Location = new System.Drawing.Point(6, 0x1f);
            this.pnlContainer.Name = "pnlContainer";
            this.pnlContainer.set_Padding(new Padding(2));
            this.pnlContainer.Size = new Size(0x1f7, 0x18f);
            this.pnlContainer.TabIndex = 1;
            this.label1.BorderStyle = BorderStyle.Fixed3D;
            this.label1.Location = new System.Drawing.Point(1, 350);
            this.label1.Name = "label1";
            this.label1.Size = new Size(500, 2);
            this.label1.TabIndex = 0x19;
            this.btnOk.DialogResult = DialogResult.OK;
            this.btnOk.Location = new System.Drawing.Point(0x150, 0x163);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new Size(0x4b, 0x19);
            this.btnOk.TabIndex = 3;
            this.btnOk.set_UseVisualStyleBackColor(true);
            this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Location = new System.Drawing.Point(0x1a1, 0x163);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x19);
            this.btnCancel.TabIndex = 4;
            this.btnCancel.set_UseVisualStyleBackColor(true);
            this.pnlPage.Controls.Add(this.lbConfirm);
            this.pnlPage.Controls.Add(this.lbWord);
            this.pnlPage.Controls.Add(this.lbPass);
            this.pnlPage.Controls.Add(this.txtPassword);
            this.pnlPage.Controls.Add(this.label2);
            this.pnlPage.Controls.Add(this.lbPromot);
            this.pnlPage.Location = new System.Drawing.Point(0x84, 5);
            this.pnlPage.Name = "pnlPage";
            this.pnlPage.Size = new Size(360, 340);
            this.pnlPage.TabIndex = 0;
            this.lbConfirm.set_AutoSize(true);
            this.lbConfirm.Location = new System.Drawing.Point(10, 0xd3);
            this.lbConfirm.Name = "lbConfirm";
            this.lbConfirm.Size = new Size(0, 13);
            this.lbConfirm.TabIndex = 0x20;
            this.lbWord.set_AutoSize(true);
            this.lbWord.Location = new System.Drawing.Point(70, 0xf2);
            this.lbWord.Name = "lbWord";
            this.lbWord.Size = new Size(0x13, 13);
            this.lbWord.TabIndex = 0x1f;
            this.lbWord.Text = "码";
            this.lbPass.set_AutoSize(true);
            this.lbPass.Location = new System.Drawing.Point(0x22, 0xf2);
            this.lbPass.Name = "lbPass";
            this.lbPass.Size = new Size(0x13, 13);
            this.lbPass.TabIndex = 30;
            this.lbPass.Text = "密";
            this.txtPassword.BackColor = Color.White;
            this.txtPassword.BorderStyle = BorderStyle.FixedSingle;
            this.txtPassword.Location = new System.Drawing.Point(0x62, 0xee);
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.PasswordChar = '*';
            this.txtPassword.Size = new Size(0xcb, 20);
            this.txtPassword.TabIndex = 0x1b;
            this.label2.BorderStyle = BorderStyle.Fixed3D;
            this.label2.Location = new System.Drawing.Point(0x39, 0xda);
            this.label2.Name = "label2";
            this.label2.Size = new Size(300, 2);
            this.label2.TabIndex = 0x1a;
            this.lbPromot.set_AutoSize(true);
            this.lbPromot.Location = new System.Drawing.Point(0x22, 0x72);
            this.lbPromot.Name = "lbPromot";
            this.lbPromot.Size = new Size(0, 13);
            this.lbPromot.TabIndex = 0;
            this.pbUnRegister.BorderStyle = BorderStyle.FixedSingle;
            this.pbUnRegister.set_ErrorImage(null);
            this.pbUnRegister.set_InitialImage(null);
            this.pbUnRegister.Location = new System.Drawing.Point(6, 5);
            this.pbUnRegister.Name = "pbUnRegister";
            this.pbUnRegister.Size = new Size(120, 340);
            this.pbUnRegister.TabIndex = 0;
            this.pbUnRegister.TabStop = false;
            base.AcceptButton = this.btnOk;
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            base.CancelButton = this.btnCancel;
            base.ClientSize = new Size(0x210, 0x1b6);
            base.Controls.Add(this.pnlContainer);
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.MinimizeBox = false;
            base.Name = "UnRegisterIPIDialog";
            base.set_Padding(new Padding(6, 0x1f, 0x13, 8));
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            base.Text = "UnRegisterIPI";
            this.pnlContainer.ResumeLayout(false);
            this.pnlPage.ResumeLayout(false);
            this.pnlPage.PerformLayout();
            this.pbUnRegister.EndInit();
            base.ResumeLayout(false);
        }

        private void LoadResources()
        {
            this.pbUnRegister.Image = ImpsResources.GetImage("Images.UnRegister.png");
            base.Text = string.Format(StringTable.UnRegister.UnRegisterFormTitle, StringTable.Services.ServiceName_Vodafone);
            this.btnOk.Text = StringTable.UnRegister.btnUnRegister;
            this.btnCancel.Text = StringTable.Common.btnCancel;
            this.lbPromot.Text = string.Format(StringTable.UnRegister.lbPromot, StringTable.Services.ServiceName_Vodafone);
            this.lbConfirm.Text = string.Format(StringTable.UnRegister.lbConfirm, new object[0]);
        }

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

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

⌨️ 快捷键说明

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