public static bool DetectCycle(GDMIndividualRecord iRec) { string res = TreeTools.DetectCycle(iRec); if (!string.IsNullOrEmpty(res)) { AppHost.StdDialogs.ShowError(string.Format(LangMan.LS(LSID.LSID_DetectedDataLoop), res)); return(true); } return(false); }