Пример #1
0
 public void Add(Control gump)
 {
     if (!gump.IsDisposed)
     {
         Gumps.AddToFront(gump);
         _needSort = true;
     }
 }
Пример #2
0
        public void MakeTopMostGump(Control control)
        {
            Control c = control;

            while (c.Parent != null)
            {
                c = c.Parent;
            }

            for (int i = 1; i < Gumps.Count; i++)
            {
                if (Gumps[i] == c)
                {
                    Control cm = Gumps[i];
                    Gumps.RemoveAt(i);
                    Gumps.AddToFront(cm);
                    _needSort = true;
                }
            }
        }