示例#1
0
        public static void AddGumpEntryFirst(this SuperGump gump, GumpEntry g)
        {
            if (g != null)
            {
                if (g.Parent == null)
                {
                    g.Parent = gump;
                }

                gump.Entries.Remove(g);

                if (AssignIdMethodInfo != null)
                {
                    AssignIdMethodInfo.Invoke(g, new object[] {});
                }

                gump.Entries.Insert(0, g);
                gump.Invalidate();
            }
        }