public static string[] getprovince() { myarea item = null; foreach (myarea i in Items) { if (i.Code == "0") { item = i; } } if (item != null) { ps = item.Addr; } return(ps); }
public static string[] getcity(int pid) { string[] psc = null; myarea item = null; foreach (myarea i in Items) { if (i.Code == "0_" + pid) { item = i; } } if (item != null) { psc = item.Addr; } return(psc); }
public static string[] getarea(int pid, int cid) { string[] psa = null; myarea item = null; foreach (myarea i in Items) { if (i.Code == "0_" + pid + "_" + cid) { item = i; } } if (item != null) { psa = item.Addr; } return(psa); }