コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
 /// <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);
 }