Exemplo n.º 1
0
 /// <summary>
 /// Unloads the content.
 /// </summary>
 public virtual void UnloadContent()
 {
     GuiElements.ForEach(w => w.UnloadContent());
     GuiElements.Clear();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Focuses the input on the element with the specified identifier.
 /// </summary>
 /// <param name="id">Element identifier.</param>
 public void FocusElement(string id)
 {
     GuiElements.ForEach(e => e.InputFocus = false);
     GuiElements.FirstOrDefault(e => e.Id == id).InputFocus = true;
 }