Ejemplo n.º 1
0
 public void Attach(Button NewButton)
 {
     if (!ButtonList.ContainsValue(NewButton))
     {
         ButtonList.Add(NewButton.Name, NewButton);
     }
 }
Ejemplo n.º 2
0
        public void Remove(Button RemovalButton)
        {
            if (ButtonList.ContainsValue(RemovalButton))
            {
                ButtonList.Remove(RemovalButton.Name);
            }

            foreach (KeyValuePair <string, Geometry2D> entry in RemovalButton.GeometryList)
            {
                GuiNode.DetachGeometry(entry.Value);
            }
        }