objectdef MRCastStackController
{
    method Initialize()
    {
    }

    method Shutdown()
    {
    }

    method OnClose()
    {
        Event[OnCloseButtonClicked]:Execute
    }
}

variable(global) MRCastStackController CastStackController

function main()
{
    while 1
    {
        wait 5
    }
}