public static bool RefreshGump(Mobile player, ListEntry listentry) { //if this mobile has a list entry gump up if (player.HasGump(typeof(ListEntryGump))) { ListEntryGump gump = (ListEntryGump)player.FindGump(typeof(ListEntryGump)); //if this gump that's up is showing this list entry, or if none was specified, then refresh if (listentry == null || gump.ListEntry == listentry) { //then, resend this gump! player.SendGump(new ListEntryGump(gump)); return(true); } } return(false); }
//gump refresh constructor public ListEntryGump(ListEntryGump oldgump) : this(oldgump.Owner, oldgump.ListEntry, oldgump.Page) { }
//gump refresh constructor public ListEntryGump( ListEntryGump oldgump ) : this(oldgump.Owner, oldgump.ListEntry, oldgump.Page) { }