动态调用MenuItem

static void menuFunction(Args _args)

{    

   SalesTable  m_salesTable;

       Args args = new Args();

       ;

       args.record(m_salesTable);

    //访问Form     new MenuFunction(menuItemDisplayStr("Unit"),MenuItemType::Display).run();

    //访问Class     new MenuFunction(menuItemActionStr("Calculator"),MenuItemType::Action).run();

    //访问Report     new MenuFunction(menuItemOutputStr("Currency"),MenuItemType::Output).run();

    //Question:What is the use purpose that the parameter in the method of run.

    //访问Form     new MenuFunction(menuItemDisplayStr("Unit"),MenuItemType::Display).run(args);

    //访问Class     new MenuFunction(menuItemActionStr("Calculator"),MenuItemType::Action).run(args);

    //访问Report     new MenuFunction(menuItemOutputStr("Currency"),MenuItemType::Output).run(args);

}

posted @ 2012-04-18 14:37  K小子  阅读(263)  评论(0编辑  收藏  举报