Ejemplo n.º 1
0
 /// <summary>
 /// Removes the button.
 /// </summary>
 /// <param name="button">The button.</param>
 private void removeInterfaceComponent(InterfaceComponent button)
 {
     if (IManager.getActiveComponents().Find(button) != null)
     {
         IManager.getActiveComponents().Remove(button);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the button.
 /// </summary>
 /// <param name="button">The button.</param>
 /// <param name="first">if set to <c>true</c> [first].</param>
 private void addInterfaceComponent(InterfaceComponent button, bool first)
 {
     if (IManager.getActiveComponents().Find(button) == null)
     {
         if (first)
             IManager.getActiveComponents().AddFirst(button);
         else
             IManager.getActiveComponents().AddLast(button);
     }
 }