Пример #1
0
    public void AnotherMethod()
    {
        //get the current page and cast it to the interface
        IMyInterface page = this.Page as IMyInterface;

        // now I can call the methods of the interface
        if (page != null)
        {
            page.SomeMethod();
        }
    }