public bool AmpliationIsAllowed(long groupId, ref bool ampliationIsAllowed) { trace.Write(TraceLevel.Debug, "CM1GroupsTree::AmpliationIsAllowed"); bool fnResult = true; try { CM1Group group = GetGroupFromGrpId(groupId); float isAllowed = GlobalDefs.DEF_UNDEFINED_VALUE; group.GetConstraint(CM1Constraint.CNSTR_AMP_ALLOW, ref isAllowed); if (isAllowed == CM1Constraint.CNSTR_UNDEFINED) { isAllowed = 1; } ampliationIsAllowed = isAllowed != 0; } catch (Exception error) { trace.Write(TraceLevel.Error, error.ToLogString()); fnResult = false; } return(fnResult); }