Example #1
0
        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);
        }
Example #2
0
        public static string GetDescription(this PropertyString prop)
        {
            var description = prop.GetAttributeOfType <DescriptionAttribute>();

            return(description?.Description ?? prop.ToString());
        }