Source/Wizard/WizardPageCollection.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;

namespace DevComponents.DotNetBar
{
    /// <summary>
    /// Represents the collection of WizardPage objects which determines the flow of the wizard.
    /// </summary>
    public class WizardPageCollection : CollectionBase
    {
        #region Private Variables
		private Wizard m_Parent=null;
        internal bool IgnoreEvents = false;
		#endregion

		#region Internal Implementation
        public WizardPageCollection()
		{
		}
		/// <summary>
		/// Gets the parent this collection is associated with.
		/// </summary>
		[Browsable(false),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		public Wizard Parent
		{
			get {return m_Parent;}
		}

		internal Wizard ParentWizard
		{
            get { return m_Parent; }
            set { m_Parent = value; }
		}

		/// <summary>
		/// Adds new object to the collection.
		/// </summary>
		/// <param name="WizardPage">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(WizardPage WizardPage)
		{
			return List.Add(WizardPage);
		}
		
		/// <summary>
		/// Adds an array of objects to the collection. 
		/// </summary>
		/// <param name="WizardPages">Array of WizardPage objects.</param>
		public void AddRange(WizardPage[] WizardPages)
		{
			foreach(WizardPage WizardPage in WizardPages)
				List.Add(WizardPage);
		}
		
		/// <summary>
		/// Returns reference to the object in collection based on it's index.
		/// </summary>
		public WizardPage this[int index]
		{
后面还有 134 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。