/// <summary> /// Enable or disable field for setting FK references. /// </summary> private void SetReferenceToField() { if (AttributeType.EqualsCSafe(FieldDataType.Integer, true) && !IsDummyField && !IsExtraField && !IsFieldPrimary && (Mode == FieldEditorModeEnum.ClassFormDefinition) && !IsDocumentType) { plcReference.Visible = true; } else { plcReference.Visible = false; } }
/// <summary> /// Enable or disable field for setting FK references. /// </summary> private void SetReferenceToField() { plcReference.Visible = (AttributeType.EqualsCSafe(FieldDataType.Integer, true) && !IsDummyField && !IsExtraField && (!IsFieldPrimary || !IsAttributeIdentity()) && (Mode == FieldEditorModeEnum.ClassFormDefinition) && !IsDocumentType); }