Exemplo n.º 1
0
 /// <summary>
 /// Removes the given page from the collection
 /// </summary>
 /// <param name="value">Page to remove</param>
 public void Remove(WizardPage value)
 {
     //Remove the item
     List.Remove(value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a new page at a particular position in the Collection
 /// </summary>
 /// <param name="index">Position</param>
 /// <param name="value">Page to be added</param>
 public void Insert(int index, WizardPage value)
 {
     List.Insert(index, value);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Adds a WizardPage into the Collection
        /// </summary>
        /// <param name="value">The page to add</param>
        /// <returns></returns>
        public int Add(WizardPage value)
        {
            int result = List.Add(value);

            return(result);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Finds the position of the page in the colleciton
 /// </summary>
 /// <param name="value">Page to find position of</param>
 /// <returns>Index of Page in collection</returns>
 public int IndexOf(WizardPage value)
 {
     return(List.IndexOf(value));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Detects if a given Page is in the Collection
 /// </summary>
 /// <param name="value">Page to find</param>
 /// <returns></returns>
 public bool Contains(WizardPage value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }