コード例 #1
0
ファイル: TheInteractions.cs プロジェクト: pepoluan/NRaas
        public override bool Run()
        {
            try
            {
                //Active Family
                if (base.SelectedObjects != null && base.SelectedObjects.Count > 0)
                {
                    ApartmentFamily selectedFamily = base.SelectedObjects[0] as ApartmentFamily;


                    if (selectedFamily != null)
                    {
                        ApartmentController.LoadActiveHousehold(selectedFamily, base.Target);
                        base.Target.StartUpOrSwitch();
                    }
                }
            }

            catch (System.Exception ex)
            {
                CommonMethods.PrintMessage("Interaction SetActiveFamily: " + ex.Message);
            }

            return(true);
        }