?? unregisteripidialog.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();
((ISupportInitialize) 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 Point(6, 0x1f);
this.pnlContainer.Name = "pnlContainer";
this.pnlContainer.Padding = new Padding(2);
this.pnlContainer.Size = new Size(0x1f7, 0x18f);
this.pnlContainer.TabIndex = 1;
this.label1.BorderStyle = BorderStyle.Fixed3D;
this.label1.Location = new 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 Point(0x150, 0x163);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new Size(0x4b, 0x19);
this.btnOk.TabIndex = 3;
this.btnOk.UseVisualStyleBackColor = true;
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Location = new Point(0x1a1, 0x163);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(0x4b, 0x19);
this.btnCancel.TabIndex = 4;
this.btnCancel.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 Point(0x84, 5);
this.pnlPage.Name = "pnlPage";
this.pnlPage.Size = new Size(360, 340);
this.pnlPage.TabIndex = 0;
this.lbConfirm.AutoSize = true;
this.lbConfirm.Location = new Point(10, 0xd3);
this.lbConfirm.Name = "lbConfirm";
this.lbConfirm.Size = new Size(0, 13);
this.lbConfirm.TabIndex = 0x20;
this.lbWord.AutoSize = true;
this.lbWord.Location = new Point(70, 0xf2);
this.lbWord.Name = "lbWord";
this.lbWord.Size = new Size(0x13, 13);
this.lbWord.TabIndex = 0x1f;
this.lbWord.Text = "碼";
this.lbPass.AutoSize = true;
this.lbPass.Location = new 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 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 Point(0x39, 0xda);
this.label2.Name = "label2";
this.label2.Size = new Size(300, 2);
this.label2.TabIndex = 0x1a;
this.lbPromot.AutoSize = true;
this.lbPromot.Location = new 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.ErrorImage = null;
this.pbUnRegister.InitialImage = null;
this.pbUnRegister.Location = new 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.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
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.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();
((ISupportInitialize) 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 str = this.txtPassword.Text.Trim();
if (string.IsNullOrEmpty(str))
{
BalloonHelper.ShowBallon(this.txtPassword, StringTable.UnRegister.Msg_UnRegister_NoPassword, StringTable.Common.Notice, ToolTipIcon.Info, 0x5dc);
this.txtPassword.Focus();
e.Cancel = true;
}
else if (this.User.Password != str)
{
BalloonHelper.ShowBallon(this.txtPassword, StringTable.UnRegister.Msg_UnRegister_WrongPassword, StringTable.Common.Error, ToolTipIcon.Error, 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 + -