private bool CheckPersonBProject(string _p) { if (_p.Length == 0) { return(false); } //Person p = new Person(_p); var p = ParentPage.GetObjectById(typeof(PersonOld), _p) as PersonOld; if (p == null || p.Unavailable) { return(false); } if (p.BusinessProjectID <= 0) { return(false); } return(true); }