public void add_element(web_element e) { this.eles.Add(e); e.view = this; if (!contains_element(e)) { e.add_header(); } e.add_html(); string tp = e.GetType().Name; if (!this.types.Contains(tp)) { this.types.Add(tp); } }
public bool contains_element(web_element e) { return(this.types.Contains(e.GetType().Name)); }