public Control GetControl(TemplateControl hostPage) { var oEmbedControl = new oEmbedControl(); var options = new oEmbedOptions { Url = url.ToString(), MaxWidth = Convert.ToInt32(width.Value), MaxHeight = Convert.ToInt32(height.Value) }; oEmbedControl.Options = options; return(oEmbedControl); }
public static string GetDescription(this PropertyString prop) { var description = prop.GetAttributeOfType <DescriptionAttribute>(); return(description?.Description ?? prop.ToString()); }