public DialogElement NextElement(DialogElement element, Type elementType) { var start = _elements.IndexOf(element); for (var i = start + 1; i < _elements.Count; i++) { var e = _elements[i]; if (e.GetType() == elementType) { return(e); } } return(null); }
public void Remove(DialogElement element) { element.Section = null; _elements.Remove(element); }
public void Add(DialogElement element) { element.Section = this; _elements.Add(element); }
public void Remove(DialogElement element) { element.Section = null; _elements.Remove (element); }
public DialogElement NextElement(DialogElement element, Type elementType) { var start = _elements.IndexOf (element); for (var i = start + 1; i < _elements.Count; i++) { var e = _elements[i]; if (e.GetType () == elementType) { return e; } } return null; }
public void Add(DialogElement element) { element.Section = this; _elements.Add (element); }