亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wizardcontrol.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
// *****************************************************************************
// 
//  (c) Crownwood Consulting Limited 2002 
//  All rights reserved. The software and associated documentation 
//  supplied hereunder are the proprietary information of Crownwood Consulting 
//	Limited, Haxey, North Lincolnshire, England and are supplied subject to 
//	licence terms.
// 
//  Magic Version 1.7 	www.dotnetmagic.com
// *****************************************************************************

using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using System.ComponentModel;
using Crownwood.Magic.Common;
using Crownwood.Magic.Controls;
using Crownwood.Magic.Collections;

namespace Crownwood.Magic.Controls
{
    [ToolboxBitmap(typeof(WizardControl))]
    [DefaultProperty("Profile")]
    [Designer(typeof(WizardControlDesigner))]
    public class WizardControl : UserControl
	{
	    // Define enumerations and structures
	    public enum Status
	    {
	        Default,
	        Yes,
	        No
	    }
	    
	    public enum Profiles
	    {
	        Install,
	        Configure,
	        Controller
	    }
	    
	    // Class wide constants
	    protected const int _panelGap = 10;
	    protected const int _buttonGap = 10;
	    protected static Image _standardPicture;
	
	    // Instance fields
        protected Image _picture;
        protected string _title;
        protected Font _fontTitle;
        protected Font _fontSubTitle;
        protected Color _colorTitle;
        protected Color _colorSubTitle;
        protected Profiles _profile;
        protected bool _assignDefault;
        protected WizardPage _selectedPage;
        protected Status _showUpdate, _enableUpdate;
        protected Status _showCancel, _enableCancel;
        protected Status _showBack, _enableBack;
        protected Status _showNext, _enableNext;
        protected Status _showFinish, _enableFinish;
        protected Status _showClose, _enableClose;
        protected Status _showHelp, _enableHelp;
        protected WizardPageCollection _wizardPages;
	    
	    // Instance designer fields
        protected System.Windows.Forms.Panel _panelTop;
        protected System.Windows.Forms.Panel _panelBottom;
        protected System.Windows.Forms.Button _buttonUpdate;
        protected System.Windows.Forms.Button _buttonCancel;
        protected System.Windows.Forms.Button _buttonBack;
        protected System.Windows.Forms.Button _buttonNext;
        protected System.Windows.Forms.Button _buttonFinish;
        protected System.Windows.Forms.Button _buttonClose;
        protected System.Windows.Forms.Button _buttonHelp;
        protected Crownwood.Magic.Controls.TabControl _tabControl;
		protected System.ComponentModel.Container components = null;

        // Delegate definitions
        public delegate void WizardPageHandler(WizardPage wp, WizardControl wc);

        // Instance events
        public event WizardPageHandler WizardPageEnter;
        public event WizardPageHandler WizardPageLeave;
        public event EventHandler WizardCaptionTitleChanged;
        public event EventHandler SelectionChanged;
        public event EventHandler UpdateClick;
        public event EventHandler CancelClick;
        public event EventHandler FinishClick;
        public event EventHandler CloseClick;
        public event EventHandler HelpClick;
        public event CancelEventHandler NextClick;
        public event CancelEventHandler BackClick;

        static WizardControl()
        {
            // Create a strip of images by loading an embedded bitmap resource
            _standardPicture = ResourceHelper.LoadBitmap(Type.GetType("Crownwood.Magic.Controls.WizardControl"),
                                                         "Crownwood.Magic.Resources.WizardPicture.bmp");
        }

