示例#1
0
        /// <summary>
        /// Merge family and if this is the only object, also delete alarm
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            ApartmentController.ResetLot(this);

            //If no more objects exist, remove alarm
            List <Controller> cList = new List <Controller>(Sims3.Gameplay.Queries.GetObjects <Controller>());

            if (cList == null || (cList != null && cList.Count == 0))
            {
                AlarmManager.Global.RemoveAlarm(this.mBills);
            }
        }
示例#2
0
        public override bool Run()
        {
            try
            {
                if (CommonMethods.ShowConfirmationDialog(CommonMethods.LocalizeString("ResetLotDescription", new object[0])))
                {
                    ApartmentController.ResetLot(this.Target);
                }
            }
            catch (System.Exception ex)
            {
                CommonMethods.PrintMessage("ResetLot: " + ex.Message);
            }

            return(true);
        }