/// <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();
        }
    }
Exemplo n.º 2
0
    /// <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();
        }
    }
Exemplo n.º 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;
        }
    }