public override bool Run() { //Active Family if (base.SelectedObjects != null && base.SelectedObjects.Count > 0) { ApartmentFamily selectedFamily = base.SelectedObjects[0] as ApartmentFamily; try { if (selectedFamily != null) { ApartmentController.DeleteFamily(base.Target, selectedFamily); base.Target.StartUpOrSwitch(); } } catch (System.Exception ex) { CommonMethods.PrintMessage(ex.Message); } } return(true); }