Calling user Method in Axapta
static void Forms_CallingUserMethod(Args _args)
{
Args args;
Object formRun;
;
args = new Args();
formRun = new menuFunction(menuItemDisplayStr(MyForm_CallingUserMethod),
MenuItemType::Display).create(args);
formRun.init();
formRun.setReadOnly();
formRun.run();
}