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

📄 wizardcontrol.cs

📁 Magic Library 1.7,有说明文档
💻 CS
📖 第 1 页 / 共 4 页
字号:
    
        [Category("Wizard")]
		[Description("Font for drawing main title text")]
		public Font TitleFont
		{
		    get { return _fontTitle; }
		    
		    set
		    {
		        _fontTitle = value;
		        _panelTop.Invalidate();
		    }
		}
		
        public void ResetTitleFont()
        {
            TitleFont = new Font("Tahoma", 10, FontStyle.Bold);
        }

        protected bool ShouldSerializeTitleFont()
        {
            return !_fontTitle.Equals(new Font("Tahoma", 10, FontStyle.Bold));
        }
    
        [Category("Wizard")]
        [Description("Font for drawing main sub-title text")]
        public Font SubTitleFont
        {
            get { return _fontSubTitle; }
		    
            set
            {
                _fontSubTitle = value;
                _panelTop.Invalidate();
            }
        }
		
        public void ResetSubTitleFont()
        {
            _fontSubTitle = new Font("Tahoma", 8, FontStyle.Regular);
        }

        protected bool ShouldSerializeSubTitleFont()
        {
            return !_fontSubTitle.Equals(new Font("Tahoma", 8, FontStyle.Regular));
        }

        [Category("Wizard")]
        [Description("Color for drawing main title text")]
        public Color TitleColor
		{
		    get { return _colorTitle; }
		    
		    set
		    {
		        _colorTitle = value;
		        _panelTop.Invalidate();
		    }
		}

		public void ResetTitleColor()
		{
		    TitleColor = base.ForeColor;
		}

        protected bool ShouldSerializeTitleColor()
        {
            return !_colorTitle.Equals(base.ForeColor);
        }
		
        [Category("Wizard")]
        [Description("Determine is a default button should be auto-assigned")]
        [DefaultValue(false)]
        public bool AssignDefaultButton
        {
            get { return _assignDefault; }
            
            set
            {
                if (_assignDefault != value)
                {
                    _assignDefault = value;
                    AutoAssignDefaultButton();
                }
            }
        }

        public void ResetAssignDefaultButton()
        {
            AssignDefaultButton = false;
        }

        [Category("Wizard")]
        [Description("Color for drawing main sub-title text")]
        public Color SubTitleColor
        {
            get { return _colorSubTitle; }
		    
            set
            {
                _colorSubTitle = value;
                _panelTop.Invalidate();
            }
        }

        public void ResetSubTitleColor()
        {
            SubTitleColor = base.ForeColor;
        }

        protected bool ShouldSerializeSubTitleColor()
        {
            return !_colorSubTitle.Equals(base.ForeColor);
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Update button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowUpdateButton
        {
            get { return _showUpdate; }
            
            set 
            { 
                if (_showUpdate != value)
                {
                    _showUpdate = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Update button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableUpdateButton
        {
            get { return _enableUpdate; }
            
            set 
            { 
                if (_enableUpdate != value)
                {
                    _enableUpdate = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Update control button")]
        [DefaultValue("Update")]
        [Localizable(true)]
        public string ButtonUpdateText
        {
            get { return _buttonUpdate.Text; }
            set { _buttonUpdate.Text = value; }
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Cancel button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowCancelButton
        {
            get { return _showCancel; }
            
            set 
            { 
                if (_showCancel != value)
                {
                    _showCancel = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Cancel button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableCancelButton
        {
            get { return _enableCancel; }
            
            set 
            { 
                if (_enableCancel != value)
                {
                    _enableCancel = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Cancel control button")]
        [DefaultValue("Cancel")]
        [Localizable(true)]
        public string ButtonCancelText
        {
            get { return _buttonCancel.Text; }
            set { _buttonCancel.Text = value; }
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Back button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowBackButton
        {
            get { return _showBack; }
            
            set 
            { 
                if (_showBack != value)
                {
                    _showBack = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Back button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableBackButton
        {
            get { return _enableBack; }
            
            set 
            { 
                if (_enableBack != value)
                {
                    _enableBack = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Back control button")]
        [DefaultValue("< Back")]
        [Localizable(true)]
        public string ButtonBackText
        {
            get { return _buttonBack.Text; }
            set { _buttonBack.Text = value; }
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Next button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowNextButton
        {
            get { return _showNext; }
            
            set 
            { 
                if (_showNext != value)
                {
                    _showNext = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Next button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableNextButton
        {
            get { return _enableBack; }
            
            set 
            { 
                if (_enableNext != value)
                {
                    _enableNext = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Next control button")]
        [DefaultValue("Next >")]
        [Localizable(true)]
        public string ButtonNextText
        {
            get { return _buttonNext.Text; }
            set { _buttonNext.Text = value; }
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Finish button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowFinishButton
        {
            get { return _showFinish; }
            
            set 
            { 
                if (_showFinish != value)
                {
                    _showFinish = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Finish button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableFinishButton
        {
            get { return _enableFinish; }
            
            set 
            { 
                if (_enableFinish != value)
                {
                    _enableFinish = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Finish control button")]
        [DefaultValue("Finish")]
        [Localizable(true)]
        public string ButtonFinishText
        {
            get { return _buttonFinish.Text; }
            set { _buttonFinish.Text = value; }
        }
        
        [Category("Control Buttons")]
        [Description("Define visibility of Close button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowCloseButton
        {
            get { return _showClose; }
            
            set 
            { 
                if (_showClose != value)
                {
                    _showClose = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Close button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableCloseButton
        {
            get { return _enableClose; }
            
            set 
            { 
                if (_enableClose != value)
                {
                    _enableClose = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Close control button")]
        [DefaultValue("Close")]
        [Localizable(true)]
        public string ButtonCloseText
        {
            get { return _buttonClose.Text; }
            set { _buttonClose.Text = value; }
        }

        [Category("Control Buttons")]
        [Description("Define visibility of Help button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status ShowHelpButton
        {
            get { return _showHelp; }
            
            set 
            { 
                if (_showHelp != value)
                {
                    _showHelp = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Define selectability of Help button")]
        [DefaultValue(typeof(Status), "Default")]
        public Status EnableHelpButton
        {
            get { return _enableHelp; }
            
            set 
            { 
                if (_enableHelp != value)
                {
                    _enableHelp = value;
                    UpdateControlButtons();
                }
            }
        }

        [Category("Control Buttons")]
        [Description("Modify the text for the Help control button")]
        [DefaultValue("Help")]
        [Localizable(true)]
        public string ButtonHelpText
        {
            get { return _buttonHelp.Text; }
            set { _buttonHelp.Text = value; }
        }

        [Category("Wizard")]
        [Description("Index of currently selected WizardPage")]
        public int SelectedIndex
        {
            get { return _tabControl.SelectedIndex; }
            set { _tabControl.SelectedIndex = value; }
        }
        
        public virtual void OnWizardPageEnter(WizardPage wp)

⌨️ 快捷键说明

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