如何在窗口电话中调用动态resx文件?

时间:2014-07-11 08:11:30

标签: c# windows-phone-8 localization

我有两个文件包含url,如下所示:

AppResource1.resx
     getProduct      http://neaah.com/getProduc?region=en
     getCat          http://neaah.com/getProduc?region=en
     .....
 AppResource2.resx
     getProduct      http://neaah.com/getProduc?region=fr
     getCat          http://neaah.com/getProduc?region=fr
     .....

那么如何获取动态resx文件。例如(抱歉,我不知道如何调用动态resx文件,但这仅说明):

Resource resx=new Resource(); 
if(region=="en"){
   resx=resx.AppResource1;
}
if(region=="fr"){
 resx=resx.AppResource2;
}

我可以打电话给:

resx.getProduct

0 个答案:

没有答案