コード例 #1
0
ファイル: Controller.cs プロジェクト: yakoder/NRaas
        /// <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
ファイル: TheInteractions.cs プロジェクト: pepoluan/NRaas
        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);
        }