Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            exampleExplorer.VersionTitle = "v" + VideoUltimateConfiguration.AssemblyInfo.FileVersion;

            exampleExplorer.Examples = new ExampleBase[]
            {
                new Example
                {
                    Title           = "Overview",
                    Url             = "Overview.aspx",
                    SourceFiles     = new[] { "Overview.aspx", "Overview.aspx.cs" },
                    DescriptionFile = "Descriptions/Overview.html"
                },
                new Example
                {
                    Title           = "Reading video frames",
                    Url             = "Reading.aspx",
                    SourceFiles     = new[] { "Reading.aspx", "Reading.aspx.cs" },
                    DescriptionFile = "Descriptions/Reading.html"
                }
            };

            exampleExplorer.ExampleProjectName = "ASP.NET Web Forms (C#)";
            exampleExplorer.ExampleProjects    = ExamplesCoreConfiguration.LoadExampleProjects(Server.MapPath("~/App_Data/ExampleProjects.json"));
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            exampleExplorer.VersionTitle = "v" + DocumentUltimateConfiguration.AssemblyInfo.FileVersion;

            exampleExplorer.Examples = new ExampleBase[]
            {
                new ExampleFolder
                {
                    Title    = "Document Viewer",
                    Children = new ExampleBase[]
                    {
                        new Example
                        {
                            Title           = "Overview",
                            Url             = "DocumentViewer/Overview.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Overview.aspx", "DocumentViewer/Overview.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Overview.html"
                        },
                        new Example
                        {
                            Title           = "Copy protection (DRM)",
                            Url             = "DocumentViewer/Protection.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Protection.aspx", "DocumentViewer/Protection.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Protection.html"
                        },
                        new Example
                        {
                            Title           = "Highlighting keywords",
                            Url             = "DocumentViewer/Highlight.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Highlight.aspx", "DocumentViewer/Highlight.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Highlight.html"
                        },
                        new Example
                        {
                            Title           = "Watermarking pages",
                            Url             = "DocumentViewer/Watermark.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Watermark.aspx", "DocumentViewer/Watermark.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Watermark.html"
                        },
                        new Example
                        {
                            Title           = "Using with a stream",
                            Url             = "DocumentViewer/Stream.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Stream.aspx", "DocumentViewer/Stream.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Stream.html"
                        },
                        new Example
                        {
                            Title           = "Events",
                            Url             = "DocumentViewer/Events.aspx",
                            SourceFiles     = new[] { "DocumentViewer/Events.aspx", "DocumentViewer/Events.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentViewer/Events.html"
                        }
                    }
                },
                new ExampleFolder
                {
                    Title    = "Document Converter",
                    Children = new ExampleBase[]
                    {
                        new Example
                        {
                            Title           = "Overview",
                            Url             = "DocumentConverter/Overview.aspx",
                            SourceFiles     = new[] { "DocumentConverter/Overview.aspx", "DocumentConverter/Overview.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentConverter/Overview.html"
                        },
                        new Example
                        {
                            Title           = "Possible conversions",
                            Url             = "DocumentConverter/Possible.aspx",
                            SourceFiles     = new[] { "DocumentConverter/Possible.aspx", "DocumentConverter/Possible.aspx.cs" },
                            DescriptionFile = "Descriptions/DocumentConverter/Possible.html"
                        }
                    }
                }
            };

            exampleExplorer.ExampleProjectName = "ASP.NET Web Forms (C#)";
            exampleExplorer.ExampleProjects    = ExamplesCoreConfiguration.LoadExampleProjects(Server.MapPath("~/App_Data/ExampleProjects.json"));
        }