Inheritance: CountedInstance, IComponent
Ejemplo n.º 1
0
 public bool RemoveComponent(PlutonUI.BaseComponent comp)
 {
     for (int i = 0; i < components.Length; i++)
     {
         if (components[i].Obj == comp.obj)
         {
             components.Remove(i);
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 public PlutonUI.BaseComponent AddComponent(PlutonUI.BaseComponent comp)
 {
     components.Add(comp.obj);
     return(comp);
 }
Ejemplo n.º 3
0
 public PlutonUI.BaseComponent AddComponent <T>() where T : PlutonUI.BaseComponent
 {
     PlutonUI.BaseComponent t = Activator.CreateInstance <T>();
     components.Add(t.obj);
     return(t);
 }