Ejemplo n.º 1
0
 protected void OnHelpRequested(abstract_Element thisElement)
 {
     if (Help_Requested != null)
     {
         Help_Requested(thisElement);
     }
 }
Ejemplo n.º 2
0
        /// <summary> Remove an existing element from this collection. </summary>
        /// <param name="Element"> Element to remove from this collection. </param>
        /// <exception cref="ApplicationException"> Throws a <see cref="ApplicationException"/> if the specified
        /// <see cref="abstract_Element"/> object to remove is not in this collection. </exception>
        public void Remove(abstract_Element Element)
        {
            // Check to see if this element exists in this collection
            if (!Contains(Element))
            {
                throw new ApplicationException("The specified element does not exist in this collection.");
            }

            // Remove the element which does exist
            List.Remove(Element);
        }
Ejemplo n.º 3
0
        /// <summary> Add a new element to this collection. </summary>
        /// <param name="Element"> abstract_Element object for this new element </param>
        /// <returns> The index for this new element </returns>
        public int Add(abstract_Element Element)
        {
            if (Element != null)
            {
                // Add the element to the list and keep the index
                int returnVal = List.Add(Element);

                // Return the index
                return(returnVal);
            }
            else
            {
                return(-1);
            }
        }
Ejemplo n.º 4
0
 private void subElement_Help_Requested(abstract_Element thisElement)
 {
     base.OnHelpRequested(thisElement);
 }
Ejemplo n.º 5
0
 void titleElement_Data_Changed(abstract_Element thisElement)
 {
     base.OnDataChanged();
 }
Ejemplo n.º 6
0
 public void Insert(int index, abstract_Element Element)
 {
     List.Insert(index, Element);
 }
Ejemplo n.º 7
0
 public int IndexOf(abstract_Element Element)
 {
     return(List.IndexOf(Element));
 }
Ejemplo n.º 8
0
 /// <summary> Check to see if a element currently exists in this collection.  </summary>
 /// <param name="Element"> Element to check for existence in this collection. </param>
 /// <returns>TRUE if the provided element is already part of this Collection </returns>
 public bool Contains(abstract_Element Element)
 {
     return(List.Contains(Element));
 }