public void Add(Control gump) { if (!gump.IsDisposed) { Gumps.AddToFront(gump); _needSort = true; } }
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; } } }