本文整理汇总了C#中FormFieldInfo.GetPropertyValue方法的典型用法代码示例。如果您正苦于以下问题:C# FormFieldInfo.GetPropertyValue方法的具体用法?C# FormFieldInfo.GetPropertyValue怎么用?C# FormFieldInfo.GetPropertyValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormFieldInfo
的用法示例。
在下文中一共展示了FormFieldInfo.GetPropertyValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadRules
public void LoadRules(FormFieldInfo ffi)
{
if (ffi != null)
{
ruleDesigner.Value = ffi.FieldMacroRules;
ruleDesigner.DefaultErrorMessage = ffi.GetPropertyValue(FormFieldPropertyEnum.ValidationErrorMessage);
}
}
示例2: GetFieldCaption
/// <summary>
/// Returns field caption of the specified column.
/// </summary>
/// <param name="ffi">Form field info</param>
/// <param name="columnName">Column name</param>
/// <param name="resolver">Macro resolver</param>
protected string GetFieldCaption(FormFieldInfo ffi, string columnName, MacroResolver resolver)
{
// Get field caption
string caption = ffi.GetPropertyValue(FormFieldPropertyEnum.FieldCaption, resolver);
return ((ffi == null) || (caption == string.Empty)) ? columnName : caption;
}
开发者ID:arvind-web-developer,项目名称:csharp-projects-Jemena-Kentico-CMS,代码行数:12,代码来源:CustomTable_Data_SelectFields.aspx.cs
示例3: PrepareCaption
/// <summary>
/// Prepares caption for custom property.
/// </summary>
protected string PrepareCaption(FormFieldInfo field)
{
string caption = field.GetPropertyValue(FormFieldPropertyEnum.FieldCaption, MacroContext.CurrentResolver);
if (string.IsNullOrEmpty(caption))
{
caption = field.Name;
}
return ResHelper.LocalizeString(caption, null, true);
}
示例4: LoadProperty
private void LoadProperty(FormFieldInfo ffi, FormFieldPropertyEnum property, FormEngineUserControl control, MessagesPlaceHolder msgPlaceHolder)
{
if (control != null)
{
bool isMacro = ffi.IsMacro(property);
control.Visible = !isMacro;
if (!isMacro)
{
control.Value = ffi.GetPropertyValue(property);
}
else
{
msgPlaceHolder.ShowInformation(GetString("FormBuilder.PropertyIsMacro"));
}
}
}