示例#1
0
 /// <summary>
 /// Enable or disable field for translation according to actual Attribute Type (from DropDown list)
 /// </summary>
 private void SetFieldForTranslations()
 {
     if (TranslationServiceHelper.IsFieldForTranslation(AttributeType) && !IsDummyField && !IsExtraField)
     {
         plcTranslation.Visible = true;
     }
     else
     {
         plcTranslation.Visible    = false;
         chkTranslateField.Checked = false;
     }
 }
    /// <summary>
    /// Enable or disable field for translation according to actual Attribute Type (from DropDown list)
    /// </summary>
    private void SetFieldForTranslations()
    {
        FormFieldDataTypeEnum dataType = FormHelper.GetFormFieldDataType(AttributeType);

        if (TranslationServiceHelper.IsFieldForTranslation(dataType))
        {
            plcTranslation.Visible = true;
        }
        else
        {
            plcTranslation.Visible    = false;
            chkTranslateField.Checked = false;
        }
    }