Exemplo n.º 1
0
 public void RemoveComponent(Component.GComponent component)
 {
     if (Components.Contains(component))
     {
         component.OnRemove();
         component.Host          = null;
         component.HostContainer = null;
         Components.Remove(component);
     }
 }
Exemplo n.º 2
0
 public void RemoveComponent(string specialName)
 {
     Component.GComponent old = FindComponentBySpecialName(specialName);
     if (old != null)
     {
         old.OnRemove();
         old.Host          = null;
         old.HostContainer = null;
         Components.Remove(old);
     }
 }