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

📄 provsioncontrolbase.cs

📁 破解的飞信源代码
💻 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.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 ProvsionStage 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 + -