		public WizardControl()
		{
			InitializeComponent();
			
			// No page currently selected
			_selectedPage = null;
			
	        // Hook into tab control events
	        _tabControl.SelectionChanged += new EventHandler(OnTabSelectionChanged);

            // Create our collection of wizard pages
            _wizardPages = new WizardPageCollection();
            
            // Hook into collection events
            _wizardPages.Cleared += new Collections.CollectionClear(OnWizardCleared);
            _wizardPages.Inserted += new Collections.CollectionChange(OnWizardInserted);
            _wizardPages.Removed += new Collections.CollectionChange(OnWizardRemoved);

            // Hook into drawing events
            _panelTop.Resize += new EventHandler(OnRepaintPanels);
            _panelTop.Paint += new PaintEventHandler(OnPaintTopPanel);
            _panelBottom.Resize += new EventHandler(OnRepaintPanels);
            _panelBottom.Paint += new PaintEventHandler(OnPaintBottomPanel);

            // Initialize state
            _showUpdate = _enableUpdate = Status.Default;
            _showCancel = _enableUpdate = Status.Default;
            _showBack = _enableBack = Status.Default;
            _showNext = _enableNext = Status.Default;
            _showFinish = _enableFinish = Status.Default;
            _showClose = _enableClose = Status.Default;
            _showHelp = _enableHelp = Status.Default;
            
            // Default properties
            ResetProfile();
            ResetTitle();
            ResetTitleFont();
            ResetTitleColor();
            ResetSubTitleFont();
            ResetSubTitleColor();
            ResetPicture();
            ResetAssignDefaultButton();
            
            // Position and enable/disable control button state
            UpdateControlButtons();
   		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this._tabControl = new Crownwood.Magic.Controls.TabControl();
            this._panelTop = new System.Windows.Forms.Panel();
            this._panelBottom = new System.Windows.Forms.Panel();
            this._buttonUpdate = new System.Windows.Forms.Button();
            this._buttonBack = new System.Windows.Forms.Button();
            this._buttonNext = new System.Windows.Forms.Button();
            this._buttonCancel = new System.Windows.Forms.Button();
            this._buttonFinish = new System.Windows.Forms.Button();
            this._buttonClose = new System.Windows.Forms.Button();
            this._buttonHelp = new System.Windows.Forms.Button();
            this._panelBottom.SuspendLayout();
            this.SuspendLayout();
            // 
            // _tabControl
            // 
            this._tabControl.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right);
            this._tabControl.Appearance = Crownwood.Magic.Controls.TabControl.VisualAppearance.MultiDocument;
            this._tabControl.IDEPixelBorder = false;
            this._tabControl.Location = new System.Drawing.Point(0, 80);
            this._tabControl.Multiline = true;
            this._tabControl.MultilineFullWidth = true;
            this._tabControl.Name = "_tabControl";
            this._tabControl.ShowArrows = false;
            this._tabControl.ShowClose = false;
            this._tabControl.Size = new System.Drawing.Size(424, 264);
            this._tabControl.TabIndex = 0;
            // 
            // _panelTop
            // 
            this._panelTop.BackColor = System.Drawing.SystemColors.Window;
            this._panelTop.Dock = System.Windows.Forms.DockStyle.Top;
            this._panelTop.Name = "_panelTop";
            this._panelTop.Size = new System.Drawing.Size(424, 80);
            this._panelTop.TabIndex = 1;
            // 
            // _panelBottom
            // 
            this._panelBottom.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                                       this._buttonUpdate,
                                                                                       this._buttonBack,
                                                                                       this._buttonNext,
                                                                                       this._buttonCancel,
                                                                                       this._buttonFinish,
                                                                                       this._buttonClose,
                                                                                       this._buttonHelp});
            this._panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
            this._panelBottom.Location = new System.Drawing.Point(0, 344);
            this._panelBottom.Name = "_panelBottom";
            this._panelBottom.Size = new System.Drawing.Size(424, 48);
            this._panelBottom.TabIndex = 2;
            // 
            // _buttonUpdate
            // 
            this._buttonUpdate.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonUpdate.Location = new System.Drawing.Point(8, 14);
            this._buttonUpdate.Name = "_buttonUpdate";
            this._buttonUpdate.TabIndex = 4;
            this._buttonUpdate.Text = "Update";
            this._buttonUpdate.Click += new System.EventHandler(this.OnButtonUpdate);
            // 
            // _buttonBack
            // 
            this._buttonBack.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonBack.Location = new System.Drawing.Point(56, 14);
            this._buttonBack.Name = "_buttonBack";
            this._buttonBack.TabIndex = 3;
            this._buttonBack.Text = "< Back";
            this._buttonBack.Click += new System.EventHandler(this.OnButtonBack);
            // 
            // _buttonNext
            // 
            this._buttonNext.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonNext.Location = new System.Drawing.Point(120, 14);
            this._buttonNext.Name = "_buttonNext";
            this._buttonNext.TabIndex = 2;
            this._buttonNext.Text = "Next >";
            this._buttonNext.Click += new System.EventHandler(this.OnButtonNext);
            // 
            // _buttonCancel
            // 
            this._buttonCancel.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonCancel.Location = new System.Drawing.Point(184, 14);
            this._buttonCancel.Name = "_buttonCancel";
            this._buttonCancel.TabIndex = 1;
            this._buttonCancel.Text = "Cancel";
            this._buttonCancel.Click += new System.EventHandler(this.OnButtonCancel);
            // 
            // _buttonFinish
            // 
            this._buttonFinish.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonFinish.Location = new System.Drawing.Point(248, 14);
            this._buttonFinish.Name = "_buttonFinish";
            this._buttonFinish.TabIndex = 0;
            this._buttonFinish.Text = "Finish";
            this._buttonFinish.Click += new System.EventHandler(this.OnButtonFinish);
            // 
            // _buttonClose
            // 
            this._buttonClose.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonClose.Location = new System.Drawing.Point(304, 14);
            this._buttonClose.Name = "_buttonClose";
            this._buttonClose.TabIndex = 0;
            this._buttonClose.Text = "Close";
            this._buttonClose.Click += new System.EventHandler(this.OnButtonClose);
            // 
            // _buttonHelp
            // 
            this._buttonHelp.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
            this._buttonHelp.Location = new System.Drawing.Point(360, 14);
            this._buttonHelp.Name = "_buttonHelp";
            this._buttonHelp.TabIndex = 0;
            this._buttonHelp.Text = "Help";
            this._buttonHelp.Click += new System.EventHandler(this.OnButtonHelp);
            // 
            // WizardControl
            // 
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                          this._tabControl,
                                                                          this._panelTop,
                                                                          this._panelBottom});
            this.Name = "WizardControl";
            this.Size = new System.Drawing.Size(424, 392);
            this._panelBottom.ResumeLayout(false);
            this.ResumeLayout(false);

        }
		#endregion
		
        [Category("Wizard")]
        [Description("Access to underlying TabControl instance")]
        public Controls.TabControl TabControl
        {
            get { return _tabControl; }
        }

        [Category("Wizard")]
        [Description("Access to underlying header panel")]
        public Panel HeaderPanel
        {
            get { return _panelTop; }
        }

        [Category("Wizard")]
        [Description("Access to underlying trailer panel")]
        public Panel TrailerPanel
        {
            get { return _panelBottom; }
        }

        [Category("Wizard")]
        [Description("Collection of wizard pages")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public WizardPageCollection WizardPages
		{
		    get { return _wizardPages; }
		}
		
        [Category("Wizard")]
        [Description("Determine default operation of buttons")]
        [DefaultValue(typeof(Profiles), "Configure")]
        public Profiles Profile
        {
            get { return _profile; }
		    
            set 
            {
                if (_profile != value)
                {
                    _profile = value;
		            
                    switch(_profile)
                    {
                        case Profiles.Install:
                        case Profiles.Configure:
                            // Current page selection determines if full page is needed
                            if (_tabControl.SelectedIndex != -1)
                            {
                                // Get the selected wizard page
                                WizardPage wp = _wizardPages[_tabControl.SelectedIndex];
                
                                // Should we be presented in full page?
                                if (wp.FullPage)
                                    EnterFullPage();
                                else
                                {
                                    // Controller profile is not allowed to be outside of FullMode
                                    if (_profile != Profiles.Controller)
                                        LeaveFullPage();
                                }
                            }
                            else
                                LeaveFullPage();
                            
                            _tabControl.HideTabsMode = Magic.Controls.TabControl.HideTabsModes.HideAlways; 
                            break;
                        case Profiles.Controller:
                            // Controller is always full page
                            EnterFullPage();
                                
                            _tabControl.HideTabsMode = Magic.Controls.TabControl.HideTabsModes.ShowAlways;
                            break;
                    }
		            
                    // Position and enable/disable control button state
                    UpdateControlButtons();
                }
            }
        }

        public void ResetProfile()
        {
            Profile = Profiles.Configure;
        }
        
        [Category("Wizard")]
        [Description("Main title text")]
        public Image Picture
        {
            get { return _picture; }
            
            set
            {
                _picture = value;
                _panelTop.Invalidate();
            }
        }

        protected bool ShouldSerializePicture()
        {
            return _picture.Equals(_standardPicture);
        }
        
        public void ResetPicture()
        {
            Picture = _standardPicture;
        }
        
        [Category("Wizard")]
		[Description("Main title text")]
		[Localizable(true)]
		public string Title
		{
		    get { return _title; }
		    
		    set
		    {
		        _title = value;
		        _panelTop.Invalidate();
		    }
		}
		
        public void ResetTitle()
        {
            Title = "Welcome to the Wizard Control";
        }

        protected bool ShouldSerializeTitle()
        {
            return !_title.Equals("Welcome to the Wizard Control");
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区免费| 91精品1区2区| 久久不见久久见免费视频7| 亚洲黄色小说网站| 综合久久一区二区三区| 国产精品乱码妇女bbbb| 国产午夜三级一区二区三| 久久精品国产亚洲高清剧情介绍| 亚洲国产一区二区在线播放| 亚洲小少妇裸体bbw| 午夜婷婷国产麻豆精品| 日欧美一区二区| 日本亚洲视频在线| 久久99国内精品| 国产美女视频91| 成人在线视频首页| 99视频精品全部免费在线| 99国产精品久久久久久久久久久| 99精品视频在线观看免费| 91香蕉国产在线观看软件| 色妹子一区二区| 欧美日韩国产一级| 欧美一级午夜免费电影| 久久久久久免费网| 国产精品色噜噜| 亚洲人成精品久久久久| 亚洲最新视频在线播放| 日韩精品电影在线观看| 韩国v欧美v亚洲v日本v| 粉嫩高潮美女一区二区三区| 99国产欧美另类久久久精品| 欧美日本一区二区| 精品久久久久久无| 欧美激情一区在线| 亚洲精品免费电影| 免费在线观看精品| 国产99精品国产| 日本韩国一区二区三区| 日韩区在线观看| 亚洲国产精品t66y| 亚洲国产毛片aaaaa无费看| 久久精品国产精品亚洲红杏| 国产成人精品免费视频网站| 色欧美乱欧美15图片| 精品国产一区二区三区忘忧草 | 精品国产露脸精彩对白| 国产亚洲一本大道中文在线| 国产精品久线观看视频| 三级欧美韩日大片在线看| 国精品**一区二区三区在线蜜桃| 北条麻妃一区二区三区| 欧美精品高清视频| 中文字幕不卡在线观看| 婷婷久久综合九色国产成人| 成人综合婷婷国产精品久久免费| 欧美色中文字幕| 久久精品视频在线免费观看| 亚洲一区二区中文在线| 国产一区999| 欧美色精品天天在线观看视频| 久久这里只精品最新地址| 亚洲在线视频一区| 国产成人免费av在线| 欧美高清视频www夜色资源网| 国产亚洲福利社区一区| 三级成人在线视频| 91美女在线看| 2020国产精品自拍| 午夜在线成人av| av亚洲精华国产精华精华| 日韩欧美国产综合在线一区二区三区| 成人免费视频在线观看| 国产在线一区二区| 欧美高清视频在线高清观看mv色露露十八 | 亚洲人成网站精品片在线观看| 国内精品国产成人国产三级粉色 | 欧美激情一区二区三区蜜桃视频| 亚洲成在线观看| www.亚洲国产| 26uuu亚洲综合色欧美| 天天综合色天天综合色h| 91毛片在线观看| 日本一区二区三级电影在线观看| 青青国产91久久久久久| 欧美丝袜丝nylons| 亚洲精品中文字幕在线观看| 成人综合婷婷国产精品久久蜜臀 | 蜜臀精品一区二区三区在线观看 | 麻豆精品精品国产自在97香蕉| 91久久国产最好的精华液| 国产精品污www在线观看| 极品销魂美女一区二区三区| 欧美一区二区三区四区久久 | 欧美综合在线视频| 亚洲私人影院在线观看| 成人网男人的天堂| 国产日韩精品视频一区| 国产麻豆精品在线观看| 精品日韩一区二区三区| 麻豆国产欧美日韩综合精品二区| 制服丝袜亚洲色图| 天堂成人免费av电影一区| 欧美亚一区二区| 一区二区三区加勒比av| 91丨九色丨蝌蚪丨老版| 亚洲免费观看高清完整版在线| 成人av在线观| 日韩一区欧美一区| 99国产精品久久久久久久久久久| 中文字幕中文字幕一区二区| 99久久精品一区| 最近中文字幕一区二区三区| 97se亚洲国产综合自在线观| 亚洲欧美偷拍三级| 欧美在线一二三四区| 亚洲图片自拍偷拍| 9191成人精品久久| 六月丁香婷婷久久| 久久久天堂av| 成人福利视频在线| 亚洲精品国产精华液| 欧美午夜精品一区二区蜜桃| 日日夜夜精品视频免费| 日韩免费成人网| 国产精品综合在线视频| 国产精品丝袜91| 91啪亚洲精品| 午夜欧美视频在线观看| 日韩手机在线导航| 国产精品一区2区| 国产精品的网站| 欧美自拍丝袜亚洲| 免费成人在线视频观看| 国产欧美综合在线观看第十页| 成人激情黄色小说| 亚洲综合色噜噜狠狠| 日韩一区二区高清| 国产成人精品aa毛片| 亚洲精品视频在线观看网站| 欧美日韩夫妻久久| 国产乱码一区二区三区| 亚洲欧美成aⅴ人在线观看| 51精品秘密在线观看| 国产乱妇无码大片在线观看| 亚洲色图第一区| 欧美一区午夜精品| 成人午夜在线视频| 日精品一区二区三区| 亚洲国产精品传媒在线观看| 欧美日韩亚洲另类| 国产精品一区2区| 亚洲成人资源网| 国产欧美中文在线| 欧美日韩国产综合视频在线观看 | 精品久久久久久久久久久久包黑料| 国产不卡视频一区| 日韩在线播放一区二区| 日本一区二区动态图| 欧美精品在线一区二区| 粉嫩久久99精品久久久久久夜| 亚洲1区2区3区4区| 国产精品免费网站在线观看| 8x福利精品第一导航| 成人激情动漫在线观看| 久久国产综合精品| 一区二区三区在线播放| 精品国产免费一区二区三区香蕉| 色综合久久综合网97色综合| 国产乱码精品一区二区三区五月婷 | 亚洲视频每日更新| 精品日韩一区二区三区 | 中文av一区特黄| 91精品综合久久久久久| 91看片淫黄大片一级在线观看| 久久99国产乱子伦精品免费| 亚洲一区精品在线| 国产精品久久久久久久久动漫| 制服.丝袜.亚洲.另类.中文| 91免费看片在线观看| 国产成人综合亚洲91猫咪| 日韩精品免费视频人成| 樱桃国产成人精品视频| 国产精品天天看| 精品久久人人做人人爰| 欧美日本一道本在线视频| 99久久婷婷国产精品综合| 韩国理伦片一区二区三区在线播放| 亚洲综合一二区| 亚洲欧洲精品天堂一级 | 九九精品视频在线看| 午夜精品久久久久久不卡8050 | 不卡av免费在线观看| 国产一区二区在线观看免费| 天天综合网天天综合色| 亚洲线精品一区二区三区| 亚洲免费大片在线观看| 国产精品乱人伦| 国产精品嫩草影院com| 中文字幕免费不卡| 国产色综合久久|