📄 steppagebase.cs
字号:
namespace Imps.Client.Pc.Password
{
using Imps.Client.Core;
using Imps.Client.Core.Password;
using Imps.Client.Pc;
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
public class StepPageBase : UserControl
{
protected string _cancelMessage;
protected SetPasswordWizard _host;
protected PasswordStage _nextStage;
protected string _tipMessage;
private IContainer components;
public event EventHandler<HttpAppEventArgs> OnMoveNext;
public event EventHandler<TipMessageEventArgs> OnTipMessageChanged;
public StepPageBase()
{
this._nextStage = PasswordStage.MobilePhone;
this._cancelMessage = "您确定要退出向导吗?";
this._tipMessage = string.Empty;
this.InitializeComponent();
}
public StepPageBase(SetPasswordWizard host) : this()
{
this._host = host;
}
public virtual void DetachEventHandler()
{
}
protected virtual void DisableAllControls()
{
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
protected void FireMoveNextEvent(object sender, HttpAppEventArgs e)
{
this.OnMoveNext.Invoke(sender, e);
}
public virtual bool GetValidData()
{
return false;
}
private void InitializeComponent()
{
this.components = new Container();
base.set_AutoScaleMode(1);
}
public virtual void MoveToNextStage()
{
}
protected virtual void RestoreAllControlsStatus()
{
}
public virtual bool CanCancel
{
get
{
return true;
}
}
public virtual string CancelConfirmMsg
{
get
{
return this._cancelMessage;
}
set
{
this._cancelMessage = value;
}
}
public virtual bool CanMoveNext
{
get
{
return true;
}
}
public virtual bool CanMovePrivious
{
get
{
return true;
}
}
public virtual string ErrorMsg
{
get
{
return string.Empty;
}
}
public virtual bool IsValid
{
get
{
return false;
}
}
public virtual PasswordStage NextStage
{
get
{
return this._nextStage;
}
}
public virtual string NextStepText
{
get
{
return "下一步(&N)";
}
}
public string TipMessage
{
get
{
return this._tipMessage;
}
protected set
{
if (this.OnTipMessageChanged != null)
{
this.OnTipMessageChanged.Invoke(this, new TipMessageEventArgs(value));
}
this._tipMessage = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -