Exemplo n.º 1
0
        /// <summary>
        /// Destroy all elements belonging to this dynElement
        /// </summary>
        public virtual void Destroy()
        {
            foreach (Element e in elements)
            {
                dynElementSettings.SharedInstance.Doc.Document.Delete(e);
            }

            //clear out the array to avoid object initialization errors
            elements.Clear();

            //clear the data tree
            dataTree.Clear();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Removes all the element definitions from the Block
 /// </summary>
 public void DeleteAll()
 {
     elements.Clear();
     OnPropertyChanged("Elements");
 }
 /// <summary>
 /// Removes all the element definitions from the Block
 /// </summary>
 public void DeleteAll()
 {
     elements.Clear();
 }