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

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