?? provsioncontrolbase.cs
字號:
?namespace Imps.Client.Pc.Provsion2
{
using Imps.Client.Core;
using Imps.Client.Pc;
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
public class ProvsionControlBase : UserControl
{
protected string _cancelMessage;
protected ProvisionWizard _host;
protected ProvsionStage _nextStage;
protected string _tipMessage;
private IContainer components;
public event EventHandler<HttpAppEventArgs> OnMoveNext;
public event EventHandler<TipMessageEventArgs> OnTipMessageChanged;
public ProvsionControlBase()
{
this._nextStage = ProvsionStage.License;
this._cancelMessage = "您確定要退出向導嗎?";
this._tipMessage = string.Empty;
this.InitializeComponent();
}
public ProvsionControlBase(ProvisionWizard 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(sender, e);
}
public virtual bool GetValidData()
{
return false;
}
private void InitializeComponent()
{
this.components = new Container();
base.AutoScaleMode = AutoScaleMode.Font;
}
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 ProvsionStage NextStage
{
get
{
return this._nextStage;
}
}
public virtual string NextStepText
{
get
{
return "下一步";
}
}
public string TipMessage
{
get
{
return this._tipMessage;
}
protected set
{
if (this.OnTipMessageChanged != null)
{
this.OnTipMessageChanged(this, new TipMessageEventArgs(value));
}
this._tipMessage = value;
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -