Пример #1
0
        public new static PartyInfo Show(PartyType partyTypes, List <PhoneSimPicker.SimPickerInfo> sims, ThumbnailKey simThumb, bool isPartyAtHome, float curfewStart, float curfewEnd, float venueOpenTime, float venueCloseTime, ClothingType restrictClothingTypeTo, bool isHostFemale)
        {
            int originalMax = kDefaultMaxAllowed;

            kDefaultMaxAllowed = int.MaxValue;

            try
            {
                using (PartyPickerDialogEx dialog = new PartyPickerDialogEx(partyTypes, sims, simThumb, isPartyAtHome, curfewStart, curfewEnd, venueOpenTime, venueCloseTime, restrictClothingTypeTo, isHostFemale))
                {
                    dialog.StartModal();
                    if (dialog.Result == null)
                    {
                        return(null);
                    }
                    return(dialog.Result);
                }
            }
            finally
            {
                kDefaultMaxAllowed = originalMax;
            }
        }
Пример #2
0
        public new static PartyInfo Show(PartyType partyTypes, List<PhoneSimPicker.SimPickerInfo> sims, ThumbnailKey simThumb, bool isPartyAtHome, float curfewStart, float curfewEnd, float venueOpenTime, float venueCloseTime, ClothingType restrictClothingTypeTo, bool isHostFemale)
        {
            int originalMax = kDefaultMaxAllowed;
            kDefaultMaxAllowed = int.MaxValue;

            try
            {
                using (PartyPickerDialogEx dialog = new PartyPickerDialogEx(partyTypes, sims, simThumb, isPartyAtHome, curfewStart, curfewEnd, venueOpenTime, venueCloseTime, restrictClothingTypeTo, isHostFemale))
                {
                    dialog.StartModal();
                    if (dialog.Result == null)
                    {
                        return null;
                    }
                    return dialog.Result;
                }
            }
            finally
            {
                kDefaultMaxAllowed = originalMax;
            }
        }