我有这么多城市名字。我想将这个城市存储到我的设备数据库中。而且我使用隔离存储设置,但isolatad存储只允许我添加一个城市。如何显示这个城市?
我的 C# 代码用于存储城市是:
if (!setting.Contains("CityDetail"))
{
setting.Add("CityDetail", cityname);
//MessageBox.Show(cityname + " is successfully added in the favorites");
}
else
{
cityname = (string)setting["CityDetail"];
//MessageBox.Show(cityname + " is allready added in the favorites");
}
//setting.Save();