Exemplo n.º 1
0
        public override void MuisLos(SchetsControl s, Point p)
        {
            base.MuisLos(s, p);
            for (int i = s.Schets.grlist.Count - 1; i > -1; i--)
            {
                if (s.Schets.grlist[i].IsWithin(p))
                {
                    GraphicalObject g = s.Schets.grlist[i];
                    s.Schets.grlist.RemoveAt(i);
                    if (i == s.Schets.grlist.Count)
                    {
                        s.Schets.grlist.Insert(0, g);
                    }
                    else
                    {
                        s.Schets.grlist.Add(g);
                    }

                    break;
                }
            }

            s.Invalidate();
        }
Exemplo n.º 2
0
 public void AddGraphics(GraphicalObject t)
 {
     grlist.Add(t);
 }