public NamedOrientation GetFirstOrientation() { try { if (Data.Orientations.Count == 0) { if (!string.IsNullOrEmpty(Data.Parent)) { ActionPoint parent = ProjectManager.Instance.GetActionPoint(Data.Parent); return(parent.GetFirstOrientation()); } } else { return(Data.Orientations[0]); } } catch (KeyNotFoundException) { } throw new ItemNotFoundException("No orientation"); }