示例#1
0
        public Sample(SamplePageAttribute attribute, Type viewType)
        {
            Category    = attribute.Category;
            Title       = attribute.Title;
            Description = attribute.Description;
            Source      = attribute.Source;
            SortOrder   = attribute.SortOrder;

            ViewType = viewType;
        }
示例#2
0
        public Sample(SamplePageAttribute attribute, Type viewType)
        {
            Category          = attribute.Category;
            Title             = attribute.Title;
            Description       = attribute.Description;
            DocumentationLink = attribute.DocumentationLink;
            Data      = CreateData(attribute.DataType);
            Source    = attribute.Source;
            SortOrder = attribute.SortOrder;

            ViewType = viewType;
        }