public static void CheckConfig(Mobile user) { if (user != null && !user.Deleted && user.AccessLevel >= Access) { (SuperGump.GetInstance <DonationAdminUI>(user) ?? new DonationAdminUI(user)).Refresh(true); } }
public static T FindGump <T>(this Mobile m) where T : Gump { if (m == null) { return(null); } var t = typeof(T); if (t.IsEqualOrChildOf <SuperGump>()) { return(SuperGump.GetInstance(m, t, true) as T); } return(m.FindGump(t) as T); }