Пример #1
0
        internal void ValidateContainer(LContainer container)
        {
            LComponent[] components = container.GetComponents();
            int          size       = container.GetComponentCount();

            for (int i = 0; i < size; i++)
            {
                if (components[i].IsContainer())
                {
                    this.ValidateContainer((LContainer)components[i]);
                }
            }
        }
Пример #2
0
        private int RemoveComponent(LContainer container, LComponent comp)
        {
            int removed = container.Remove(comp);

            LComponent[] components = container.GetComponents();
            int          i          = 0;

            while (removed == -1 && i < components.Length - 1)
            {
                if (components[i].IsContainer())
                {
                    removed = this
                              .RemoveComponent((LContainer)components[i], comp);
                }
                i++;
            }

            return(removed);
        }
Пример #3
0
 public void DoClick(int x, int y)
 {
     if (!this.contentPane.IsVisible())
     {
         return;
     }
     LComponent[] components = contentPane.GetComponents();
     for (int i = 0; i < components.Length; i++)
     {
         LComponent component = components[i];
         if (component != null && component.Intersects(x, y))
         {
             component.Update(0);
             component.ProcessTouchPressed();
         }
     }
     isClicked = true;
 }