/// <summary>
    /// Runs all cleanup examples on the page.
    /// </summary>
    protected void btnCleanAll_Click(object sender, EventArgs e)
    {
        CMSAPIExamplePage examplePage = Page as CMSAPIExamplePage;

        if (examplePage != null)
        {
            examplePage.CleanUpAll();
        }
    }
    /// <summary>
    /// Runs all create and update examples on the page.
    /// </summary>
    protected void btnRunAll_Click(object sender, EventArgs e)
    {
        CMSAPIExamplePage examplePage = this.Page as CMSAPIExamplePage;

        if (examplePage != null)
        {
            examplePage.RunAll();
        }
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // Set up displaying of code
        CMSAPIExamplePage examplePage = Page as CMSAPIExamplePage;

        if (examplePage != null)
        {
            DisplayCode += examplePage.ReadCode;
        }
    }